function validateqe(form){
if (form.email.value=='') {alert('Please specify your email id'); form.email.focus(); return false}
if (!CheckEmail(form.email.value)) {alert('The email id provided is incorrect. Correct it'); form.email.focus(); return false}
if (form.name.value=='') {alert('Please specify your name'); form.name.focus(); return false}
if (form.mobile.value=='') {alert('Please mention your mobile no.'); form.mobile.focus(); return false}
if (form.address.value=='') {alert('Please provide us your complete postal address. A copy of the information brochure would be sent.'); form.address.focus(); return false}
if (form.pincode.value=='') {alert('Provide us your 6 digit pincode / zipcode for prompt delivery of brochure.'); form.pincode.focus(); return false}
if (form.howheard.value=='') {alert('Tell us, how did u come to know about us?'); form.howheard.focus(); return false}
if (form.message.value=='') {alert('Kindly provide the details of your query'); form.message.focus(); return false}
}

function validatetell(form){
if (form.name.value=='') {alert('Please type your Full Name'); form.name.focus(); return false}
if (form.email.value=='') {alert('Please type your email id'); form.email.focus(); return false}
if (!CheckEmail(form.email.value)) {alert('The email id provided is incorrect. Correct it'); form.email.focus(); return false}
if (form.friendmail1.value=='') {alert('Please enter your friend email id'); form.friendmail1.focus(); return false}
if (!CheckEmail(form.friendmail1.value)) {alert('The email id provided is incorrect. Correct it'); form.friendmail1.focus(); return false}

}
function CheckEmail(address) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(address)){
	return (true)
	}
	return (false)
}
  
  
function validateenquiry(form){
if (form.name.value=='') {alert('Please fill in your name'); form.name.focus(); return false}
if (form.phone.value=='') {alert('Please fill in your mobile number'); form.phone.focus(); return false}
if (form.howheard.value=='') {alert('Tell us, how did u come to know about us?'); form.howheard.focus(); return false}
if (form.email.value=='') {alert('Please fill in your email id'); form.email.focus(); return false}
if (!CheckEmail(form.email.value)) {alert('The email id provided is incorrect. Correct it'); form.email.focus(); return false}
if (form.menu2.value=='') {alert('Please select specialization of your interest'); form.menu2.focus(); return false}
if (form.message.value=='') {alert('Kindly provide the details of your query'); form.message.focus(); return false}
if (form.security_code.value=='') {alert('Please enter security code'); form.security_code.focus(); return false}
}