function ShowHide(ref,id){document.getElementById(ref).innerHTML=document.getElementById(ref).innerHTML=="+"?"-":"+";document.getElementById(id).style.display=document.getElementById(id).style.display=="none"?"block":"none"};
function VisLogin(){var loginok=true;var vers=navigator.appVersion;if(!(navigator.appName.indexOf("Microsoft")>=0)){loginok=false}if(!((vers.indexOf("6")>=0)||(vers.indexOf("5.5")>=0)||(vers.indexOf("5")>=0))){loginok=false}if(loginok){document.getElementById("divlogin").style.display="block";document.getElementById("BrugerNavn").focus();window.scrollBy(0,100)}};
function VisSearch(){if(document.getElementById("divsearch").style.display=="block"){document.getElementById("divsearch").style.display="none"}else{document.getElementById("divsearch").style.display="block";document.getElementById("search").focus();window.scrollBy(0,100)}};
function DoSearch(){if(navigator.appName.indexOf("Microsoft")!=-1){if(event.keyCode==13){event.returnValue=false;event.cancel=true;var w=window.location.href.replace(/[?|&]search.+/,"");if(w.indexOf("?")<0){w=w+"?search="}else{w=w+"&search="};window.location.replace(w+escape(document.getElementById("search").value))}}};
function EndSearch(){window.location.replace(window.location.href.replace(/[?|&]search.+/,""))};
function ModulFejl(){alert("Fejl ved redigering af modul!")};
function Faq(id){document.getElementById(id).style.display=document.getElementById(id).style.display=="none"?"block":"none"};
function VisPopupBillede(imageName,imageWidth,imageHeight,alt) {newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+',left=200,top=150');newWindow.document.open();newWindow.document.write('<html><title>'+alt+'</title><body style="color:black;background:white;margin:0px;padding:0px;" onBlur="self.close()">');newWindow.document.write('<img src="'+imageName+'" width="'+imageWidth+'" height="'+imageHeight+'" ALT="'+alt+'">');newWindow.document.write('<\/body></html>');newWindow.document.close();newWindow.focus();};
function EditLink(link){wlink=window.open('','wlink','width=300,height=75,dependent=yes');wlink.document.open();wlink.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><title>Link</title><link rel="stylesheet" type="text/css" href="kenshoedit.css"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><form onsubmit="window.opener.document.getElementById(&#34;redirlink&#34;).value=document.getElementById(&#34;relink&#34;).value;window.close();"><div class="menueditor"><div class="linkeditor"><input type="text" maxlength="220" id="relink" class="txt" value="'+link+'"/></div><input type="submit" value="Opdater link" onclick="window.opener.document.getElementById(&#34;redirlink&#34;).value=document.getElementById(&#34;relink&#34;).value;window.close();" class="editok" /></div></form></body></html>');wlink.document.close();wlink.focus();window.onfocus=function(){wlink.close();};};

