var baseurl = "http://www.lebensmittelhygiene.net/dbin/viscom/";
	
	function OpenDocumentDetails(action,id) {
		document.getElementById("dmswindow").style.display = 'block';
		
		document.getElementById("dmsiframe").src = baseurl+"xdocdetails.asp?id="+id+"&action="+action;
		
	}
	function CloseDocumentDetails() {
		document.getElementById("dmswindow").style.display = 'none';
	}
	
	function dmsInit() {
		document.write('<div id="dmswindow" class="dmswindow" style="display:none;">');
		document.write('<div id="closewindow"><a href="javascript:CloseDocumentDetails();"><img border="0" class="imgclosewindow" alt="close" src="../../../../js/close.gif" width="16" height="16"></a></div>');
		document.write('<div id="dmscontainer"><iframe src="#" width="100%" height="100%" id="dmsiframe" marginwidth="1" marginheight="1" name="dmsiframe"></iframe></div>');
		document.write('</div>')
		
	}

	function OpenDocument(id)
	{
		document.location = baseurl+'load.asp?id='+id;
	}



