function verify_email (strng) {
var error = "";
var emailFilter=/^.+@.+\..{2,3}$/;
if (!(emailFilter.test(strng))) {
error = "Please make sure your E-mail Address is typed correctly.\n";
}
else {
var illegalchars=/[\(\)\<\>\,\;\:\\\"\[\]]/;
if (strng.match(illegalchars)) {
error = "E-mail Address contains illegal characters.\n";
}
}
return error;
}