function disableWelcome(what)
{
Set_Cookie('interactiveWelcomeWindow',what);//,expdate,'/','.as')
}
function isWelcomeDisabled()
{
var w_cookie = ''
if(Get_Cookie('interactiveWelcomeWindow')!= null){
w_cookie = Get_Cookie('interactiveWelcomeWindow');
if(w_cookie == "1")
return true; // dont show windows
}
else
return false; // show window
}
/****************************************************
Count down i
:
--------------------
10
sekunder
*****************************************************/
function countdown() {
var felt = document.getElementById("countdown_field");
if (felt.innerText == "0") {
top.location.replace("/");
} else {
felt.innerText = felt.innerText - 1;
setTimeout("countdown()", 1000);
}
}
function SendSide()
{
var ItsTheWindow;
w = 248;
h = 300;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no';
ItsTheWindow = window.open('/LPMCweb/data.nsf/TipEnVen?OpenForm&ID='+DocumentURL2,'SendSiden', settings);
}
function SendKommentar()
{
var ItsTheWindow;
w = 248;
h = 300;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no';
ItsTheWindow = window.open('/LPMCweb/data.nsf/KommenterSide?OpenForm&ID='+DocumentURL2,'SendKommentar', settings);
}
function OpenDictionary(quickID)
{
var ItsTheWindow;
w = 388;
h = 470;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no';
ItsTheWindow = window.open('/LPMCweb/data.nsf/webDocsByQuickID/'+quickID+'?Open','Ordbog', settings);
}
function testDictionary(quickID)
{
if (window.name != 'Ordbog') {
history.go(-1);
OpenDictionary(quickID);
}
}
function OpenPrintWindow(UNID, printOrig, ieAgent)
{
var ItsTheWindow;
w = 671;
h = 600;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no';
if (printOrig) {
if( ieAgent) {
ItsTheWindow = window.open('/LPMCweb/data.nsf/PrintOriginalPage2?OpenPage&PrintFile='+UNID,'Udskrift', settings);
} else {
ItsTheWindow = window.open('/LPMCweb/data.nsf/PrintOriginalPage?OpenPage&PrintFile='+UNID,'Udskrift', settings);
}
} else{
if( ieAgent) {
ItsTheWindow = window.open(UNID,'Udskrift', settings);
}else{
ItsTheWindow = window.open('/LPMCweb/data.nsf/webPrint/'+UNID+'?Open','Udskrift', settings);
}
}
}
function printit(a){
newwin = window.open(a,'popup','width=665,height=500,top=100,left=100,scrollbars=yes');
newwin.focus();
}
function onLoadMoreScripts() { //v3.0
/*
MM_preloadImages('/LPMCweb/layout.nsf/webImages/iconprint_act.gif/$file/iconprint_act.gif','/LPMCweb/layout.nsf/iconordforklaringer_act.gif/$file/iconordforklaringer_act.gif','/LPMCweb/layout.nsf/iconsendside_act.gif/$file/iconsendside_act.gif','/LPMCweb/layout.nsf/iconkommenterside_act.gif/$file/iconkommenterside_act.gif');
//popup('tip.htm','Nyttigt tip','small','no');
*/
}
function PrintFacts(UNID, printOrig, ieAgent)
{
var ItsTheWindow;
w = 671;
h = 600;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no';
ItsTheWindow = window.open('/LPMCweb/data.nsf/webPrint/'+UNID+'?Open&CardFacts=Yes','Udskrift', settings);
}