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('/lpi/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('/lpi/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('/lpi/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('/lpi/data.nsf/PrintOriginalPage2?OpenPage&PrintFile='+UNID,'Udskrift', settings);
} else {
ItsTheWindow = window.open('/lpi/data.nsf/PrintOriginalPage?OpenPage&PrintFile='+UNID,'Udskrift', settings);
}
} else{
if( ieAgent) {
ItsTheWindow = window.open(UNID,'Udskrift', settings);
}else{
ItsTheWindow = window.open('/lpi/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('/lpi/layout.nsf/webImages/iconprint_act.gif/$file/iconprint_act.gif','/lpi/layout.nsf/iconordforklaringer_act.gif/$file/iconordforklaringer_act.gif','/lpi/layout.nsf/iconsendside_act.gif/$file/iconsendside_act.gif','/lpi/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('/lpi/data.nsf/webPrint/'+UNID+'?Open&CardFacts=Yes','Udskrift', settings);
}
// --------------- GEM ATTACHMENTS BILAG ------------------
function GemAttachmentsBilag(MeetingID,savetype)
{
var ItsTheWindow;
w = 250;
h = 150;
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=yes,copyhistory=no';
var parms = "";
var cnt = 0;
var elements = document.getElementsByName("attachment_all");
for (x=0; x < elements.length; x++){
if(elements[x].checked){
parms += "&ChkId"+cnt+"="+elements[x].value;
cnt++;
}
}
var elements2 = document.getElementsByName("attachment_pdf");
for (x=0; x < elements2.length; x++){
if(elements2[x].checked){
parms += "&ChkId"+cnt+"="+elements2[x].value;
cnt++;
}
}
// alert("PARMS: " + parms);
if(cnt > 0){
/* var ifr = document.getElementById('iframeGetDocuments');
ifr.src = '/lpi/data.nsf/WebGemAttachments?OpenAgent&MeetingID='+MeetingID+parms+'&SaveType='+savetype+'&ID='+DocumentURL2;*/
ItsTheWindow = window.open('/lpi/data.nsf/WebGemAttachmentsBilag?OpenAgent&MeetingID='+MeetingID+parms+'&SaveType='+savetype+'&ID='+DocumentURL2,'GemAttachments', settings);
}else{
alert("Der er ikke valgt nogle dokumenter til hentning.")
}
}
// --------------- Print ATTACHMENTS BILAG ------------------
function PrintAttachmentsBilag(MeetingID, ieAgent)
{
var ItsTheWindow;
w = 600;
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=no,resizable=no,copyhistory=no';
var parms = "";
var elements = document.getElementsByName("attachment_pdf");
var cnt = 0;
for (x=0; x < elements.length; x++){
if(elements[x].checked){
parms += "&ChkId"+cnt+"="+elements[x].value;
cnt++;
}
}
//parms = "&CheckedIDs=" + parms.substring(1,parms.length);
// alert("PARMS: " + parms);
if(cnt > 0){
ItsTheWindow = window.open('/lpi/data.nsf/WebPrintAttachmentsBilag?OpenAgent&BrowserAG='+ieAgent+'&MeetingID='+MeetingID+parms+'&ID='+DocumentURL2,'PrintAttachments', settings);
}else{
alert("Der er ikke valgt nogle dokumenter til udskrift.")
}
}
// --------------- GEM ATTACHMENTS ------------------
function GemAttachments(MeetingID,savetype)
{
var ItsTheWindow;
w = 250;
h = 150;
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=yes,copyhistory=no';
var parms = "";
var elements = document.getElementsByName("attachment_files");
var cnt = 0;
for (x=0; x < elements.length; x++){
if(elements[x].checked){
// parms += "_"+elements[x].value;
parms += "&ChkId"+cnt+"="+elements[x].value;
cnt++;
}
}
//parms = "&CheckedIDs=" + parms.substring(1,parms.length);
// alert("PARMS: " + parms);
if(cnt > 0){
/* var ifr = document.getElementById('iframeGetDocuments');
ifr.src = '/lpi/data.nsf/WebGemAttachments?OpenAgent&MeetingID='+MeetingID+parms+'&SaveType='+savetype+'&ID='+DocumentURL2; */
ItsTheWindow = window.open('/lpi/data.nsf/WebGemAttachments?OpenAgent&MeetingID='+MeetingID+parms+'&SaveType='+savetype+'&ID='+DocumentURL2,'GemAttachments', settings);
}else{
alert("Der er ikke valgt nogle dokumenter til hentning.")
}
}
// --------------- UDSKRIV ATTACHMENTS ------------------
function PrintAttachments(MeetingID, ieAgent)
{
var ItsTheWindow;
w = 600;
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=no,resizable=no,copyhistory=no';
var parms = "";
var elements = document.getElementsByName("attachment_files");
var cnt = 0;
for (x=0; x < elements.length; x++){
if(elements[x].checked){
// parms += "_"+elements[x].value;
parms += "&ChkId"+cnt+"="+elements[x].value;
cnt++;
}
}
//parms = "&CheckedIDs=" + parms.substring(1,parms.length);
// alert("PARMS: " + parms);
if(cnt > 0){
ItsTheWindow = window.open('/lpi/data.nsf/WebPrintAttachments?OpenAgent&BrowserAG='+ieAgent+'&MeetingID='+MeetingID+'&ID='+DocumentURL2+parms,'PrintAttachments', settings);
}else{
alert("Der er ikke valgt nogle dokumenter til udskrift.")
}
}