browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3) version = "n3";
else if (browserName == "Microsoft Internet Explorer" && browserVer >= 3) version = "n3";
else version = "n2";

if (version == "n3") {
  toc1on = new Image();
  toc1on.src = "/images/nav/nav_news_on.gif";
  toc2on = new Image();
  toc2on.src = "/images/nav/nav_magazine_on.gif";
  toc3on = new Image();
  toc3on.src = "/images/nav/nav_professionals_on.gif";
  toc4on = new Image();
//  toc4on.src = "/images/nav/nav_relocation_on.gif";
  toc4on.src = "/images/nav/nav_realtor_solutions_on.gif";
  toc5on = new Image();
  toc5on.src = "/images/nav/nav_weblinks_on.gif";
  toc6on = new Image();
  toc6on.src = "/images/nav/nav_training_on.gif";
  toc7on = new Image();
  toc7on.src = "/images/nav/nav_events_on.gif"
  toc8on = new Image();
  toc8on.src = "/images/nav/nav_internet_on.gif"
//  toc9on = new Image();
//  toc9on.src = "/images/nav/.gif";
//  toc0on = new Image();
//  toc0on.src = "/images/nav/.gif";
  toc1off = new Image();
  toc1off.src = "/images/nav/nav_news_off.gif";
  toc2off = new Image();
  toc2off.src = "/images/nav/nav_magazine_off.gif";
  toc3off = new Image();
  toc3off.src = "/images/nav/nav_professionals_off.gif";
  toc4off = new Image();
//  toc4off.src = "/images/nav/nav_relocation_off.gif";
  toc4off.src = "/images/nav/nav_realtor_solutions_off.gif";
  toc5off = new Image();
  toc5off.src = "/images/nav/nav_weblinks_off.gif";
  toc6off = new Image();
  toc6off.src = "/images/nav/nav_training_off.gif";
  toc7off = new Image();
  toc7off.src = "/images/nav/nav_events_off.gif";
  toc8off = new Image();
  toc8off.src = "/images/nav/nav_internet_off.gif";
//  toc9off = new Image();
//  toc9off.src = "/images/nav/.gif";
//  toc0off = new Image();
//  toc0off.src = "/images/nav/.gif";
}

function img_act(imgName) {
  if (version == "n3") {
    imgOn = eval(imgName + "on.src");
    document [imgName].src = imgOn;
  }
}

function img_inact(imgName) {
  if (version == "n3") {
    imgOff = eval(imgName + "off.src");
    document [imgName].src = imgOff;
  }
}

function p0Check()
{

if (document.form.first.value == "")
  {
  alert("Please enter your first name.");
  document.form.first.focus();
  return false;
  }

if (document.form.last.value == "")
  {
  alert("Please enter your last name.");
  document.form.last.focus();
  return false;
  }

if (document.form.company.value == "")
  {
  alert("Please enter your company name.");
  document.form.company.focus();
  return false;
  }

if (document.form.address1.value == "")
  {
  alert("Please enter your address.");
  document.form.address1.focus();
  return false;
  }

if (document.form.city.value == "city")
  {
  alert("Please enter your cit.");
  document.form.city.focus();
  return false;
  }

var myindex=document.form.state.selectedIndex;
if (myindex==0)
  {
  alert("Please enter you state or province.  If none, select \"Not Applicable.\"");
		document.form.state.focus();
  return false;
  }

if (document.form.zip.value == "")
  {
  alert("Please enter your zip code.");
  document.form.zip.focus();
  return false;
  }

if (document.form.phone1.value == "")
  {
  alert("Please enter your phone number.");
  document.form.phone1.focus();
  return false;
  }

if (document.form.phone_fax.value == "")
  {
  alert("Please enter your fax number");
  document.form.phone_fax.focus();
  return false;
  }

if (document.form.email.value.indexOf("@") == -1 ||
  document.form.email.value == "")
  {
  alert("Please include a proper email address.");
		document.form.email.focus();
  return false;
  }
}

// End confirm for signup0.html

function pmtCheck()
{
if (document.form.card_holder.value == "")
  {
  alert("Please enter the name on your credit card.");
  document.form.card_holder.focus();
  return false;
  }

if (document.form.card_number.value == "")
  {
  alert("Please enter your credit card number.");
  document.form.card_number.focus();
  return false;
  }
}
