 <!--
var agt=navigator.userAgent.toLowerCase();
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);
var is_nav6up = (is_nav && (is_major >= 5));
var is_ie4up  = (is_ie && (is_major >= 4));
var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_ie4up  = (is_ie && (is_major >= 4));
var lastclicked = "none";

var pointcursor = "";
if(is_nav6up){pointcursor = "pointer";}
if(is_ie4up){pointcursor = "hand";}

window.onResize=resize_scroll_area();

function reset_divs(){
	
	if(document.getElementById('sub_zoeken')){

		document.getElementById('het_nbbe').className='menu';
		document.getElementById('examens').className='menu';
		document.getElementById('wet_en_regelgeving').className='menu';
		document.getElementById('nieuws').className='menu';
		document.getElementById('ocr').className='menu';	
		document.getElementById('rampenbestrijding_en_crisisbeheersing').className='menu';	
		document.getElementById('online_toetsen').className='menu';
		document.getElementById('links').className='menu';		
		document.getElementById('contact').className='menu';
		document.getElementById('zoeken').className='menu';
		document.getElementById('home').className='menu';
        document.getElementById('mijn_nbbe').className='menu';
		document.getElementById('ghor').className='menu';
	
		document.getElementById('sub_het_nbbe').style.display='none';
		document.getElementById('sub_examens').style.display='none';
		document.getElementById('sub_wet_en_regelgeving').style.display='none';
		document.getElementById('sub_nieuws').style.display='none';
		document.getElementById('sub_ocr').style.display='none';
		document.getElementById('sub_rampenbestrijding_en_crisisbeheersing').style.display='none';
		document.getElementById('sub_online_toetsen').style.display='none';
		document.getElementById('sub_links').style.display='none';
		document.getElementById('sub_contact').style.display='none';
        document.getElementById('sub_zoeken').style.display='none';
		document.getElementById('sub_ghor').style.display='none';

	}

}

function check_menu_over(div){
	
	reset_divs();
	
	if(document.getElementById("sub_"+div.id)){
			document.getElementById("sub_"+div.id).style.display='block';
	}
	
	div.className="menu_over";

}

function check_menu_click(url){
//	document.location.href='http://swis01/nbbe/'+url;
	document.location.href='http://www.swismachine.nl/~nbbe/'+url;
}

function resize_scroll_area(){
	
	browser_height = get_browser_height();
	
	if(document.getElementById('scrollarea')){
		document.getElementById('scrollarea').style.height=(browser_height - 90) + "px";
	}

}

function openWin(file){
	myWin = window.open(file,"Popup","toolbar=no,status=no,width=250,height=400");
	myWin.moveTo(0,0);
}

 function get_browser_height(){
  
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else {
    if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
      //IE 6+ in 'standards compliant mode'
      myWidth = document.documentElement.clientWidth;
      myHeight = document.documentElement.clientHeight;
    } else {
      if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
      }
    }
  }
  
  myHeight = myHeight - 30;
  return(myHeight);
  
 }

function openWin(file){

	myWin=window.open(file,"Popup","toolbar=no,status=no,width=250,height=400");
	myWin.moveTo(0,0);

}

   //*********************************************
   // Form validatie script                    
   //*********************************************
           
   function radio_validation(radiobuttons, alertbox){
            
    var ingevuld=false;
    for(teller=0;teller<radiobuttons.length;teller++){
     if(radiobuttons[teller].checked==true){ingevuld=true;}
    }
   
    if(ingevuld){
      return true;
    } else {
         if (alertbox!=""){
           alert(alertbox);
         }
         return false;
      }
    
   } //  function radio_validation
   
   function empty_validation(entered, alertbox){
   
     with(entered){
      if (value==null || value==""){
        if (alertbox!=""){
          alert(alertbox);
        }
        return false;
      } else {
          return true;
        }
     }
     
   } // function emptyvalidation

	function checkbox_validation(entered, alertbox){
		with(entered){
			if (checked==false){
				if (alertbox!=""){
					alert(alertbox);
				}
				return false;
			} else {
				return true;
			}
		}
	} // function emptyvalidation

   function email_validation(entered, alertbox) {
   
     with (entered) {
      apos=value.indexOf("@"); 
      dotpos=value.lastIndexOf(".");
      lastpos=value.length-1;
      if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2) {
       if (alertbox){
        alert(alertbox);
       }
       return false;
      } else {
         return true;
        }
     }
   } // function email_validation

//****************************************//
// een div verbergen of laten zien als de functie wordt aangeroepen
// geef het id van de div mee aan de functie
//****************************************//
function swap_div(div){
	if(document.getElementById(div).style.display=='block'){
		document.getElementById(div).style.display='none';
	} else {
		document.getElementById(div).style.display='block';
	} 
}

function toonQuickMenu(){
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"   width="200" height="66" id="quicknav" align="">');
	document.writeln('<param name=movie value="flash/quicknav.swf">');
	document.writeln('<param name=quality value=high>');
	document.writeln('<param name=bgcolor value=#ffffff>');
	document.writeln('<embed src="flash/quicknav.swf" quality=high bgcolor=#ffffff width="200" height="66" name="quicknav" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.writeln('</object>');
} // function toonQuickMenu()
//-->