/******************************* function Set_Cookie(name,value)//,expires,path,domain,secure) { var today = new Date(); var cookieExpire = new Date(); cookieExpire.setTime(today.getTime()+1000*60*60*24*300); document.cookie = name + "=" + escape (value) +"; expires=Mon, 02-Jul-2012 00:00:01 GMT;path=/"; } function Get_Cookie(name) { var start = document.cookie.indexOf(name+"="); var start2 = document.cookie.indexOf(name); var len = start+name.length+1; // alert("Get_Cookie("+name+"): " + len + " ==> start: " + start2); if ((!start) && (name != document.cookie.substring(0,name.length))){ return null; } if (start == -1){ return null; } var end = document.cookie.indexOf(";",len); if (end == -1){ end = document.cookie.length; } //alert("Get_Cookie("+name+"): " + unescape(document.cookie.substring(len,end))); return unescape(document.cookie.substring(len,end)); } function Delete_Cookie(name,path,domain) { if (Get_Cookie(name)){ document.cookie = name + "=" + ( (path) ? ";path=" + path : "") + ( (domain) ? ";domain=" + domain : "") + ";expires=Thu, 01-Jan-1970 00:00:01 GMT"; } } ************************************/ function getName(){ 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; } eval("thePrompt = window.open('/lpi/data.nsf/addBookmark.htm','AddBookmark','height=150,width=250,screenX=" + x + ",screenY=" + y + ",left=" + xIE + ",top=" + yIE + ",dependent=yes')"); } function getTitel() { return document.getTitle(); } var expdate = new Date (); expdate.setTime (expdate.getTime() + (365 * 24 * 60 * 60 * 1000)); // a year from now var aBookmarkString; var sOut; var aBookmarkArray = new Array(); var sNewName =''; var sAddThisPage =''; var sSpacerRow =''; var bookmarkList = false; // Er det standard side eller "rediger bogmærker" // Find UID var lok = ""; if(top.tkbody != null){ lok = top.tkbody.location.href; } else{ lok = window.location.href; } var last = lok.lastIndexOf("/"); var sp = lok.indexOf("?"); if(sp <= 0) { sp = lok.lenght; } //lok = lok.substring(last+1,sp); // Antal bokmarks der skal kunne gemmes var maxBookmarks = 99; function do_this(do_what) { if(do_what.indexOf("ADDBOOKMARK") == 0){ 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; } eval("thePrompt = window.open('/lpi/data.nsf/addBookmark.htm','AddBookmark','height=150,width=250,screenX=" + x + ",screenY=" + y + ",left=" + xIE + ",top=" + yIE + ",dependent=yes')"); } else{ top.location.href=do_what; // alle dokumenter } } function buildBookmarkTable(){ deleteCount = 0; sOut = ''; //
"; } function buildBookmarkListe(){ var counter = 0; deleteCount = 0; var tmpOut = ""; sOut = '| '+aBookmarkArray[i][0] +' | \n'; tmpOut += '\n'; tmpOut += ' | \n\n'; tmpOut += ' |
'; if(counter == 0) sOut += 'Du har er ingen bogmærker!\n'; else { var fav = "bogmærke"; if(counter>1) fav +="r"; sOut += 'Du har tilmeldt '+counter+' '+fav+'!\n'; } sOut += ' | ||