/*JavaScript file*/ function checkfields() { c_name=document.form_contact.name.value; address=document.form_contact.address.value; email=document.form_contact.mail.value; phone=document.form_contact.phone.value; if(email=="") { alert("Please Enter Email id."); return false; } if( document.form_contact.mail.value != "" ){ if((document.form_contact.mail.value.indexOf('@') == -1) || (document.form_contact.mail.value.indexOf('.') == -1)) { alert("Enter Valid Email Address"); document.form_contact.mail.value=""; document.form_contact.mail.focus(); return false; } } if(c_name=="") { alert("Please Enter Name"); return false; } if(address=="") { alert("Please Enter Address"); return false; } if(phone=="") { alert("Please Enter Phone Number"); return false; } if (document.form_contact.phone.value != "") { landline_value=document.form_contact.phone.value; var i; for (i = 0; i < landline_value.length; i++) { // Check that current character is number. var c = landline_value.charAt(i); if (((c < "0") || (c > "9"))) { alert("Please enter only numeric values for phone number!"); return false; } } } if(document.form_contact.start_date.value == "") { alert("Please select Duration of stay - Date for no of nights/weeks."); return false; } if((document.form_contact.ac_room.value == "") && (document.form_contact.nonac_room.value == "") && (document.form_contact.ac_suite.value == "") && (document.form_contact.nonac_suite.value == "") && (document.form_contact.deluxe_nonac_suite.value == "")) { alert("Please select the Type of Room."); return false; } if(document.form_contact.ac_room.value == "") { acroom = "----"; } else { acroom = document.form_contact.ac_room.value; } if(document.form_contact.nonac_room.value == "") { no_acroom = "----"; } else { no_acroom = document.form_contact.nonac_room.value; } if(document.form_contact.ac_suite.value == "") { acsuite = "----"; } else { acsuite = document.form_contact.ac_suite.value; } if(document.form_contact.abc.value == "") { no_acsuite = "---"; } else { no_acsuite = document.form_contact.abc.value; } if(document.form_contact.deluxe_nonac_suite.value == "") { deluxe_suite = '---'; } else { deluxe_suite = document.form_contact.deluxe_nonac_suite.value; } if(document.form_contact.sup_deluxe_nonac_suite.value == "") { sup_suite = '---'; } else { sup_suite = document.form_contact.sup_deluxe_nonac_suite.value; } if(document.form_contact.transfer[0].checked) { reply = 'No'; } else { reply = 'Yes'; } if(document.form_contact.bed[0].checked) { res = 'Yes' ; } else { res = 'No'; } if(document.form_contact.mat[0].checked) { matr = 'Yes'; } else { matr = 'No'; } disp=open("","result") disp.document.write("
| " +
"" + "Albuquerque Holiday Villas Goa" + "" + " " + "" + "Enquiry for room availability" + ""+ " " + " | " + "|||||
| " + "Success!" + " " + "Thanks for sending your enquiry about availability." + " " + "A response will be given within 24 hours on your e-mail ID. " + " " + "Here is the information you submitted:" + " | |||||
| Email Address : | " + "" + document.form_contact.mail.value + " | " + "||||
| Name : | " + document.form_contact.name.value + " | ||||
| Address : | " + document.form_contact.address.value + " | ||||
| Telephone : | " + document.form_contact.phone.value + " | ||||
| Arriving on : | " + document.form_contact.date.value + "/" + document.form_contact.month.value + "/" + document.form_contact.year.value + " for " + document.form_contact.no.value + " " + document.form_contact.night.value + " | ||||
| Type of Room: | |||||
| Room : | " + "" +
"
| " +
"||||
| Suites : | " + "" +
"
| " +
"||||
| Deluxe suites : | " + "" + deluxe_suite + " Double A/c | " + "||||
| Sup. Deluxe suites : | " + "" + sup_suite + " Double A/c | " + "||||
| Specials requests or information | |||||
| Require Airport transfer?: | " + "" + reply + " | " + "||||
| Flight Details In : | " + "" +
"
| " +
"||||
| Flight Details Out : | " + "
| " +
"||||
| Require Extra bed? : | " + "" + res + " | " + "" + "||||
| Require Extra mattress? : | " + "" + matr + " | " + "" + "||||