/* --------------------------------------------------------------------- */
/*  Browsercheck                                                         */
/* --------------------------------------------------------------------- 

function checkBrowser(){
		this.ver=navigator.appVersion
		this.dom=document.getElementById?1:0
		this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
		this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
		this.ie4=(document.all && !this.dom)?1:0;
		this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
		this.ns4=(document.layers && !this.dom)?1:0;
		this.ie4mac=this.ie4 && navigator.userAgent.indexOf("Mac")>-1
		this.ie5mac=this.ie5 && navigator.userAgent.indexOf("Mac")>-1
		this.ie55=(this.ver.indexOf("MSIE 5.5")>-1 && this.dom)?1:0; 
		this.bw=(this.ie6 || this.ie55 ||  this.ie5 || this.ie4 || this.ns4 || this.ns5 || this.ns6 || this.ns7 || this.ie5mac)
		return this
}
bw=new checkBrowser()
*/

//stylesheets
document.write('<link rel=StyleSheet href="styles.css" type="text/css">');

// IE mouseoverfix
function ExplorerFix() 
{ for (a in document.links) document.links[a].onfocus = document.links[a].blur; 
}
if(document.all) document.onmousedown = ExplorerFix;

/* --------------------------------------------------------------------- */
/*  open Popup-windows                                                  */
/* --------------------------------------------------------------------- */
function popUp(file) {
 open(file,'Kaarten','width=380,height=390,toolbar=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=0');
	}

/* --------------------------------------------------------------------- */
/*  Zoekvelden scripts                                                  */
/* --------------------------------------------------------------------- */	
	
function Find_Term(search,field)
{
	var pattern

	if (search.value == "") 
	{
		field.options.selectedIndex = -1;
		return;
	}
	//Use "i" to make search not case-sensitive
	pattern = new RegExp("^" + search.value, "i");

	for(var x=0; x < field.options.length; x++)
	{
		
		if (pattern.test(field.options[x].text) == true)
		{
			
			field.options[x].selected = true
			break;
			
		}
	}

}


// Deze functie handelt de knop "zoeken" af. 

function go() {

  window.location.href =
    document.DropDownList.SelectItem.options[
      document.DropDownList.SelectItem.selectedIndex
    ].value;
}
//-->

// zou met enter de zoekopdracht moeten afhandelen
 
function entsub(DropDownList) {
  if (window.event && window.event.keyCode == 13)
    DropDownList.submit();
  else
    return true;}	


