function FormValidator(myform){
	phone = myform.phone.value;
	email = myform.email.value; 
	if(phone == ''){
		if(email == ""){
				alert("Please insert email ");
				myform.email.focus();
				return false;
		}
		if (email.indexOf('@',0) < 0 || email.indexOf('.',0) < 0 || !checkchar(email," ?/:,;=+'\"<>|\\`~{}#$%!^&*()"))
		{
			alert("Invalid Email Address");
			myform.email.focus();
			myform.email.select();	
			return false;
		}
	}

	if(phone == "" && email == ""){
			alert("Please insert phone ");
			myform.phone.focus();
			return false;
	}
	
	
	return true;
}
function checkchar(mystr,invalidChars1)
{
			
	for (i=0; i<invalidChars1.length; i++) // does it contain any invalid characters?
		{
			badChar1 = invalidChars1.charAt(i)
			if (mystr.indexOf(badChar1,0) > -1) 
				{
					return false;
				}
		}
return true;
}