function blaat() {

if (window.document.hihi.tav.value == ""){window.alert('U heeft uw naam niet ingevoerd');return false};
if (window.document.hihi.bedrijf.value == ""){window.alert('U heeft uw bedrijfsnaam niet ingevoerd');return false};
if (window.document.hihi.Bezorgadres.value == ""){window.alert('U heeft uw adres niet ingevoerd');return false};
if (window.document.hihi.postcode.value == ""){window.alert('U heeft uw postcode niet ingevoerd');return false};
if (window.document.hihi.plaats1.value == ""){window.alert('U heeft uw plaats niet ingevoerd');return false};
if (window.document.hihi.telefoon.value == ""){window.alert('U heeft uw telefoonnummer niet ingevoerd');return false};

if (window.document.hihi.emailadres.value == ""){return true}
   else
{
   if (window.document.hihi.emailadres.value.indexOf ('@',0) == -1 || 
       window.document.hihi.emailadres.value.indexOf ('.',0) == -1)
      {
      alert("\nIn een email adres zit altijd een \"@\" of een \".\"\nWilt u uw emailadres opnieuw invullen?")
      window.document.hihi.emailadres.select();
      window.document.hihi.emailadres.focus();
      return false;
}}}

function checkNumber(checkString)
{
    newString = "";   
    count = 0;        

    for (i = 0; i < checkString.length; i++) {
        ch = checkString.substring(i, i+1);

        if ((ch >= "0" && ch <= "9") || (ch == "#")|| (ch == "-") || (ch == "*")) {
            newString += ch;
        }
    }

    if (checkString != newString) {
      
      if (alert("Het nummer wat is ingevoerd bevat tekens die niet \nin een telefoon of fax nummer kunnen voorkomen. Wilt u dit even corrigeren?")) {
      
        return newString;
      } else {
        // RETURN ORIGINAL STRING
        return checkString;
      }
    }
    return checkString;
}
