<!--
/* By Andy King. v1.56 980126
*/
<!-- START EMAIL CODE -->
function e(s) {
rex=true;
if (window.RegExp) {
st="a";ex=new RegExp(st);
if (st.match(ex)) {
r1=new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
r2=new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
b=(!r1.test(s)&&r2.test(s));
} else {
rex=false;
}
} else {
rex=false;
}
if(!rex) b=(s.indexOf("@")>0&&s.indexOf(".")>0&&s!=""&&s!="enter e-mail");
return (b);
}
function f(h) {
h.focus();h.select();
}
function val(fld) {
s=fld.value;
if(e(s)) {
if(confirm("You entered:  "+s+"  Is this correct?"))
return true;
else {
f(fld);return false;
}
} else {
alert("Sorry, you entered an invalid email address. Please try again or contact us at service(at)placeworld.com if you have any questions.");
f(fld);return false;
}
}
<!-- END CODE -->
//-->

