
var type = "IE";	//Variable used to hold the browser name
BrowserSniffer();
//detects the capabilities of the browser
function BrowserSniffer() {
	if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";		//Opera
	else if (document.all) type="IE";														//Internet Explorer e.g. IE4 upwards
	else if (document.layers) type="NN";													//Netscape Communicator 4
	else if (!document.all && document.getElementById) type="MO";							//Mozila e.g. Netscape 6 upwards
	else type = "IE";		//I assume it will not get here
}

function getLayer(name) {

  // Returns a handle to the named layer.

  if (document.layers)
    return(document.layers[name]);
  else if (document.all) {
    layer = eval('document.all.' + name + '.style');
    //alert (layer.id);
    return(layer);
   //return (document.getElementById(name))
  }
  else
    {
      return (document.getElementById(name))
      //return(null);
    }
}
//Show and hide a layer
//id is the name of the layer
//action is either hidden or visible
//Seems to work with all versions NN4 plus other browsers
function showLayer(id, action){
	if (type=="IE") eval("document.all." + id + ".style.visibility='" + action + "'");
	if (type=="NN") eval("document." + id + ".visibility='" + action + "'");
	if (type=="MO" || type=="OP") eval("document.getElementById('" + id + "').style.visibility='" + action + "'");
}

function hideLayer(id){
	if (type=="IE") eval("document.all." + id + ".style.visibility='hidden'");
	if (type=="NN") eval("document." + id + ".visibility='hide'");
	if (type=="MO" || type=="OP") eval("document.getElementById('" + id + "').style.visibility='hidden'");
}
function zoeken(){
	document.zoek.submit();
}

  
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 openwin(page, w, h) {
	feat='width=' + w + ', height=' + h + ',status=1, scrollbars=1, resizable=1'
  	window.open(page, 'Popup',feat)
}




function volgende(page) {
	document.cat.page.value = page;
	document.cat.id.value = 0;
	anderePagina(1);
}
function vorige(page) {
	document.cat.page.value = page;
	document.cat.id.value = 0;
	anderePagina(-1);           
}

function andereCat(){
	document.cat.page.value = 0;
	document.cat.sc.value = 0;
	document.cat.id.value = 0;
	document.cat.submit();
}
function opsturen(){
	document.formulier.opgestuurd.value = 1;
	document.formulier.submit();
}