function validate_required(field,alerttxt)
							{
							with (field)
							  {
							  if (value==null||value=="")
							    {
							    alert(alerttxt);return false;
							    }
							  else
							    {
							    return true;
							    }
							  }
							}
							
							function validate_email(field,alerttxt)
							{
							with (field)
							  {
							  apos=value.indexOf("@");
							  dotpos=value.lastIndexOf(".");
							  if (apos<1||dotpos-apos<2)
							    {alert(alerttxt);return false;}
							  else {return true;}
							  }
							}
							
							function validate_bookingcontact(field,alerttxt)
							{
								with (field)
								{
									if (value == 'Indtast dit navn')
									{
										alert(alerttxt);return false;
									} else {
									return true;
									}
								}
							}
							
							function validate_bookingphone(field,alerttxt)
							{
								with (field)
								{
									if (value == 'Indtast dit telefonnummer')
									{
										alert(alerttxt);return false;
									} else {
									return true;
									}
								}
							}

							function validate_form(thisform)
							{
							with (thisform)
							  {
							  if (validate_required(bookingcontact,"Du mangler at angive en kontaktperson!")==false)
							  {bookingcontact.focus();return false;}
							  }
							with (thisform)
							  {
							  if (validate_bookingcontact(bookingcontact,"Du mangler at angive en kontaktperson!")==false)
							  {bookingcontact.focus();return false;}
							  }
							with (thisform)
							  {
							  if (validate_required(bookingphone,"Du mangler at angive et telefonnummer!")==false)
							  {bookingphone.focus();return false;}
							  }
							with (thisform)
							  {
							  if (validate_bookingphone(bookingphone,"Du mangler at angive et telefonnummer!")==false)
							  {bookingphone.focus();return false;}
							  }
							with (thisform)
							  {
							  if (validate_required(bookingemail,"Du mangler at angive en e-mail-adresse!")==false)
							  {bookingemail.focus();return false;}
							  }
							with (thisform)
 							  {
							  if (validate_email(bookingemail,"Den oplyst e-mail-adresse er ikke gyldig!")==false)
							  {bookingemail.focus();return false;}
							  }
							with (thisform)
							  {
							  if (validate_required(bookingcomment,"Du mangler at udfylde en kommentar!")==false)
							  {bookingcomment.focus();return false;}
							  }
							}
