function copytext() {
	if (document.onlysilver_mandje.Check.checked) {
	document.onlysilver_mandje.Aanhef_verzend.value=document.onlysilver_mandje.Aanhef.value
	document.onlysilver_mandje.Voorletter_verzend.value=document.onlysilver_mandje.Voorletter.value
	document.onlysilver_mandje.Achternaam_verzend.value=document.onlysilver_mandje.Achternaam.value
	document.onlysilver_mandje.Adres_verzend.value=document.onlysilver_mandje.Adres.value
	document.onlysilver_mandje.Huisnummer_verzend.value=document.onlysilver_mandje.Huisnummer.value
	document.onlysilver_mandje.Postcode_verzend.value=document.onlysilver_mandje.Postcode.value
	document.onlysilver_mandje.Plaats_verzend.value=document.onlysilver_mandje.Plaats.value
	document.onlysilver_mandje.Land_verzend.value=document.onlysilver_mandje.Land.value
	}
else {
	document.onlysilver_mandje.Aanhef_verzend.value=""
	document.onlysilver_mandje.Voorletter_verzend.value=""
	document.onlysilver_mandje.Achternaam_verzend.value=""
	document.onlysilver_mandje.Adres_verzend.value=""
	document.onlysilver_mandje.Huisnummer_verzend.value=""
	document.onlysilver_mandje.Postcode_verzend.value=""
	document.onlysilver_mandje.Plaats_verzend.value=""
	document.onlysilver_mandje.Land_verzend.value=""
	}
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function checkadres(){
  if (document.onlysilver_mandje.Voorletter.value == "")
  {
  alert("U dient uw voorletter(s) bij klantgegevens in te vullen")
  document.onlysilver_mandje.Voorletter.focus(); 
  return false;
  }
  if (document.onlysilver_mandje.Achternaam.value == "")
  {
  alert("U dient uw achternaam bij klantgegevens in te vullen")
  document.onlysilver_mandje.Achternaam.focus(); 
  return false;
  }
  if (document.onlysilver_mandje.Adres.value == "")
  {
  alert("U dient uw straatnaam bij klantgegevens in te vullen")
  document.onlysilver_mandje.Adres.focus(); 
  return false;
  }
  if (document.onlysilver_mandje.Huisnummer.value == "")
  {
  alert("U dient uw huisnummer bij klantgegevens in te vullen")
  document.onlysilver_mandje.Huisnummer.focus(); 
  return false;
  }
  if (document.onlysilver_mandje.Postcode.value == "")
  {
  alert("U dient uw postcode bij klantgegevens juist in te vullen, bijvoorbeeld 1234AB")
  document.onlysilver_mandje.Postcode.focus(); 
  return false;
  }
  if (document.onlysilver_mandje.Plaats.value == "")
  {
  alert("U dient uw woonplaats bij klantgegevens in te vullen")
  document.onlysilver_mandje.Plaats.focus(); 
  return false;
  }
  if (document.onlysilver_mandje.Telefoonnummer.value == "")
  {
  alert("U dient uw telefoonnummer bij klantgegevens in te vullen")
  document.onlysilver_mandje.Telefoonnummer.focus(); 
  return false;
  }
  if (document.onlysilver_mandje.Telefoonnummer.value.length < 8)
  {
  alert("U dient uw telefoonnummer bij klantgegevens in te vullen")
  document.onlysilver_mandje.Telefoonnummer.focus(); 
  return false;
  }
  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.onlysilver_mandje.Email.value) != true)
  {
	alert("U dient een juist e-mailadres in te vullen bij klantgegevens")
	document.onlysilver_mandje.Email.focus();
	return false;
  }
  if (document.onlysilver_mandje.Voorletter_verzend.value == "")
  {
  alert("U dient voorletter(s) bij afleveradres in te vullen")
  document.onlysilver_mandje.Voorletter_verzend.focus(); 
  return false;
  }
  if (document.onlysilver_mandje.Achternaam_verzend.value == "")
  {
  alert("U dient de achternaam bij afleveradres in te vullen")
  document.onlysilver_mandje.Achternaam_verzend.focus(); 
  return false;
  }
  if (document.onlysilver_mandje.Adres_verzend.value == "")
  {
  alert("U dient de straatnaam bij afleveradres in te vullen")
  document.onlysilver_mandje.Adres_verzend.focus(); 
  return false;
  }
  if (document.onlysilver_mandje.Huisnummer_verzend.value == "")
  {
  alert("U dient het huisnummer bij afleveradres in te vullen")
  document.onlysilver_mandje.Huisnummer_verzend.focus(); 
  return false;
  }
  if (document.onlysilver_mandje.Postcode_verzend.value == "")
  {
  alert("U dient de postcode bij afleveradres juist in te vullen, bijvoorbeeld 1234AB")
  document.onlysilver_mandje.Postcode_verzend.focus(); 
  return false;
  }
  if (document.onlysilver_mandje.Plaats_verzend.value == "")
  {
  alert("U dient de woonplaats bij afleveradres in te vullen")
  document.onlysilver_mandje.Plaats_verzend.focus(); 
  return false;
  }
  return true;
 }

function IsNumeric(strString)
   //  check for valid numeric strings	
   {
   var strValidChars = "0123456789.-";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
}

function clearText(thefield)
{
	if (thefield.defaultValue==thefield.value)
	thefield.value = ""
}
