

// check the form before submiting
function checkForm() {
	var msg = "";
	var focus = "";
	
	if (document.forgotpassword.email_address.value == '') {
		msg = msg + " - Email Address.\n";
		if (focus.length == 0) focus = "email_address"; 
	} 
	if (msg.length>0) {
		alert("The following fields are not filled / properly entered.\n" + msg);
		if (focus.length>0) eval('document.forgotpassword.' + focus + '.focus()');
		return (false);
	}
	
   return true;
}
function isEmail(elm) {
	
    var re = new RegExp("[\\w\\.]+@{1}[\\w\\.]+\\.[\\w]{2,4}", "i");
    return re.test( elm.value );
}



