function isEmpty(str){
	strRE = new RegExp( );
	strRE.compile( '^[\s ]*$', 'gi' );
	return strRE.test( str );
}

function checkNotify(fm) {
	var txt = "";

	if(isEmpty(fm.notifyme))
	{
		txt += "E-mail is required.";
	}
	else {
		temp = fm.notifyme.value + " ";
		found = temp.search(/[\w\.-]+@([\w-]+\.){1,3}[a-zA-Z]{2,}\s{1}/);
		if (found != 0)
			txt += "Please note:\nE-mail must be in the form name@domain.com"
	}
	if (txt != "") {
		alert(txt);
		return false;
	}
	return true;
}
