function SendElements() {
		var i,j;
		for (i=0; i < document.forms[0].elements.length-1; i++)
			switch (String(document.forms[0].elements[i].name).substring(0,3))
			{
				case "chk":
					if (document.forms[0].elements[i].checked)
						document.forms[0].elements[i].value = "Ja";
					else {
						document.forms[0].elements[i].checked = false;
						document.forms[0].elements[i].value = "Nej";
					}
					break;
			}
}

function Kontakta_Validator(theForm)
{

  if (theForm.txtAnkomstdatum.value == "")
  {
    alert("Please, fill in the field \"Date of arrival\"!");
    theForm.txtAnkomstdatum.focus();
    return (false);
  }


  if (theForm.txtAvresedatum.value == "")
  {
    alert("Please, fill in the field \"Date of departure\"!");
    theForm.txtAvresedatum.focus();
    return (false);
  }


  if (theForm.txtBestallarFornamn.value == "")
  {
    alert("Please, fill in the field \"1:st person, first name\"!");
    theForm.txtBestallarFornamn.focus();
    return (false);
  }


  if (theForm.txtBestallarEfternamn.value == "")
  {
    alert("Please, fill in the field \"1:st person, family name\"!");
    theForm.txtBestallarEfternamn.focus();
    return (false);
  }

  if (theForm.txtBestallarAdress.value == "")
  {
    alert("Please, fill in the field \"Street & Zip Code\"!");
    theForm.txtBestallarAdress.focus();
    return (false);
  }

  if (theForm.txtBestallarOrt.value == "")
  {
    alert("Please, fill in the field \"City\"!");
    theForm.txtBestallarOrt.focus();
    return (false);
  }

  if (theForm.txtBestallarLand.value == "")
  {
    alert("Please, fill in the field \"Country\"!");
    theForm.txtBestallarLand.focus();
    return (false);
  }

  if (theForm.txtBestallarTelefon.value == "")
  {
    alert("Please, fill in the field \"Telephone\"!");
    theForm.txtBestallarTelefon.focus();
    return (false);
  }

/*  if (theForm.txtBestallarEpost.value == "")
  {
    alert("Please, fill in the field \"Email\"!");
    theForm.txtBestallarEpost.focus();
    return (false);
  }

  if (theForm.chkAccepterar.value == "Nej")
  {
    alert("Du måste läsa och acceptera PUL (SFS 1998:20)");
    theForm.chkAccepterar.focus();
    return (false);
  } */
  return (true);
}