function checkForm()
{
	var status = true;
	
	// geslacht cheken
 	if (!document.forms[0].ais_geslacht[0].checked && !document.forms[0].ais_geslacht[1].checked )
	  {
	  	document.getElementById('ais_geslacht').className = 'error';	
	  	status = false;
	  }
	  else document.getElementById('ais_geslacht').className = '';
  // voornaam
	if (document.forms[0].ais_voornaam.value == ""  )
		{
			document.getElementById('ais_voornaam').className = 'error';
			document.forms[0].ais_voornaam.focus();
			status = false;
		}
		else { document.getElementById('ais_voornaam').className = '';}
	
	// achternaam
	if (document.forms[0].ais_achternaam.value == "" ) 
		{
			document.getElementById('ais_achternaam').className = 'error';
			document.forms[0].ais_achternaam.focus();
			status = false;
		}
		else { document.getElementById('ais_achternaam').className = '';}
	
	if (document.forms[0].ais_tel.value == "" ) 
		{
			document.getElementById('ais_tel').className = 'error';
			document.forms[0].ais_tel.focus();
			status = false;
		}
		else { document.getElementById('ais_tel').className = '';}
	
	// email
	
	if(!isValidEmail(document.forms[0].ais_email.value))
	{
		document.getElementById('ais_email').className = 'error';
		if(status) document.getElementById('error').innerHTML = "Ongeldig e-mail adres";
		document.forms[0].ais_email.focus();
		status = false;
	}
	else document.getElementById('ais_email').className = '';	
	
	if(status){ document.forms[0].submit(); }
	else document.getElementById('error').style.visibility = 'visible';
}

function isValidEmail(str) {
   return (str.indexOf(".") > 2) && (str.indexOf("@") > 0); 
}

/* suckerfish */
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);

