<!--
// Busverhuur.net: mededeling in statusbalk Windows
// te plaatsen regel in document: <body onLoad="text('This is what the Window Statusbar does.');">
function text(txt) {
   window.status = txt;
}
// -->

<!--
// Busverhuur.net: uitschakelen van rechter knop muis
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
// --> 

<!--
// Busverhuur.net: Printfunctie
	     var da  = (document.all) ? 1 : 0;
	     var pr  = (window.print) ? 1 : 0;
	     var mac = (navigator.userAgent.indexOf("Mac") != -1);
	     
	     function printPage(frame, arg)
	     {
			if (frame == window)
			{
				printThis();
			}
			else
			{
				link = arg;	
				printFrame(frame);
		    }
		    return false;
		 }
		 
		 function printThis()
		 {
			if (pr) 
			{
				window.print();
		    }
		    else if (da && !mac)
		    {
				vbPrintPage();
			}
			else
			{
				alert("Sorry, u browser ondersteunt deze optie niet.");
			}				
		 }
		 
		 function printFrame(frame)
		 {
			if (pr && da)
			{
				window.focus
				window.print();
				link.focus();
			}
			else if (pr)
			{
				frame.print();
		    }
		    else if (da && !mac)
		    {
				frame.focus();
				setTimeOut("vbPrintPage(); link.focus;", 100);
			}
			else
			{
				alert("Sorry, u browser ondersteunt deze optie niet.");
		    }
		 }
		 
		 if (da && !pr && !mac) with (document)
		 {
			writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');
			writeln('<' + 'SCRIPT LANGUAGE="VBScript">');
			writeln('Sub window_onunload');
			writeln('  On Error Resume Next');
			writeln('  Set WB = nothing');
			writeln('End Sub');
			writeln('Sub vbPrintPage');
			writeln('  OLECMDID_PRINT = 6');
			writeln('  OLECMDEXECOPT_DONTPROMPTUSER = 2');
			writeln('  OLECMDEXECOPT_PROMTUSER = 1');
			writeln('  On Error Resume Next');
			writeln('  WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER');
			writeln('End Sub');
			writeln('<' + '/SCRIPT>');
		 } 
	
	//-->

function popup(scr, window_height, window_width) {

        var screen_l = screen.width / 2;
        var screen_t = screen.height / 2;

        screen_l = (screen_l - (window_width / 2));
        screen_t = (screen_t - (window_height / 2)) - 10;

        var options = 'width=' + window_width + ',height=' + window_height + ',left=' + screen_l + ',Top=' + screen_t + ',toolbar=0,menubar=0,location=0,scrollbars=1,directories=0,status=0,resizable=1'
        window.open( "../links/linkscherm/"+scr, 'zoeken',options ) ;
}

function popup2(scr, window_height, window_width) {

        var screen_l = screen.width / 2;
        var screen_t = screen.height / 2;

        screen_l = (screen_l - (window_width / 2));
        screen_t = (screen_t - (window_height / 2)) - 10;

        var options = 'width=' + window_width + ',height=' + window_height + ',left=' + screen_l + ',Top=' + screen_t + ',toolbar=0,menubar=0,location=0,scrollbars=0,directories=0,status=0,resizable=1'
        window.open( "../links/linkscherm/"+scr, 'zoeken',options ) ;
}

function popupurl(scr, window_height, window_width) {

        var screen_l = screen.width / 2;
        var screen_t = screen.height / 2;

        screen_l = (screen_l - (window_width / 2));
        screen_t = (screen_t - (window_height / 2)) - 10;

        var options = 'width=' + window_width + ',height=' + window_height + ',left=' + screen_l + ',Top=' + screen_t + ',toolbar=0,menubar=0,location=0,scrollbars=1,directories=0,status=0,resizable=1'
        window.open( scr, 'zoeken',options ) ;
}


function popupurl2(scr, window_height, window_width) {

        var screen_l = screen.width / 2;
        var screen_t = screen.height / 2;

        screen_l = (screen_l - (window_width / 2));
        screen_t = (screen_t - (window_height / 2)) - 10;

        var options = 'width=' + window_width + ',height=' + window_height + ',left=' + screen_l + ',Top=' + screen_t + ',toolbar=0,menubar=0,location=0,scrollbars=0,directories=0,status=0,resizable=1'
        window.open( scr, 'zoeken',options ) ;
}

function popupurl3(scr, window_height, window_width) {

        var screen_l = screen.width / 2;
        var screen_t = screen.height / 2;

        screen_l = (screen_l - (window_width / 2));
        screen_t = (screen_t - (window_height / 2)) - 10;

        var options = 'width=' + window_width + ',height=' + window_height + ',left=' + screen_l + ',Top=' + screen_t + ',toolbar=0,menubar=0,location=0,scrollbars=1,directories=0,status=0,resizable=1'
        window.open( scr, 'zoeken',options ) ;
}

if (window.Event)    
  document.captureEvents(Event.MOUSEUP);    
function nocontextmenu()    
{  
event.cancelBubble = true  
event.returnValue = false;  
  return false;  
}  
function norightclick(e)    
{  
if (window.Event)    
{  
  if (e.which == 2 || e.which == 3)  
   return false;  
}  
else  
  if (event.button == 2 || event.button == 3)  
  {  
   event.cancelBubble = true  
   event.returnValue = false;  
   return false;  
  }  
}  
document.oncontextmenu = nocontextmenu;    
document.onmousedown = norightclick;    
function disableselect(e){ 
return false 
} 
function reEnable(){ 
return true 
} 
document.onselectstart=new Function ("return false") 
if (window.sidebar){ 
document.onmousedown=disableselect 
document.onclick=reEnable 
} 