function buildStateSelect() {
/*this function creates the United States dropdown list*/
var stateList = ["AK","AL","AR","AZ","BC","CA","CO","CT","DC","DE","FL","GA","HI","IA","ID","IL","IN","KS","KY","LA","MA","MD","ME","MI","MN","MO","MS","MT","NC","ND","NE","NH","NJ","NM","NY","NV","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VA","VT","WA","WI","WV","WY","AB","BC","MB","NB","NL","NT","NS","NU","ON","PE","QC","SK","YT"];
var stateName = ["Alaska","Alabama","Arkansas","Arizona","British Columbia","California","Colorado","Connecticut","Dist. Columbia","Delaware","Florida","Georgia","Hawaii","Iowa","Idaho","Illinois","Indiana","Kansas","Kentucky","Louisiana","Massachusetts","Maryland","Maine","Michigan","Minnesota","Missouri","Mississippi","Montana","North Carolina","North Dakaota","Nebraska","New Hampshire","New Jersey","New Mexico","New York","Nevada","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Virginia","Vermont","Washington","Wisconsin","West Virginia","Wyoming","Alberta","British Columbia","Manitoba","New Brunswick","New Foundland","Northwest Territories","Nova Scotia","Nunuvat","Ontario","Prince Edward Island","Quebec","Saskatchewan","Yukon Territory"];
document.write("<option value=\"\"></option>");
for (x = 0; x < stateList.length; x++) {
	document.write("<option value=\""+stateList[x]+"\">"+stateName[x]+"</option>");
	}
}

function selectvalidate(theForm)
{

  if (theForm.txt_FirstName.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.txt_FirstName.focus();
    return (false);
  }

  if (theForm.txt_FirstName.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"First Name\" field.");
    theForm.txt_FirstName.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ";
  var checkStr = theForm.txt_FirstName.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter characters in the \"First Name\" field.");
    theForm.txt_FirstName.focus();
    return (false);
  }

  if (theForm.txt_LastName.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.txt_LastName.focus();
    return (false);
  }

  if (theForm.txt_LastName.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Last Name\" field.");
    theForm.txt_LastName.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ";
  var checkStr = theForm.txt_LastName.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter characters in the \"Last Name\" field.");
    theForm.txt_LastName.focus();
    return (false);
  }

  if (theForm.txt_Email.value == "")
  {
    alert("Please enter a value for the \"E-mail\" field.");
    theForm.txt_Email.focus();
    return (false);
  }

  if (theForm.txt_Email.value.length < 3)
  {
    alert("Please enter at least 3 characters in the \"E-mail\" field.");
    theForm.txt_Email.focus();
    return (false);
  }

  if (theForm.txt_BestTime.selectedIndex == 0)
  {
    alert("The first \"BestTime\" option is not a valid selection.  Please choose one of the other options.");
    theForm.txt_BestTime.focus();
    return (false);
  }

  if (theForm.txt_TimeZone.selectedIndex == 0)
  {
    alert("The first \"TimeZone\" option is not a valid selection.  Please choose one of the other options.");
    theForm.txt_TimeZone.focus();
    return (false);
  }

  if (theForm.City.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.txt_City.focus();
    return (false);
  }

  if (theForm.txt_City.value.length < 3)
  {
    alert("Please enter at least 3 characters in the \"City\" field.");
    theForm.txt_City.focus();
    return (false);
  }

  if (theForm.txt_State.selectedIndex < 0)
  {
    alert("Please select one of the \"State\" options.");
    theForm.txt_State.focus();
    return (false);
  }
  return (true);
}
