function validate() {
 var ok = true;
 var none = false;
 if (document.val_form.rejsemaal.value == "") {
  alert('Du bedes vælge dit Land.'); document.val_form.vaelg_land.focus(); return false;
 }
 if (document.val_form.overnat.value == "") {
  alert('Du bedes udfylde Destination.'); document.val_form.vaelg_destination.focus(); return false;
 }
 if (document.val_form.antalsove.value == "") {
  alert('Du bedes hotel.'); document.val_form.vaelg_hotel.focus(); return false;
 }
  if (document.val_form.antalsove.value == "") {
  alert('Du bedes bolig type.'); document.val_form.vaelg_bolig_type.focus(); return false;
 }
 
/* if (document.val_form.ankomst.value == "") {
  alert('Du bedes indtaste ankomst dato.'); document.val_form.ankomst.focus(); return false;
 }
 if (document.val_form.afrejse.value == "") {
  alert('Du bedes indtaste afrejse dato.'); document.val_form.afrejse.focus(); return false;
 }
 */
 if (document.val_form.navn.value == "") {
  alert('Du bedes indtaste dit navn.'); document.val_form.navn.focus(); return false;
 }
 if (document.val_form.adresse.value == "") {
  alert('Du bedes oplyse din adresse.'); document.val_form.adresse.focus(); return false;
 }
 if (document.val_form.postnummer.value == "") {
  alert('Du bedes oplyse postnummer.'); document.val_form.postnummer.focus(); return false;
 }
if (!document.val_form.postnummer.value.match(/^\d{4}$/)){
  alert('Postnummer består af 4 tal.'); document.val_form.postnummer.focus(); return false;
 }
 if (document.val_form.by.value == "") {
  alert('Du bedes oplyse bynavn.'); document.val_form.by.focus(); return false;
 }
if (document.val_form.telefondag.value == "" && document.val_form.telefonaften.value == "" && document.val_form.mobil.value == ""){
  alert('Du bedes oplyse mindst et tlf.nr.'); document.val_form.telefondag.focus(); return false;
 }
if (!document.val_form.telefondag.value == "" && !document.val_form.telefondag.value.match(/^[0-9 +]{8,12}$/)){
  alert('Du har fejl i tlf.nr. dag'); document.val_form.telefondag.focus(); return false;
 }
if (!document.val_form.telefonaften.value == "" && !document.val_form.telefonaften.value.match(/^[0-9 +]{8,12}$/)){
  alert('Du har fejl i tlf.nr. aften'); document.val_form.telefonaften.focus(); return false;
 }
if (!document.val_form.mobil.value == "" && !document.val_form.mobil.value.match(/^[0-9 +]{8,12}$/)){
  alert('Du har fejl i mobil tlf.nr.'); document.val_form.mobil.focus(); return false;
 }
if (!document.val_form.fax.value == "" && !document.val_form.fax.value.match(/^[0-9 +]{8,12}$/)){
  alert('Du har fejl i fax nr.'); document.val_form.fax.focus(); return false;
 }
if (document.val_form.email.value == "") {
alert('Du bedes oplyse din email.'); document.val_form.email.focus(); return false;
}
if (!document.val_form.email.value.match(/^[a-z0-9_\.æøåÆØÅ-]+@[a-z0-9_\.æøåÆØÅ-]+\.\w{2,3}$/i)) {
alert('Du har fejl i din email.'); document.val_form.email.focus(); return false;
}
if (document.val_form.antalvoksne.value == "") {
alert('Du bedes vælge antal voksne.'); document.val_form.antalvoksne.focus(); return false;
}
if (!document.val_form.antalbarn.value == "") {
	if (document.val_form.barnalder.value == "") {
	alert('Du bedes oplyse alder på børn.'); document.val_form.barnalder.focus(); return false;
	}
} 
if (!document.val_form.transport[0].checked && !document.val_form.transport[1].checked) {
	alert('Du bedes oplyse transport.'); return false;
} 
 return true;
}
