function toForm() {
document.craftsform.voorwie_name.focus();
}

function knaagtest() {
   // controleren of het invoervak niet leeg is:
   

if ((document.craftsform.voorwie_name.value.indexOf  ('/',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('<',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\072',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\137',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\056',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\055\055',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\*',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\047',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\072',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\047',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\134',0)  > -1)) 

{
         // en of er geen gemene rotzooi in staat:
        alert ("\r Dit teken kun je niet gebruiken.");
// cursor in het invoervak zetten:
         //document.craftsform.voorwie_name.value = "";
         document.craftsform.voorwie_name.focus();
         // voorkomen dat het formulier verzonden wordt:
         return false;
}
if ((document.craftsform.huisnaam.value.indexOf  ('/',0)  > -1)||
(document.craftsform.huisnaam.value.indexOf  ('<',0)  > -1)||
(document.craftsform.huisnaam.value.indexOf  ('\134',0)  > -1)) {
         // en of er geen gemene rotzooi in staat:
         alert ("\r Deze tekens \134\ < / kun je niet gebruiken.");
     // cursor in het invoervak zetten:
         //document.craftsform.voorwie_name.value = "";
         document.craftsform.huisnaam.focus();
         // voorkomen dat het formulier verzonden wordt:
         return false;
}

 
if ((document.craftsform.datum.value.indexOf  ('/',0)  > -1)||
(document.craftsform.datum.value.indexOf  ('<',0)  > -1)||
(document.craftsform.datum.value.indexOf  ('\134',0)  > -1)) {
         // en of er geen gemene rotzooi in staat:
          alert ("\r Deze tekens \134\ < / kun je niet gebruiken.");
         // cursor in het invoervak zetten:
         //document.craftsform.voorwie_name.value = "";
         document.craftsform.datum.focus();
         // voorkomen dat het formulier verzonden wordt:
         return false;
}


}
function worteltest() {
if (document.craftsform.voorwie_name.value == "")

  {
      // zo niet, laat een melding zien:
       alert ("\r Voor wie is dit huis?");
 
document.craftsform.voorwie_name.focus();
        return false;
      // voorkomen dat het formulier verzonden wordt:
      
  } 

if (document.craftsform.datum.value == "")

  {
      // zo niet, laat een melding zien:
       alert ("\r Welke datum wil je op het huis?");
 
document.craftsform.datum.focus();
        return false;
      // voorkomen dat het formulier verzonden wordt:
      
  } 
if ((document.craftsform.voorwie_name.value.indexOf  ('/',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('<',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\072',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\137',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\056',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\055\055',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\*',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\047',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\072',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\047',0)  > -1)||
(document.craftsform.voorwie_name.value.indexOf  ('\134',0)  > -1)) 

{
         // en of er geen gemene rotzooi in staat:
        alert ("\r Dit teken kun je niet gebruiken.");
// cursor in het invoervak zetten:
         //document.craftsform.voorwie_name.value = "";
         document.craftsform.voorwie_name.focus();
         // voorkomen dat het formulier verzonden wordt:
         return false;
}
if ((document.craftsform.huisnaam.value.indexOf  ('/',0)  > -1)||
(document.craftsform.huisnaam.value.indexOf  ('<',0)  > -1)||
(document.craftsform.huisnaam.value.indexOf  ('\134',0)  > -1)) {
         // en of er geen gemene rotzooi in staat:
         alert ("\r Deze tekens \134\ < / kun je niet gebruiken.");
     // cursor in het invoervak zetten:
         //document.craftsform.voorwie_name.value = "";
         document.craftsform.huisnaam.focus();
         // voorkomen dat het formulier verzonden wordt:
         return false;
}

 
if ((document.craftsform.datum.value.indexOf  ('/',0)  > -1)||
(document.craftsform.datum.value.indexOf  ('<',0)  > -1)||
(document.craftsform.datum.value.indexOf  ('\134',0)  > -1)) {
         // en of er geen gemene rotzooi in staat:
          alert ("\r Deze tekens \134\ < / kun je niet gebruiken.");
         // cursor in het invoervak zetten:
         //document.craftsform.voorwie_name.value = "";
         document.craftsform.datum.focus();
         // voorkomen dat het formulier verzonden wordt:
         return false;
}
}


