function checkForm(){
	var regpat = /^(\w+)(\.\w+)?(@)(\w+)(-)?(\w+)(\.)((\w{2,6})|(\w{2,6}(\.)(\w{2,6})))$/;
	var b = regpat.test(frmQuery.txtEmail.value);
	if(!b){
		alert("please enter a valid email address");
	}
	return b;
}