function isAlphabet(ch){
	return((ch>='a'&&ch<='z')||(ch>='A'&&ch<='Z'));
	}
//Funtction for define digits
function isDigit(ch){
	return (ch>='0'&&ch<='9')
	}
//function for all digits
function isAlldigits(str){
	var i;
	for (i=0;i<str.length;i++){
	if(!isDigit(str.charAt(i)))
	return false;
}
return true;
}

//function for check length of a string
function isLength(str){
	if(str.length<10)return false;
	return true;
}

//function for check length of a string
function isLengths(str){
	if(str.length<20)return false;
	return true;
}

//function for check email address
function isEmail(str){
	if((str.indexOf("@")<=0) || (str.lastIndexOf(".")<=(str.indexOf("@")+1)) || str.indexOf(" ")>=0)return false;
	return true;
	}
	
function verify(){
		if(con.name.value ==""){
		alert("Error! Please Enter Your Name");
		con.name.focus();
		return false;
        }
		
	  	if(!isAlphabet(con.name.value)){
	  	alert("Error! Your name must contain Alphabets only");
    	con.name.focus();
		con.name.select();
        return false;
  		}
		
		if(con.policy.value ==""){
		alert("Error! Please Enter Your Policie Number");
		con.policy.focus();
		con.policy.select();
		return false;
        }
		
		if(con.msg.value ==""){
		alert("Error! Please discribe your description as much as possible.");
		con.msg.focus();
		return false;
        }
		
		if(!isLengths(con.msg.value)){
	  	alert("Error! Your description atleast more than 20 characters.");
    	con.msg.focus();
		con.msg.select();
        return false;
  		}
		
		if(con.phone.value ==""){
		alert("Error! Please Enter Your Phone Number");
		con.phone.focus();
		return false;
        }
		
		if(!isAlldigits(con.phone.value)){
	  	alert("Error! Telephone Number must contain numbers only.");
    	con.phone.focus();
		con.phone.select();
        return false;
  		}
		
		if(con.fax.value ==""){
		alert("Error! Please Enter Your Fax Number");
		con.fax.focus();
		return false;
        }
		
		if(!isAlldigits(con.fax.value)){
	  	alert("Error! Tel/Fax Number must contain numbers only.");
    	con.fax.focus();
		con.fax.select();
        return false;
  		}
				
return true;
}