function openprintwin(theURL, wname, W, H, X, Y, NONEgrf, CLOSEdwn, CLOSEup, CLOSEovr, MINIdwn, MINIup, MINIovr, CLOCKgrf, titHTML, titWIN, winBORDERCOLOR, winBORDERCOLORsel, winBGCOLOR, winBGCOLORsel, taal) {

var isie = false
var isv55 = false
var isv6 = false
var iswin= false
if ( navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion)>=4 ) {
isie=true

if ( navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE ")+5,navigator.appVersion.indexOf("MSIE ")+8) >= 5.5 ) isv55=true;}
if ( navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE ")+5,navigator.appVersion.indexOf("MSIE ")+8)>= 6.0) isv6=true;
if ( navigator.userAgent.toLowerCase().indexOf("win")!=-1 ) iswin=true
if (X==null) var X = Math.ceil( (window.screen.width  - W) / 2 );
if (Y==null) var Y = Math.ceil( (window.screen.height - H) / 2 );
if (isie) { H=H+20+3; W=W+2; }
var s = ",width="+ W +",height="+ H ;

if (isv6) {
	btnvisible="hidden";
	}
else {
	btnvisible="visible";
	}

if (taal == 1){
	imageprint = "Afbeeldingen printen?"
}
else {
	imageprint = "Print images?"
}
	
if (isie && iswin) {
var vincishtml = '\n' +
'<html> '+ '\n'+
'<head> '+ '\n'+
'<style type="text/css"> '+ '\n'+
'#crtMOVE   { position: absolute; left:   0px; top: 0px; z-index: 2; } '+ '\n'+
'#txtTITLE  { position: absolute; left:   0px; top: 0px; width: 100%;  height: 15px; z-index: 1; clip:rect(0,100%,15,0); } '+ '\n'+
'#btnCLOSE  { visibility="' + btnvisible + '"; position: absolute; left: -20px; top: 2px; width: 11px; height: 11px; z-index: 3; clip:rect(0,11,11,0); } '+ '\n'+
'#btnMINI   { visibility="' + btnvisible + '"; position: absolute; left: -20px; top: 2px; width: 11px; height: 11px; z-index: 3; clip:rect(0,11,11,0); } '+ '\n'+
'#grfCLOCK  { visibility="' + btnvisible + '"; position: absolute; left: -20px; top: 2px; width: 11px; height: 11px; z-index: 3; clip:rect(0,11,11,0); } '+ '\n'+
'</style> '+ '\n'+
'<script language="javascript"> '+ '\n'+
'var imgCLOSEdwn = new Image(); imgCLOSEdwn.src = "'+ CLOSEdwn +'"; '+ '\n'+
'var imgCLOSEup  = new Image(); imgCLOSEup.src  = "'+ CLOSEup  +'"; '+ '\n'+
'var imgCLOSEovr = new Image(); imgCLOSEovr.src = "'+ CLOSEovr +'"; '+ '\n'+
'var imgMINIdwn  = new Image(); imgMINIdwn.src  = "'+ MINIdwn +'"; '+ '\n'+
'var imgMINIup   = new Image(); imgMINIup.src   = "'+ MINIup  +'"; '+ '\n'+
'var imgMINIovr  = new Image(); imgMINIovr.src  = "'+ MINIovr +'"; '+ '\n'+
'var CLOCKgrfImg = new Image(); CLOCKgrfImg.src = "'+ CLOCKgrf +'"; '+ '\n'+
'document.onselectstart = new Function("return false;") '+ '\n'+
'document.ondragstart   = new Function("moveWIN();return false;") '+ '\n'+
'document.oncontextmenu = new Function("return false;") '+ '\n'+
'document.onmousemove   = moveWIN '+ '\n'+
'winSTATUS = "up"; '+ '\n'+
'function setLAYOUT() { '+ '\n'+
'document.all["btnCLOSE"].style.pixelLeft=document.body.clientWidth-14 '+ '\n'+
'if ( top.mainloaded ) 	{ '+ '\n'+
'document.all["grfCLOCK"].style.visibility = "hidden"; '+ '\n'

if (isv55) {
vincishtml += '\n' +
'document.all["btnMINI"].style.pixelLeft=document.body.clientWidth-30; '+ '\n'
}

vincishtml += '\n' +
'} '+ '\n'+
'else { '+ '\n'+
'document.all["btnMINI"].style.visibility  = "hidden"; '+ '\n'+
'document.all["grfCLOCK"].style.pixelLeft=document.body.clientWidth-30; '+ '\n'+
'setTimeout("setLAYOUT()",500); '+ '\n'+
'} '+ '\n'+
'} '+ '\n'+
'function minimizeWIN() { '+ '\n'+
'top.window.moveTo(0,-4000); '+ '\n'+
'if ( (top.opener) && (!top.opener.closed) ) { top.opener.window.focus(); } '+ '\n'+
'top.window.blur() '+ '\n'+
'} '+ '\n'+
'function moveWIN() { '+ '\n'+
'if ( winSTATUS == "down") { '+ '\n'+
'document.body.bgColor = "'+winBGCOLORsel+'" '+ '\n'+
'ofx =  event.x '+ '\n'+
'ofy =  event.y '+ '\n'+
'winSTATUS = "drag" '+ '\n'+
'} '+ '\n'+
'else if ( winSTATUS == "drag") { '+ '\n'+
'px = event.screenX - ofx - 1; '+ '\n'+
'py = event.screenY - ofy - 1; '+ '\n'+
'top.window.x=px; '+ '\n'+
'top.window.y=py; '+ '\n'+
'top.window.moveTo(px , py); '+ '\n'+
'} else { '+ '\n'+
'document.body.bgColor = parent.mainprint.document.bgColor '+ '\n'+
'winStatus = "up" '+ '\n'+
'parent.mainprint.focus() '+ '\n'+
'} '+ '\n'+
'} '+ '\n'+
'</script> '+ '\n'+
'</head> '+ '\n'+
'<body onresize="setLAYOUT()" bgcolor='+winBGCOLOR+'> '+ '\n'+
'<div id=crtMOVE><img onmousedown="winSTATUS=\'down\';moveWIN()" onmouseup="winSTATUS=\'up\';moveWIN()" border=0 src="'+NONEgrf+'" width=110% height=500>111</div> '+ '\n'+
'<div id=txtTITLE>'+ '<table width=100% height=15 border=0 cellpadding=0 cellspacing=0><tr><td valign=middle align=center>'+titHTML+'</td></tr></table>' +'</div> '+ '\n'+
'<div id=btnCLOSE><img name=imgCLOSE src="'+ CLOSEup +'" border=0 width=11 height=11 onmouseover="this.src=imgCLOSEovr.src" onmouseout="btnSTATUS=false; this.src=imgCLOSEup.src" onmouseup="this.src=imgCLOSEup.src" onmousedown="this.src=imgCLOSEdwn.src" onclick="top.window.close()"></div> '+ '\n'+
'<div id=btnMINI><img name=imgMINI src="'+ MINIup +'" border=0 width=11 height=11 onmouseover="this.src=imgMINIovr.src"  onmouseout="btnSTATUS=false; this.src=imgMINIup.src"  onmouseup="this.src=imgMINIup.src"  onmousedown="this.src=imgMINIdwn.src"  onclick="minimizeWIN()"></div> '+ '\n'+
'<div id=grfCLOCK><img name=imgCLOCK src="'+ CLOCKgrf +'" border=0 width=11 height=11></div> '+ '\n'+
'<script>setLAYOUT()</script> '+ '\n'+
'</body> '+ '\n'+
'</html> '+ '\n'

var vincishtml2 = '\n' +
'<html> '+ '\n'+
'<head> '+ '\n'+
'<style type="text/css"> '+ '\n'+
'#crtMOVE   { position: absolute; left:   4px; top: 2px; z-index: 2; } '+ '\n'+
'#txtPrint  { position: absolute; left:   18px; top: 0px; z-index: 2; } '+ '\n'+
'#btnPRINT  { position: absolute; left: -40px; top: 2px; width: 37px; height: 11px; z-index: 3; clip:rect(0,37,11,0); } '+ '\n'+
'#txtTITLE  { position: absolute; left:   0px; top: 0px; width: 100%;  height: 15px; z-index: 1; clip:rect(0,100%,15,0); } '+ '\n'+
'#chkBOX    { style="visibility:hidden" } '+ '\n'+
'</style> '+ '\n'+
'<script language="javascript"> '+ '\n'+
'var imgPRINTdwn = new Image(); imgPRINTdwn.src = "'+ PRINTdwn +'"; '+ '\n'+
'var imgPRINTup  = new Image(); imgPRINTup.src  = "'+ PRINTup  +'"; '+ '\n'+
'var imgPRINTovr = new Image(); imgPRINTovr.src = "'+ PRINTovr +'"; '+ '\n'+
'var imgCHECK1 = new Image(); imgCHECK1.src = "'+ CHECKup +'"; '+ '\n'+
'var imgCHECK2 = new Image(); imgCHECK2.src = "'+ CHECKdwn +'"; '+ '\n'+
'document.onselectstart = new Function("return false;") '+ '\n'+
'document.ondragstart   = new Function("moveWIN();return false;") '+ '\n'+
'document.oncontextmenu = new Function("return false;") '+ '\n'+
'document.onmousemove   = moveWIN '+ '\n'+
'winSTATUS = "up"; '+ '\n'+
'function setLAYOUT() { '+ '\n'+
'document.all["btnPRINT"].style.pixelLeft=document.body.clientWidth-40 '+ '\n'+
'if ( top.mainloaded ) 	{ '+ '\n'+
'document.all["grfCLOCK"].style.visibility = "hidden"; '+ '\n'

vincishtml2 += '\n' +
'document.all["btnPRINT"].style.visibility  = "visible"; '+ '\n'+
'document.all["grfCLOCK"].style.pixelLeft=document.body.clientWidth-40; '+ '\n'+
'setTimeout("setLAYOUT()",500); '+ '\n'+
'} '+ '\n'+
'} '+ '\n'+
'function moveWIN() { '+ '\n'+
'if ( winSTATUS == "down") { '+ '\n'+
'document.body.bgColor = "'+winBGCOLORsel+'" '+ '\n'+
'ofx =  event.x '+ '\n'+
'ofy =  event.y '+ '\n'+
'winSTATUS = "drag" '+ '\n'+
'} '+ '\n'+
'else if ( winSTATUS == "drag") { '+ '\n'+
'px = event.screenX - ofx - 1; '+ '\n'+
'py = event.screenY - ofy - 1; '+ '\n'+
'top.window.x=px; '+ '\n'+
'top.window.y=py; '+ '\n'+
'top.window.moveTo(px , py); '+ '\n'+
'} else { '+ '\n'+
'document.body.bgColor = parent.mainprint.document.bgColor '+ '\n'+
'winStatus = "up" '+ '\n'+
'parent.mainprint.focus() '+ '\n'+
'} '+ '\n'+
'} '+ '\n'+
'function PrintPage()'+ '\n'+
'{'+ '\n'+
'if (window.print) {'+ '\n'+
'parent.mainprint.focus() '+ '\n'+
'window.print()'+ '\n'+
'}'+ '\n'+
'}'+ '\n'+
'function Plaatjes()'+ '\n'+ 
'{'+ '\n'+
'var locatie = parent.mainprint.location'+ '\n'+
'if (document.images["imgCHECK2"].src == imgCHECK1.src) {'+ '\n'+
'parent.mainprint.location = locatie + "' + imageOn + '"'+ '\n'+
'document.images["imgCHECK2"].src = "' + CHECKdwn + '"'+ '\n'+
'}'+ '\n'+
'else {'+ '\n'+
'parent.mainprint.location = locatie + "' + imageOff + '"'+ '\n'+
'document.images["imgCHECK2"].src = "' + CHECKup + '"'+ '\n'+
'}'+ '\n'+
'}'+ '\n'+
'</script> '+ '\n'+
'</head> '+ '\n'+
'<body onresize="setLAYOUT()" bgcolor='+winBGCOLOR+'> '+ '\n'+
'<form name=form1>'+ '\n'+
'<div id=crtMOVE><img name=imgCHECK2 src="' + CHECKup + '" border="0" alt="" onclick="javascript:Plaatjes();"></div> '+ '\n'+
'<div id=txtPrint><font face="arial" size="1" color="204E72">' + imageprint +'</font></div> '+ '\n'+
'<div id=txtTITLE>'+ '<table width=100% height=15 border=0 cellpadding=0 cellspacing=0><tr><td valign=middle align=center>'+botHTML+'</td></tr></table>' +'</div> '+ '\n'+
'<div id=btnPRINT><img name=imgPRINT src="'+ PRINTup +'" border=0 onmouseover="this.src=imgPRINTovr.src" onmouseout="btnSTATUS=false; this.src=imgPRINTup.src" onmouseup="this.src=imgPRINTup.src" onmousedown="this.src=imgPRINTdwn.src" onclick="PrintPage()"></div> '+ '\n'+
'<div id=btnMINI><img name=imgMINI src="'+ MINIup +'" border=0 width=11 height=11 onmouseover="this.src=imgMINIovr.src"  onmouseout="btnSTATUS=false; this.src=imgMINIup.src"  onmouseup="this.src=imgMINIup.src"  onmousedown="this.src=imgMINIdwn.src"  onclick="minimizeWIN()"></div> '+ '\n'+
'<div id=grfCLOCK><img name=imgCLOCK src="'+ CLOCKgrf +'" border=0 width=11 height=11></div>'+ '\n'+
'<div id=chkBOX><img name=imgCHECK1 src="' + CHECKup + '" border="0" alt=""></div>'+ '\n'+
'</form>'+ '\n'+
'<script>setLAYOUT()</script> '+ '\n'+
'</body> '+ '\n'+
'</html> '+ '\n'

var vincisFRMhtml = '' +                
'<HTML>	'+ '\n'+
'<HEAD> '+ '\n'+
'<TITLE>'+ titWIN +'</TITLE> '+ '\n'+
'</HEAD> '+ '\n'+
'<script> '+ '\n'+
'top.mainloaded = false	'+ '\n'+
'function generatetitle() { '+ '\n'+
'if( window.frames["frmTIT"] && window.frames["frmBOT"] && window.frames["bordeL"] && window.frames["bordeB"] && window.frames["bordeR"] && window.frames["bordeM"] ) { '+ '\n'+
'frmTIT.document.bgColor="'+ winBGCOLOR +'" '+ '\n'+
'frmTIT.document.open(); '+ '\n'+
'frmTIT.document.write( "'+ jumpLine(vincishtml) +'" ); '+ '\n'+
'frmTIT.document.close(); '+ '\n'+
'frmBOT.document.bgColor="'+ winBGCOLOR +'" '+ '\n'+
'frmBOT.document.open(); '+ '\n'+
'frmBOT.document.write( "'+ jumpLine(vincishtml2) +'" ); '+ '\n'+
'frmBOT.document.close(); '+ '\n'+
'bordeM.document.bgColor="'+ winBORDERCOLOR +'"	'+ '\n'+
'bordeL.document.bgColor="'+ winBORDERCOLOR +'"	'+ '\n'+
'bordeR.document.bgColor="'+ winBORDERCOLOR +'"	'+ '\n'+
'bordeB.document.bgColor="'+ winBORDERCOLOR +'"	'+ '\n'+
'bordeT.document.bgColor="'+ winBORDERCOLOR +'"	'+ '\n'+
'bordeBOT.document.bgColor="'+ winBORDERCOLOR +'"	'+ '\n'+
'} else { '+ '\n'+
'setTimeout("generatetitle()",20) '+ '\n'+
'} '+ '\n'+
'} '+ '\n'+
'top.window.h='+H+' '+ '\n'+
'top.window.w='+W+' '+ '\n'+
'top.window.x='+X+' '+ '\n'+
'top.window.y='+Y+' '+ '\n'+
'generatetitle() '+ '\n'+
'</script> '+ '\n'+
'<frameset onload="top.mainloaded=true" name="frejm" onfocus="top.window.moveTo(top.window.x,top.window.y)" border=0 framespacing=0 frameborder=0 cols="1,100%,1"> '+ '\n'+
'<frame name=bordeL src="about:blank" scrolling=no noresize> '+ '\n'+
'<frameset name="vincisframeset" border=0 framespacing=0 frameborder=0 rows="1,15,1,100%,1,15,1"> '+ '\n'+
'<frame name=bordeT src="about:blank" scrolling=no noresize> '+ '\n'+
'<frame name=frmTIT src="about:blank" scrolling=no noresize> '+ '\n'+
'<frame name=bordeM src="about:blank" scrolling=no noresize> '+ '\n'+
'<frame name=mainprint src="'+theURL+'"> '+ '\n'+
'<frame name=bordeB src="about:blank" scrolling=no noresize> '+ '\n'+
'<frame name=frmBOT src="about:blank" scrolling=no noresize> '+ '\n'+
'<frame name=bordeBOT src="about:blank" scrolling=no noresize> '+ '\n'+
'</frameset> '+ '\n'+
'<frame name=bordeR src="about:blank" scrolling=no noresize> '+ '\n'+
'</frameset> '+ '\n'+
'</HTML> '

if (isv6){var vincis = window.open( "" , wname, "fullscreen=0"+s);}
else {var vincis = window.open( "" , wname, "fullscreen=1"+s);}

vincis.opener.name = 'opener';
vincis.resizeTo( Math.ceil( W ) , Math.ceil( H ) );
vincis.moveTo  ( Math.ceil( X ) , Math.ceil( Y ) );
vincis.document.open();
vincis.document.write( vincisFRMhtml );
vincis.document.close();
}
else {
var vincis = window.open(theURL, wname, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1"+s, true);
vincis.opener.name = 'opener';
}
vincis.focus();
return vincis
}                                                                               
                                                                                
function jumpLine(txt) {
var vincis2 = txt.toString()
var re = /\\/g; var vincis2 = vincis2.replace(re, "\\\\");
var re = /\//g; var vincis2 = vincis2.replace(re, "\\\/");
var re = /\"/g; var vincis2 = vincis2.replace(re, "\\\"");
var re = /\'/g; var vincis2 = vincis2.replace(re, "\\\'");
var re = /\n/g; var vincis2 = vincis2.replace(re, "\\n");
var re = /  /g; var vincis2 = vincis2.replace(re, "");
var re = /\t/g; var vincis2 = vincis2.replace(re, "");
var re = /\r/g; var vincis2 = vincis2.replace(re, "");
return vincis2
}

// stijlID komt uit vieuwmenu.asp!
function printIT(theURL,W,H,X,Y, wname, taal) {
CLOSEdwn = "/sjablonen/algemeen/images/printbrowser/close_d.gif"
CLOSEup = "/sjablonen/algemeen/images/printbrowser/close_u.gif"
CLOSEovr = "/sjablonen/algemeen/images/printbrowser/close_o.gif"
PRINTdwn = "/sjablonen/algemeen/images/printbrowser/print_d.gif"
PRINTup = "/sjablonen/algemeen/images/printbrowser/print_u.gif"
PRINTovr = "/sjablonen/algemeen/images/printbrowser/print_o.gif"
MINIdwn = "/sjablonen/algemeen/images/printbrowser/min_d.gif"
MINIup = "/sjablonen/algemeen/images/printbrowser/min_u.gif"
MINIovr = "/sjablonen/algemeen/images/printbrowser/min_o.gif"
NONEgrf = "/sjablonen/algemeen/images/printbrowser/1p_spacer.gif"
CLOCKgrf = "/sjablonen/algemeen/images/printbrowser.gif"
CHECKup = "/sjablonen/algemeen/images/printbrowser/check1.gif"
CHECKdwn = "/sjablonen/algemeen/images/printbrowser/check2.gif"
titHTML = "<img src='/sjablonen/algemeen/images/printbrowser/back.gif'>"
botHTML = "<img src='/sjablonen/algemeen/images/printbrowser/bottomback.gif'>"
titWIN = "PrintBrowser"
winBORDERCOLOR = "#000000"
winBORDERCOLORsel = "#000000"
winBGCOLOR = "#000000"
winBGCOLORsel = "#FFFFFF"
openprintwin(theURL, wname, W, H, X, Y, NONEgrf, CLOSEdwn, CLOSEup, CLOSEovr, MINIdwn, MINIup, MINIovr, CLOCKgrf, titHTML, titWIN, winBORDERCOLOR, winBORDERCOLORsel, winBGCOLOR, winBGCOLORsel, taal)
}