//email
function checkEmail(strng){
var emailFilter=/^.+@.+\..{2,3}$/;
var illegalChars= /[\(\)\<\>\,\;\:\\\/\"\[\]]/

if  (!(emailFilter.test(strng))) {
		alert("Your email address appears to be incorrect.");
		return false;
  }
 
	else if (strng.match(illegalChars)) {
   alert("Your email address contains illegal characters.");
   return false;
	 }
else  
return true;
}//end Email

function ValidateForm(){
	var emailID=document.myform.mymail
	var countryID = document.myform.country
	
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please Enter your Email Address.")
		emailID.focus()
		return false
	}
	if (checkEmail(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}
	if (countryID.value == "0") {
		alert("Please select your country.")
		return false
	}		
	return true
 }
