function chkdata() {
var themessage = "There appears to be a problem with : ";
nam = document.Form.lfname.value
eml = document.Form.lemail.value

if (nam=="") {
themessage = themessage + " Blank Name;";
}

if (eml=="") {
themessage = themessage + " Blank E-mail;";
}
if (eml!="") {
if ((eml.indexOf(".") == -1)
||  (eml.indexOf("@") == -1))
{
themessage = themessage + " Invalid E-mail;";
}
}


if (themessage == "There appears to be a problem with : ") {
return true;
}
else {
alert(themessage);
if (eml!="") {
if ((eml.indexOf(".") == -1)
||  (eml.indexOf("@") == -1))
{
document.Form.lemail.focus();
}
}
if (eml=="") {
document.Form.lemail.focus();
}
if (nam!="") {
if (nam.indexOf(" ") == -1)
{
document.Form.lfname.focus();
}
}
if (nam=="") {
document.Form.lfname.focus();
}
return false;
   }
}

function chkdatab() {
var themessage = "There appears to be a problem with : ";
nam = document.Form1.lfname.value
eml = document.Form1.lemail.value

if (nam=="") {
themessage = themessage + " Blank Name;";
}

if (eml=="") {
themessage = themessage + " Blank E-mail;";
}
if (eml!="") {
if ((eml.indexOf(".") == -1)
||  (eml.indexOf("@") == -1))
{
themessage = themessage + " Invalid E-mail;";
}
}


if (themessage == "There appears to be a problem with : ") {
return true;
}
else {
alert(themessage);
if (eml!="") {
if ((eml.indexOf(".") == -1)
||  (eml.indexOf("@") == -1))
{
document.Form1.lemail.focus();
}
}
if (eml=="") {
document.Form1.lemail.focus();
}
if (nam!="") {
if (nam.indexOf(" ") == -1)
{
document.Form1.lfname.focus();
}
}
if (nam=="") {
document.Form1.lfname.focus();
}
return false;
   }
}

