<!--
startList=function()
{
  // is this an IE/Win version that groks the W3C DOM?
  if (document.all&&document.getElementById)
  {
    navRoot=document.getElementById("nav");
    for (i=0; i<navRoot.childNodes.length; i++)
    {
      node = navRoot.childNodes[i];
      if (node.nodeName=="LI")
      {
        node.onmouseover=function()
        {
          this.className+=" over";
        }
        node.onmouseout=function()
        {
          this.className=this.className.replace(" over", "");
        }
      }
    }
  } // end if IE/Win
} // end startList
window.onload=startList;

// verify submission of the "buy-now" for a PDF
function verifyEmail(form)
{
  var err = 0;
  var msg = '';
  var cj = new RegExp();
  
  // email is required
  if(form["email"].value == '')
  {
    msg += "No email address.\n";
    err++;
  }
  // verify email format if present
  if(form["email"].value != '')
  {
    // allow Euro-style and subdomain addresses
    cj.compile(/^[A-Za-z0-9._-]+@[A-Za-z0-9._-]+\.[A-Za-z0-9]{2,3}$/);
    if (!cj.test(form["email"].value))
    {
      msg += "Email address invalid.\n";
      err++;
    }
  } // end email check
  
  if (err > 0)
  {
    msg = "--------------------------------\n" + msg;
    msg = "Please correct the following:\n" + msg;
    alert(msg);
    return false;
  }
  return true;
} // end pdf form verification


//-->
