//---------------------------------
//copyright de Okergroep 2003
//---------------------------------
var layerRef="null",layerStyleRef="null",styleSwitch="null";

function init(){

if (navigator.appName == "Netscape") {
	if(document.getElementById) {
	layerRef="document.getElementById('";
        styleSwitch="').style";
         }
	else if(document.layers) {
	layerRef="document.layers['";
	styleSwitch="']";
	}
	}
else{	
	layerRef="document.all('";
	styleSwitch="').style";
 		}
 	}

function showLayer(layerName){ 	eval(layerRef+layerName +styleSwitch+'.visibility="visible"');
 }

function hideLayer(layerName){ 	eval(layerRef+layerName+styleSwitch+'.visibility="hidden"');
 }
 

function SecondWindow(mypage, myname, w, h, scroll, status) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+', status',
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function NewWindow(imageURL, title, w, h, scroll, status) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',status='+status;
win = window.open("", "popupFrame", winprops)

win.document.open();
win.document.write('<html>');
win.document.write('<head>');
win.document.write('<title>' + title + '</title>');
win.document.write('</head>');
win.document.write('<body bgcolor="#FFFFFF" topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 onblur=window.close()>');
win.document.write('<img src=' + imageURL + ' vspace=0 hspace=0>');
win.document.write('</body>');
win.document.write('</html>');
win.document.close();

if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
 
function routekaart() {
msgWindow=window.open("popup/routekaart.htm","newWindow","toolbar=no,directories=no,menubar=no,width=450,height=400,resizable=no,status=0,scrollbars=no,top=150,left=220")
}  
function lenzenschema() {
msgWindow=window.open("popup/lenzenschema_dia.htm","newWindow","toolbar=no,directories=no,menubar=no,width=750,height=400,resizable=yes,status=0,scrollbars=yes,top=150,left=220")
} 
function lenzenschemalcd() {
msgWindow=window.open("popup/lenzenschema_lcd.htm","newWindow","toolbar=no,directories=no,menubar=no,width=750,height=400,resizable=yes,status=0,scrollbars=yes,top=150,left=220")
} 
function kopieertarief() {
msgWindow=window.open("popup/kopieertarieven.htm","newWindow","toolbar=no,directories=no,menubar=no,width=750,height=400,resizable=yes,status=0,scrollbars=yes,top=150,left=220")
} 