<!--
function email()
{
theUrl="mailafriend1.asp"
window.open(theUrl,'determined','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=300,top=100,left=100');
}

function isnewslAddr(newsl)
{
  var result = false
  var theStr = new String(newsl)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}

function VerifyData(subscribe) {
formOk = true;
errorMsg = "";


if (subscribe.newsl.value == "") {
formOk = false;
errorMsg = "Please enter your email";
}
if (!isnewslAddr(subscribe.newsl.value))
  {
    alert("Please enter a complete email address in the form: yourname@yourdomain.com");
    subscribe.newsl.focus();
    return (false);
  }
   
  if (subscribe.newsl.value.length < 3)
  {
    alert("Please enter at least 3 characters in the email field.");
    subscribe.newsl.focus();
    return (false);
  }

if (!formOk) {
alert(errorMsg);
}

return formOk;
} 

function ismailAddr1(mail)
{
  var result = false
  var theStr = new String(mail)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}

function VerifyData1(queryform) {
formOk = true;
errorMsg = "";


if (queryform.mail.value == "") {
formOk = false;
errorMsg = "Please enter your email";
}
if (!ismailAddr1(queryform.mail.value))
  {
    alert("Please enter a complete email address in the form: yourname@yourdomain.com");
    queryform.mail.focus();
    return (false);
  }
   
  if (queryform.mail.value.length < 3)
  {
    alert("Please enter at least 3 characters in the email field.");
    queryform.mail.focus();
    return (false);
  }

if (queryform.query.value == "") {
formOk = false;
errorMsg = "Please enter your query";
}

if (!formOk) {
alert(errorMsg);
}

return formOk;
} 

//-->







