function printPage() { if (window.print) window.print() else alert("Din browser kan ikke udføre denne funktion"); } function hideLayer(name) { document.getElementById(name).style.visibility = 'hidden'; } function showLayer(name) { document.getElementById(name).style.visibility = 'visible'; } function remoteIWWindow(ID,name,w,h,unid_or_quickid) { x = window.innerWidth/2; y = window.innerHeight/2; if(document.all){ xIE = document.body.offsetWidth/2; yIE = document.body.offsetHeight/2; } if(!document.all && document.getElementById){ xIE = window.innerWidth/2 - 100; yIE = window.innerHeight/2 + 60; } if(document.layers){ xIE = 0; yIE = 0; } var poptype = 'webDocsByQuickID/'+ID+'?OpenDocument'; if(unid_or_quickid == "0") poptype = 'webDocuments/' +ID+'?OpenDocument'; var ItsTheWindow; ItsTheWindow = window.open('/lpi/data.nsf/'+poptype,name, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width="+w+",height="+h+",screenX=" + x + ",screenY=" + y + ",left=" + xIE + ",top=" + yIE + ",dependent=yes"); }