//Function print window
function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}

function changePage(newLoc, url)
 {
   nextPage = newLoc.options[newLoc.selectedIndex].value
   //window.open(".$urll ."this.options[this.selectedIndex].value,'_top')
   if (nextPage != "")
   {
      document.location.href = url + nextPage
   }
 }
 
function Form1_Validator(theForm)
{
          if (theForm.AFHAALNAAM.value == "")
          {
            alert("U bent de contactpersoon van het laadadres vergeten.");
            theForm.AFHAALNAAM.focus();
            return (false);
          }
          
          if (theForm.AFHAALADRES.value == "")
          {
            alert("U bent het adres van het laadadres vergeten.");
            theForm.AFHAALADRES.focus();
            return (false);
          }
          if (theForm.AFHAALHUISNR.value == "")
          {
            alert("U bent het huisnummer van het laadadres vergeten.");
            theForm.AFHAALHUISNR.focus();
            return (false);
          }
          if (theForm.AFHAALPOSTCODE.value == "")
          {
            alert("U bent de postcode van het laadadres vergeten.");
            theForm.AFHAALPOSTCODE.focus();
            return (false);
          }
          if (theForm.AFHAALPLAATS.value == "")
          {
            alert("U bent de plaatsnaam van het laadadres vergeten.");
            theForm.AFHAALPLAATS.focus();
            return (false);
          }
          
          if (theForm.LOSNAAM.value == "")
          {
            alert("U bent de contactpersoon van het losadres vergeten.");
            theForm.LOSNAAM.focus();
            return (false);
          }
          if (theForm.LOSADRES.value == "")
          {
            alert("U bent het adres van het losadres vergeten.");
            theForm.LOSADRES.focus();
            return (false);
          }
          if (theForm.LOSHUISNR.value == "")
          {
            alert("U bent het huisnummer van het losadres vergeten.");
            theForm.LOSHUISNR.focus();
            return (false);
          }
          if (theForm.LOSPOSTCODE.value == "")
          {
            alert("U bent de postcode van het losadres vergeten.");
            theForm.LOSPOSTCODE.focus();
            return (false);
          }
          if (theForm.LOSPLAATS.value == "")
          {
            alert("U de plaatsnaam van de losplaats vergeten.");
            theForm.LOSPLAATS.focus();
            return (false);
          }
          
          
          if (theForm.VOERTUIGMERK1.value == "")
          {
            alert("U moet minstens 1 auto opgeven.");
            theForm.VOERTUIGMERK1.focus();
            return (false);
          } else {

              if (theForm.VOERTUIGTYPE1.value == "")
              {
                alert("U bent het type vergeten.");
                theForm.VOERTUIGTYPE1.focus();
                return (false);
              }
              if (theForm.VOERTUIGCHASS1.value == "")
              {
                alert("U het chassienummer vergeten.");
                theForm.VOERTUIGCHASS1.focus();
                return (false);
              }
          } 

          if (theForm.VOERTUIGMERK2.value != "")
          {
              if (theForm.VOERTUIGTYPE2.value == "")
              {
                alert("U bent het type vergeten."); theForm.VOERTUIGTYPE2.focus(); return (false);
              }
              if (theForm.VOERTUIGCHASS2.value == "")
              {
                alert("U het chassienummer vergeten."); theForm.VOERTUIGCHASS2.focus(); return (false);
              }
          }
          
          if (theForm.VOERTUIGMERK3.value != "")
          {
              if (theForm.VOERTUIGTYPE3.value == "")
              {
                alert("U bent het type vergeten."); theForm.VOERTUIGTYPE3.focus(); return (false);
              }
              if (theForm.VOERTUIGCHASS3.value == "")
              {
                alert("U het chassienummer vergeten."); theForm.VOERTUIGCHASS3.focus(); return (false);
              }
          }
          if (theForm.VOERTUIGMERK4.value != "")
          {
              if (theForm.VOERTUIGTYPE4.value == "")
              {
                alert("U bent het type vergeten."); theForm.VOERTUIGTYPE4.focus(); return (false);
              }
              if (theForm.VOERTUIGCHASS4.value == "")
              {
                alert("U het chassienummer vergeten."); theForm.VOERTUIGCHASS4.focus(); return (false);
              }
          }
          if (theForm.VOERTUIGMERK5.value != "")
          {
              if (theForm.VOERTUIGTYPE5.value == "")
              {
                alert("U bent het type vergeten."); theForm.VOERTUIGTYPE5.focus(); return (false);
              }
              if (theForm.VOERTUIGCHASS5.value == "")
              {
                alert("U het chassienummer vergeten."); theForm.VOERTUIGCHASS5.focus(); return (false);
              }
          }
          if (theForm.VOERTUIGMERK6.value != "")
          {
              if (theForm.VOERTUIGTYPE6.value == "")
              {
                alert("U bent het type vergeten."); theForm.VOERTUIGTYPE6.focus(); return (false);
              }
              if (theForm.VOERTUIGCHASS6.value == "")
              {
                alert("U het chassienummer vergeten."); theForm.VOERTUIGCHASS6.focus(); return (false);
              }
          }
          if (theForm.VOERTUIGMERK7.value != "")
          {
              if (theForm.VOERTUIGTYPE7.value == "")
              {
                alert("U bent het type vergeten."); theForm.VOERTUIGTYPE7.focus(); return (false);
              }
              if (theForm.VOERTUIGCHASS7.value == "")
              {
                alert("U het chassienummer vergeten."); theForm.VOERTUIGCHASS7.focus(); return (false);
              }
          }
          if (theForm.VOERTUIGMERK8.value != "")
          {
              if (theForm.VOERTUIGTYPE8.value == "")
              {
                alert("U bent het type vergeten."); theForm.VOERTUIGTYPE8.focus(); return (false);
              }
              if (theForm.VOERTUIGCHASS8.value == "")
              {
                alert("U het chassienummer vergeten."); theForm.VOERTUIGCHASS8.focus(); return (false);
              }
          }
          if (theForm.VOERTUIGMERK9.value != "")
          {
              if (theForm.VOERTUIGTYPE9.value == "")
              {
                alert("U bent het type vergeten."); theForm.VOERTUIGTYPE9.focus(); return (false);
              }
              if (theForm.VOERTUIGCHASS9.value == "")
              {
                alert("U het chassienummer vergeten."); theForm.VOERTUIGCHASS9.focus(); return (false);
              }
          }
          if (theForm.VOERTUIGMERK10.value != "")
          {
              if (theForm.VOERTUIGTYPE10.value == "")
              {
                alert("U bent het type vergeten."); theForm.VOERTUIGTYPE10.focus(); return (false);
              }
              if (theForm.VOERTUIGCHASS10.value == "")
              {
                alert("U het chassienummer vergeten."); theForm.VOERTUIGCHASS10.focus(); return (false);
              }
          }
return (true);
}
