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 address");
return (b);
}
function f(h) {
h.focus();h.select();
}
function val(fld) {
s=fld.value;
if(e(s)) {
if(confirm("Your E-mail address:  "+s+" is that correct?"))
return true;
else {
f(fld);return false;
}
} else {
alert("Please, enter the existing E-mail address, for example: id@domain.*** or id@domain.**.***");
f(fld);return false;
}
}