function emailvalidation(theiremail)
{
with (theiremail)
{
apos=value.indexOf("@");
dotpos=value.lastIndexOf(".");
lastpos=value.length-1;
if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2) 
{alert("Please enter a valid E-mail.  Many thanks, Iced Gem Cakes."); return false;}
else {return true;}
}
}
 
function formvalidation(thisform)
{
with (thisform)
{
if (emailvalidation(email)==false) {email.focus(); return false;};
}
}
