// JavaScript Documentfunction changePhoneList(region) {	var idlist = document.getElementById("phonelist").getElementsByTagName('li');	for (var i = 0; i < idlist.length; i++)  { idlist[i].style.backgroundColor = "#FFFFFF"; }	switch(region) {		case "Barry": // Barry			document.getElementById("giveson").style.backgroundColor = "#CCCCCC"; break;		case "Calhoun": // Calhoun			document.getElementById("amoreno").style.backgroundColor = "#CCCCCC"; break;		case "Hillsdale": // Hillsdale			document.getElementById("amoreno").style.backgroundColor = "#CCCCCC"; break;		case "Jackson": // Jackson			document.getElementById("mcrabb").style.backgroundColor = "#CCCCCC";			document.getElementById("rdekker").style.backgroundColor = "#CCCCCC";			document.getElementById("jnye").style.backgroundColor = "#CCCCCC";			break;		case "Kent": // Kent			document.getElementById("giveson").style.backgroundColor = "#CCCCCC";			document.getElementById("jpell").style.backgroundColor = "#CCCCCC";			break;		case "Lenawee": // Lenawee			document.getElementById("amoreno").style.backgroundColor = "#CCCCCC";			document.getElementById("dwoodard").style.backgroundColor = "#CCCCCC";			break;		case "Washtenaw": // Washtenaw			document.getElementById("mcrabb").style.backgroundColor = "#CCCCCC"; break;		default:		  	document.getElementById("lwitte").style.backgroundColor = "#CCCCCC";	}}function aValidator(theForm){  if (theForm.First.value == "")  {    alert("Please enter a value for the \"First Name\" field.");    theForm.First.focus();    return (false);  }  if (theForm.First.value.length < 2)  {    alert("Please enter at least 2 characters in the \"First Name\" field.");    theForm.First.focus();    return (false);  }  if (theForm.First.value.length > 15)  {    alert("Please enter at most 15 characters in the \"First Name\" field.");    theForm.First.focus();    return (false);  }  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ '-\t\r\n\f";  var checkStr = theForm.First.value;  var allValid = true;  var validGroups = 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 letters and spaces in the \"First Name\" field.");    theForm.First.focus();    return (false);  }  if (theForm.Last.value == "")  {    alert("Please enter a value for the \"Last Name\" field.");    theForm.Last.focus();    return (false);  }  if (theForm.Last.value.length < 2)  {    alert("Please enter at least 2 characters in the \"Last Name\" field.");    theForm.Last.focus();    return (false);  }  if (theForm.Last.value.length > 30)  {    alert("Please enter at most 30 characters in the \"Last Name\" field.");    theForm.Last.focus();    return (false);  }  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ '-\t\r\n\f";  var checkStr = theForm.Last.value;  var allValid = true;  var validGroups = 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 letters and spaces in the \"Last Name\" field.");    theForm.Last.focus();    return (false);  }  if (theForm.email.value == "")  {    alert("Please enter a value for the \"E-Mail\" field.");    theForm.email.focus();    return (false);  }  if (theForm.email.value.length < 7)  {    alert("Please enter at least 7 characters in the \"E-Mail\" field.");    theForm.email.focus();    return (false);  }  if (theForm.email.value.length > 40)  {    alert("Please enter at most 40 characters in the \"E-Mail\" field.");    theForm.email.focus();    return (false);  }  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-@.";  var checkStr = theForm.email.value;  var allValid = true;  var validGroups = 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 letters, numbers, and \"@.\" characters in the \"E-Mail\" field.");    theForm.email.focus();    return (false);  }  if (theForm.PhoneNum.value == "")  {    alert("Please enter a value for the \"Phone\" field.");    theForm.PhoneNum.focus();    return (false);  }  if (theForm.PhoneNum.value.length < 12)  {    alert("Please enter at least 12 characters in the \"Phone\" field.");    theForm.PhoneNum.focus();    return (false);  }  if (theForm.PhoneNum.value.length > 12)  {    alert("Please enter at most 12 characters in the \"Phone\" field.");    theForm.PhoneNum.focus();    return (false);  }  var checkOK = "0123456789-- \t\r\n\f";  var checkStr = theForm.PhoneNum.value;  var allValid = true;  var validGroups = 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 numbers and \"-\" characters in the \"Phone\" field.");    theForm.PhoneNum.focus();    return (false);  }  if (theForm.Street.value == "")  {    alert("Please enter a value for the \"Street\" field.");    theForm.Street.focus();    return (false);  }  if (theForm.Street.value.length < 5)  {    alert("Please enter at least 5 characters in the \"Street\" field.");    theForm.Street.focus();    return (false);  }  if (theForm.Street.value.length > 50)  {    alert("Please enter at most 50 characters in the \"Street\" field.");    theForm.Street.focus();    return (false);  }  if (theForm.City.value == "")  {    alert("Please enter a value for the \"City\" field.");    theForm.City.focus();    return (false);  }  if (theForm.City.value.length < 4)  {    alert("Please enter at least 4 characters in the \"City\" field.");    theForm.City.focus();    return (false);  }  if (theForm.City.value.length > 20)  {    alert("Please enter at most 20 characters in the \"City\" field.");    theForm.City.focus();    return (false);  }  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ '-\t\r\n\f";  var checkStr = theForm.City.value;  var allValid = true;  var validGroups = 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 letters and spaces in the \"City\" field.");    theForm.City.focus();    return (false);  }  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ'-";  var checkStr = theForm.State.value;  var allValid = true;  var validGroups = 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 letters in the \"State\" field.");    theForm.State.focus();    return (false);  }  var chkVal = theForm.State.value;  var prsVal = chkVal;  if (chkVal != "" && !(prsVal == "MI"))  {    alert("Please enter a value equal to \"MI\" in the \"State\" field.");    theForm.State.focus();    return (false);  }  if (theForm.Zip.value == "")  {    alert("Please enter a value for the \"Zip\" field.");    theForm.Zip.focus();    return (false);  }  if (theForm.Zip.value.length < 5)  {    alert("Please enter at least 5 numbers in the \"Zip\" field.");    theForm.Zip.focus();    return (false);  }  if (theForm.Zip.value.length > 5)  {    alert("Please enter at most 5 numbers in the \"Zip\" field.");    theForm.Zip.focus();    return (false);  }  var checkOK = "0123456789-";  var checkStr = theForm.Zip.value;  var allValid = true;  var validGroups = true;  var decPoints = 0;  var allNum = "";  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;    }    allNum += ch;  }  if (!allValid)  {    alert("Please enter only numbers in the \"Zip\" field.");    theForm.Zip.focus();    return (false);  }  theForm.realname.value = theForm.First.value + " " + theForm.Last.value;  return (true);}