function verify() {
var themessage = "Please fill-up the required fields: \r\n";
if (document.form.txtname.value=="") {
themessage = themessage + " - Name";
}
//if (document.form.txtadd.value=="") {
//themessage = themessage + " -  Address";
//}
//if (document.form.txtcity.value=="") {
//themessage = themessage + " -  City";
//}
//if (document.form.ddlState.value=="") {
//themessage = themessage + " -  State ";
//}
//if (document.form.txtzip.value=="") {
//themessage = themessage + " -  ZIP";
//}
if (document.form.txtphone.value=="") {
themessage = themessage + " -  Phone";
}
//if (document.form.txtemail.value=="") {
//themessage = themessage + " -  E-mail";
//}
//if (document.form.txtmsg.value=="") {
//themessage = themessage + " -  Message";
//}
//
//// Checking if email address is valid
//if (document.form.txtemail.value!="") {
//	text=document.form.txtemail.value
//	// Check For Bad Chars
//	badchar = " ()<>\/[]{}+-*|;,'"
//	for (i=0;i<text.length;i++) {
//		for (j=0;j<badchar.length;j++) {
//			if (text.charAt(i) == badchar.charAt(j)) {
//				alert("Please enter a valid e-mail address.")				
////				alert("Your Email Address May Has Some Bad Character or there is some space between letters")
//				return false
//			}
//		}
//	}
//	// There Should Be a dot (.) Symbol
//	if (text.indexOf(".") == -1) {
//		alert("Please enter a valid e-mail address.")				
////		alert("Your Email Address Doesnot have any dot(.) symbol")
//		return false
//	}
//	// There Should Be an @ Symbol
//	if (text.indexOf("@") == -1) {
//		alert("Please enter a valid e-mail address.")				
////		alert("Your Email Address Doesnot have any @ symbol")
//		return false
//	}
//	else {
//	// Only one @ symbol should be found
//		symbolfound = 0
//		for (i=0;i<text.length;i++) {
//			if (text.charAt(i) == "@") {
//				symbolfound++
//			}
//			else {
//				continue
//			}
//		}
//		if (symbolfound != 1) {
//			alert("Please enter a valid e-mail address.")		
////			alert("Ooops  Your Email Address Has More Than One @ Symbol")
//			return false
//		}
//	}
//	// Check For Syntax Errors Such as .@  or   @.  or  ..
//	if (text.indexOf("@.") != -1 || text.indexOf(".@") != -1 || text.indexOf("..") != -1) {
//		alert("Please enter a valid e-mail address.")		
////		alert("Sorry Your Email Address has two symbol side by side and it is wrong")
//		return false
//	}
//	// The first character shouldn't be @ or .
//	if (text.charAt(0) == "@" || text.charAt(0) == ".") {
//		alert("Please enter a valid e-mail address.")		
////		alert("E-mail: Your first character seem to be . or @ and it is wrong")
//		return false
//	}
//	// The last character shouldn't be @ or .
//	if (text.charAt(text.length-1) == "@" || text.charAt(text.length-1) == ".") {
//		alert("Please enter a valid e-mail address.")		
////		alert("E-mail: Your last character seem to be . or @ and it is wrong")
//		return false
//	}
//	// The @ Symbol should be found before .
//	foundchar1 = text.indexOf("@")
//	foundchar2 = text.indexOf(".")
//	if (foundchar1 > foundchar2) {
//		alert("Please enter a valid e-mail address.")		
////		alert("E-mail: Sorry The @ Symbol should be found before dot(.)symbol but it isnt in yours")
//		return false
//	}
//
//}
//
//var val1 = Number(document.form.txtzip.value);
//if(isNaN(val1))
//{
//	return alert("Please enter a valid ZIP CODE..");
//}



var val2 = Number(document.form.txtphone.value);
if(isNaN(val2))
{
	return alert("Please enter a valid telephone number..");
}
//alert if fields are empty and cancel form submit
if (themessage == "Please fill-up the required fields: \r\n")
{
//  	window.open('', "Request", 'top=100,left=100,height=350,width=500');
//	document.form.target="Request"; 
	document.form.action = "contact_process.php"; 
	document.form.submit(); 
//	document.form.reset();
}
else {
alert(themessage);
return false;
   }
}