/**
* check an email address
* the regexp in checkemail() evaluates to:
* 	start
* 	one or more of any char
* 	zero or more of (zero or one of(a '.' or a '-') then one or more of any char)
* 	an '@'
* 	one or more of any char
* 	zero or more of (a '.' or a '-' then one or more of any char)
* 	zero or more of (zero or one of(a '.' or a '-') then one or more of any char)
* 	end
*
* @param	string	emailStr	the email address to check
* @return	boolean	true if it matches; false if it doesn't.
*/
function checkemail(emailStr) {
	// originally: return (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(emailStr));
	//this is a little bit less cryptic
	var emailpat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
	return (emailpat.test(emailStr))
}