// JavaScript Document
<!--

 
function check()
{
  var checked=true;
  var pattern=/.*\@.*\..*/;
  		
       if (checked)
	  {
	    if (document.sendform.naam.value=="")
        {
		  document.sendform.naam.focus();
		  document.sendform.naam.select();
          alert ("Vul a.u.b. uw naam in.");
          checked=false;
        }
	  }
	  
	   if (checked)
	  {
	    if (document.sendform.telefoon.value=="")
        {
		  document.sendform.telefoon.focus();
		  document.sendform.telefoon.select();
          alert ("Vul a.u.b. uw telefoonnummer in.");
          checked=false;
        }
	  }
	  
	  if (checked)
	  {
	    if ((pattern.test(document.sendform.email.value))==false)
        {
		  document.sendform.email.focus();
		  document.sendform.email.select();
          alert ("Vul a.u.b. een geldig e-mailadres in.");
          checked=false;
        }
	  }

       if (checked)
	  {
	    if (document.sendform.email.value=="")
        {
		  document.sendform.email.focus();
		  document.sendform.email.select();
          alert ("Vul a.u.b. een geldig e-mailadres in.");
          checked=false;
        }
	  }
       
	     if (checked)
	  {
		  
		  if ( document.sendform.day.selectedIndex == 0 )
    {
          document.sendform.day.focus();
		  alert ("Vul a.u.b. uw geboortedag in.");
          checked = false;
    }

  }
		  if (checked)
	  {
		  
		  if ( document.sendform.month.selectedIndex == 0 )
    {
          document.sendform.month.focus();
		  alert ("Vul a.u.b. uw geboortemaand in.");
          checked = false;
    }

  }
  
  if (checked)
	  {
		  
		  if ( document.sendform.year.selectedIndex == 0 )
    {
          document.sendform.year.focus();
		  alert ("Vul a.u.b. uw geboortejaar in.");
          checked = false;
    }

  }
	 	  
	   
	   
	     if (checked)
	  {
		  		  
	     if ( document.sendform.niveau.selectedIndex == 0 )
        {
		  document.sendform.niveau.focus();
		  alert ("Geef a.u.b. aan wat uw niveau is.");
          checked=false;
        }
	  }
	   
	   if (checked)	   
	  {
	    if (document.sendform.captcha_code.value=="")
        {
		  document.sendform.captcha_code.focus();
		  document.sendform.captcha_code.select();
          alert ("Neem a.u.b. de tekens op de afbeelding over");
          checked=false;
        }
	  }
	   
	   	   
		if (checked)
  {
    document.sendform.method="POST";
    document.sendform.action="/form/php/looptrainingen_email.php";
	document.sendform.submit;
  }
  return checked;
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}
//-->

