	function submitfrm(){
		txtemail=document.getElementById('email').value;
		txtpassword=document.getElementById('password').value;
	
	
		if (( txtemail !='') && (txtpassword !='') )
		{ 
			if(emailCheck(txtemail) != false ){	
				return true;
			}else {
				return false;
			}
			
		}else{
			return false;
		}
		
	}
	function emailCheck(emailStr) {

	var emailPat = /^([a-zA-Z][\w\.-]*[a-zA-Z0-9])@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z]\w*(\.[A-Za-z]\w*)+)$/;
	var matchArray = emailStr.match(emailPat);
	if (matchArray == null) {
	alert("Your email address seems incorrect.  Please try again (check the '@' and '.'s in the email address)");
	return false;
	}
	}
