function popUp_old(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=450,height=450,left = 100,top = 100');");
}


function popUp(URL) {

window1=window.open(URL, 'popupwindow', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=450,height=450,left = 100,top = 100');
window1.document.focus();
}





function PrintPagina(){ 

var AutoPrint = true; // Indien 'false' wordt de pagina niet automatisch uitgeprint 
// Een: <div id="PrintKlaar"> hiertussen wordt geprint</div> plaatsen 
if (document.getElementById != null){ 
var html = '<HTML>\n<HEAD>\n'; 
if (document.getElementsByTagName != null){ 
var headTags = document.getElementsByTagName("head"); 
if (headTags.length > 0) 
html += headTags[0].innerHTML;} 
html += '\n</HE' + 'AD>\n<BODY>\n'; 
var PrintKlaarElem = document.getElementById("PrintKlaar"); 
if (PrintKlaarElem != null){ 
html += PrintKlaarElem.innerHTML;} 
html += '\n\n<div align="right">' + '<a href="javascript: window.close()">SLUIT VENSTER</a>' + '</div>\n'; 
html += '\n</BO' + 'DY>\n</HT' + 'ML>'; 
var printWin = window.open("","PrintPagina", 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=750,height=600,left = 100,top = 100'); 
printWin.document.open(); 
printWin.document.write(html); 
printWin.document.close(); 
if (AutoPrint)printWin.print();}
} 

