<!--
// copyright 1999-2001 Idocs, Inc. http://www.idocs.com/tags/
// Distribute this script freely, but keep this 
// notice with the code.
var resetRolls = new Object();

function resetimage(src)
{
this.src=src;
this.confirm=true;
this.alt="Reset";
this.write=resetimage_write;
}

function resetimage_write()
{
document.write('<A ');
if (this.rollover)
    {
    if (! this.name)
        {
        alert('to create a rollover you must give the image a name');
        return;
        }

    resetRolls[this.name] = new Object();
    resetRolls[this.name].over = new Image();
    resetRolls[this.name].over.src=this.rollover;
    resetRolls[this.name].out = new Image();
    resetRolls[this.name].out.src=this.src;
    document.write(
        ' onMouseOver="if (document.images)document.images[\'' + 
        this.name + '\'].src=resetRolls[\'' + this.name + '\'].over.src"' + 
        ' onMouseOut="if (document.images)document.images[\'' + 
        this.name + '\'].src=resetRolls[\'' + this.name + '\'].out.src"'
        );
    }
document.write(' HREF="javascript:');
if (this.confirm)
    document.write('if(confirm(\'Weet u zeker dat u de gegevens wilt wissen?\'))');
document.write(
    'document.forms[' + 
    (document.forms.length - 1) + '].reset();void(0);">');
document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '"');
document.write(' BORDER=0');
if (this.name)document.write(' NAME="' + this.name + '"');
if (this.height)document.write(' HEIGHT=' + this.height);
if (this.width)document.write(' WIDTH=' + this.width);
if (this.otheratts)document.write(' '+ this.otheratts);
document.write('></A>');
}
//-->

<!-- Hide from older browsers
	
//Check the enquiry form is filled in correctly
function CheckForm () { 

	//Initialise variables
	var errorMsg = "";

	
	
	//Check for a first name
	if (document.frmEnquiry.naam.value == ""){
		errorMsg += "\n\tNaam \t- Vul uw naam in";	
	}
	
	
		//Check for a first name
	if (document.frmEnquiry.bedrijf.value == ""){
		errorMsg += "\n\tBedrijf \t- Vul uw bedrijfsnaam in";	
	}
	
		//Check for a first name
	if (document.frmEnquiry.telefoon.value == ""){
		errorMsg += "\n\ttelefoon \t- Vul uw telefoonnummer in";	
	}
	
	
		
		//Check for an e-mail address and that it is valid
	if ((document.frmEnquiry.email.value == "") || (document.frmEnquiry.email.value.length > 0 && (document.frmEnquiry.email.value.indexOf("@",0) == - 1 || document.frmEnquiry.email.value.indexOf(".",0) == - 1))) { 
		errorMsg += "\n\tE-mail \t- Vul een (geldig) email adres in";
	}	
	

		
	//If there is aproblem with the form then display an error
	if (errorMsg != ""){
		msg = "______________________________________________________________\n\n";
		msg += "Uw formulier kan niet worden behandeld. \n";
		msg += "Corrigeer a.u.b. de volgende velden en probeer het opnieuw.\n";
		msg += "______________________________________________________________\n\n";
		msg += "De volgende problemen zijn gecontstateerd: -\n";
		
		errorMsg += alert(msg + errorMsg + "\n\n");
		return false;
	}
	
	return true;
}
// -->


<!-- Hide from older browsers
	
//Check the enquiry form is filled in correctly
function CheckFormConcept () { 

	//Initialise variables
	var errorMsg = "";

	
	
	//Check for a first name
	if (document.concept.bedrijf.value == ""){
		errorMsg += "\n\tBedrijf		\t- Vul uw bedrijfsnaam in";	
	}
	
	//Check for a first name
	if (document.concept.contactp.value == ""){
		errorMsg += "\n\tNaam		\t- Vul uw naam in";	
	}

	
		//Check for a first name
	if (document.concept.telefoon.value == ""){
		errorMsg += "\n\tTelefoon	\t- Vul uw telefoonnummer in";	
	}
	
	
	
		
		//Check for an e-mail address and that it is valid
	if ((document.concept.email.value == "") || (document.concept.email.value.length > 0 && (document.concept.email.value.indexOf("@",0) == - 1 || document.concept.email.value.indexOf(".",0) == - 1))) { 
		errorMsg += "\n\tE-mail		\t- Vul een (geldig) email adres in";
	}	
	

		
	//If there is aproblem with the form then display an error
	if (errorMsg != ""){
		msg = "______________________________________________________________\n\n";
		msg += "Uw formulier kan niet worden behandeld. \n";
		msg += "Corrigeer a.u.b. de volgende velden en probeer het opnieuw.\n";
		msg += "______________________________________________________________\n\n";
		msg += "De volgende problemen zijn gecontstateerd: -\n";
		
		errorMsg += alert(msg + errorMsg + "\n\n");
		return false;
	}
	
	return true;
}
// -->

sfHover = function() {
  var sfEls = document.getElementById("nav").getElementsByTagName("li");
  for (var i=0; i<sfEls.length; i++) {
    sfEls[i].onmouseover=function() {
      this.className+=" sfhover";
    }
    sfEls[i].onmouseout=function() {
      this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    }
  }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
