// Javascript

// Mouseover script
    function checkOver(imagename){
    document.images[imagename].src="images/"+imagename+"_02.gif";
   }

   function checkOut(imagename){
    document.images[imagename].src="images/"+imagename+"_01.gif";
   }
   function openWin(file){
    myWin=window.open(file,"Popup","toolbar=no,status=no,width=310,height=400");
    myWin.moveTo(30,30);
   }

function email_validation(entered, alertbox) {
   
     with (entered) {
      apos=value.indexOf("@"); 
      dotpos=value.lastIndexOf(".");
      lastpos=value.length-1;
      if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2) {
       if (alertbox){
        alert(alertbox);
       }
       return false;
      } else {
         return true;
        }
     }
   } // function email_validation

   function empty_validation(entered, alertbox){
   
     with(entered){
      if (value==null || value==""){
        if (alertbox!=""){
          alert(alertbox);
        }
        return false;
      } else {
          return true;
        }
     }
     
   } // function emptyvalidation

   function form_validation(thisform){
    
    with(thisform){
     	if(empty_validation(realname,"U moet nog een naam invullen")==false){realname.focus(); return false;}; 
     	if(email_validation(email,"U dient een geldig e-mailadres in te vullen")==false){email.focus(); return false;};     
    	}
    }
    
//function validate
// -->

