// JavaScript Document
function printen()
{
    var agt=navigator.userAgent.toLowerCase()
    if (agt.indexOf("msie") != -1) {
      // Internet Explorer
	  var browserv = navigator.appVersion

      window.print();
    } else {
    // Netscape Navigator/Communicator
    if (navigator.appVersion.charAt(0)>='4') {
      window.print();
    } else {
      alert('Klik op File/Print of Bestand/Afdrukken.');
    }
   }
}

//Open browser window start
bVersion = parseInt(navigator.appVersion);  //get browser version number

var amHorz = 0;
var amVert = 0;

function macTest() { 
	if (navigator.appVersion.indexOf("PPC") != -1 || navigator.appVersion.indexOf("68K") != -1) return true; else return false; }
	if (navigator.appName == "Microsoft Internet Explorer" && macTest()) { amHorz = 35; amVert = 15; };
	if (parseInt(navigator.appVersion) >= 4) {
		var bsrW = ((640 / 3) - 25);
		var bsrH = ((480 ) - 50);
		var popWindows = 0;
	}
function openPictureWindow (imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}
//Open browser window end
/* In body put following:
<a href="#" onClick="openPictureWindow ('BigImageName.jpg','Width','Height','PopupName','Left','Top')">
	<img src="ThumbImageName.jpg" width="100" height="100" border="0">
</a> 
*/


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}