function validateForm() {if (document.formular.elements["name"].value=="") { alert("'LAST NAME' field is empty."); return false; }if (document.formular.elements["firstname"].value=="") { alert("'FIRST NAME' field is empty."); return false; }if (document.formular.elements["tel"].value=="") { alert("'TEL.NUMBER' field is empty."); return false; }if (document.formular.elements["email"].value=="") { alert("'E-MAIL' field is empty or e-mail address is invalid."); return false; }if (document.formular.elements["email"].value.indexOf("@")==-1) { alert("'E-MAIL ADDRESS' field is empty or e-mail address is invalid."); return false; }if (document.formular.elements["email"].value.indexOf(".")==-1) { alert("'E-MAIL ADDRESS' field is empty or e-mail address is invalid."); return false; }filled=0;for (i=0;i<document.formular.elements["people"].length;i++) {if (document.formular.elements["people"][i].checked) { filled=1; }}if (filled==0) { alert(" 'PEOPLE' field is empty."); return false; }filled=0;for (i=0;i<document.formular.elements["day"].length;i++) {if (document.formular.elements["day"][i].checked) { filled=1; }}if (filled==0) { alert(" 'DAY' field is empty."); return false; }if (document.formular.elements["date"].value=="") { alert("'DATE' field is empty or invalid. Use only format dd/mm/yyyy ."); return false; }if (document.formular.elements["date"].value.indexOf("/")==-1) { alert("'DATE' field is empty or invalid. Use only format dd/mm/yyyy ."); return false; }if (document.formular.elements["date"].value.indexOf("200")==-1) { alert("'DATE' field is empty or invalid. Use only format dd/mm/yyyy ."); return false; }if (document.formular.elements["date"].value.indexOf("dd/mm/yyyy")==0) { alert("'DATE' field is empty or invalid. Use only format dd/mm/yyyy ."); return false; }if (document.formular.elements["date"].value.indexOf("25/12")==0) { alert("We regret that we cannot accept this booking. The yellow house will be closed from ... for a winter holiday and re-opens on ...!"); return false; }if (document.formular.elements["date"].value.indexOf("29/02")==0) { alert("We regret that we cannot accept this booking. The yellow house is fully booked for St.Valentine's Day."); return false; }if (document.formular.elements["date"].value.indexOf("18/03")==0) { alert("We regret that we cannot accept this booking. The yellow house is closed for Easter from 18th March to 25th March and re-opens at 6.30pm on Wednesday 26th March"); return false; }if (document.formular.elements["date"].value.indexOf("19/03")==0) { alert("We regret that we cannot accept this booking. The yellow house is closed for Easter from 18th March to 25th March and re-opens at 6.30pm on Wednesday 26th March"); return false; }if (document.formular.elements["date"].value.indexOf("20/03")==0) { alert("We regret that we cannot accept this booking. The yellow house is closed for Easter from 18th March to 25th March and re-opens at 6.30pm on Wednesday 26th March"); return false; }if (document.formular.elements["date"].value.indexOf("21/03")==0) { alert("We regret that we cannot accept this booking. The yellow house is closed for Easter from 18th March to 25th March and re-opens at 6.30pm on Wednesday 26th March"); return false; }if (document.formular.elements["date"].value.indexOf("22/03")==0) { alert("We regret that we cannot accept this booking. The yellow house is closed for Easter from 18th March to 25th March and re-opens at 6.30pm on Wednesday 26th March"); return false; }if (document.formular.elements["date"].value.indexOf("23/03")==0) { alert("We regret that we cannot accept this booking. The yellow house is closed for Easter from 18th March to 25th March and re-opens at 6.30pm on Wednesday 26th March"); return false; }if (document.formular.elements["date"].value.indexOf("24/03")==0) { alert("We regret that we cannot accept this booking. The yellow house is closed for Easter from 18th March to 25th March and re-opens at 6.30pm on Wednesday 26th March"); return false; }if (document.formular.elements["date"].value.indexOf("25/03")==0) { alert("We regret that we cannot accept this booking. The yellow house is closed for Easter from 18th March to 25th March and re-opens at 6.30pm on Wednesday 26th March"); return false; }if (document.formular.elements["date"].value.indexOf("dd/mm")==0) { alert("Error!"); return false; }if (document.formular.elements["date"].value.indexOf("18/03")==0) { alert("We regret that we cannot accept this booking. The yellow house is closed for Easter from 18th March to 24th March and re-opens at 6.30pm on Tuesday 25th March"); return false; }if (document.formular.elements["date"].value.indexOf("19/03")==0) { alert("We regret that we cannot accept this booking. The yellow house is closed for Easter from 18th March to 24th March and re-opens at 6.30pm on Tuesday 25th March"); return false; }if (document.formular.elements["date"].value.indexOf("20/03")==0) { alert("We regret that we cannot accept this booking. The yellow house is closed for Easter from 18th March to 24th March and re-opens at 6.30pm on Tuesday 25th March"); return false; }if (document.formular.elements["date"].value.indexOf("21/03")==0) { alert("We regret that we cannot accept this booking. The yellow house is closed for Easter from 18th March to 24th March and re-opens at 6.30pm on Tuesday 25th March"); return false; }if (document.formular.elements["date"].value.indexOf("22/03")==0) { alert("We regret that we cannot accept this booking. The yellow house is closed for Easter from 18th March to 24th March and re-opens at 6.30pm on Tuesday 25th March"); return false; }if (document.formular.elements["date"].value.indexOf("23/03")==0) { alert("We regret that we cannot accept this booking. The yellow house is closed for Easter from 18th March to 24th March and re-opens at 6.30pm on Tuesday 25th March"); return false; }if (document.formular.elements["date"].value.indexOf("24/03")==0) { alert("We regret that we cannot accept this booking. The yellow house is closed for Easter from 18th March to 24th March and re-opens at 6.30pm on Tuesday 25th March"); return false; }if (document.formular.elements["time"].value=="") { alert("'TIME' field is empty or invalid. Use only format 00:00 - 24hrs clock."); return false; }if (document.formular.elements["time"].value.indexOf(":")==-1) { alert("'TIME' field is empty or invalid. Use only format 00:00 - 24hrs clock."); return false; }if (document.formular.elements["time"].value.indexOf("00:00")==0) { alert("'TIME' field is empty or invalid. Use only format 00:00 - 24hrs clock."); return false; }return true;}