function addtofav(linkUrl,LinkName){
  if (!document.all) {
     alert('Please hit ctrl-d to bookmark this page');
  }
  else external.AddFavorite(linkUrl,LinkName);
  return false;
}
function isEmailAddr(EmailAddy)
{
  var result = false
  var theStr = new String(EmailAddy)
  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 FormValidator(theForm)
{

  if (theForm.EmailAddy.value == "")
  {
    alert("You need a valid email address to sign up to the mailing list");
    theForm.EmailAddy.focus();
    return (false);
  }

  if (!isEmailAddr(theForm.EmailAddy.value))
  {
    alert("Please make sure you have entered your email address correctly");
    theForm.EmailAddy.focus();
    return (false);
  }
   
  if (theForm.EmailAddy.value.length < 3)
  {
    alert("your email has to be a least 3 characters long...");
    theForm.EmailAddy.focus();
    return (false);
  }
  return (true);
}