 function IsNumeric(sText)
   {
   var ValidChars = "0123456789.";
   var IsNumber="";
   var Char;

 if (sText.length = 1)    { 
     if (sText.value = ' ')    return true;
   }
   for (i = 0; i < sText.length; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = "error";
         }
      }
   return IsNumber;

   }
 function checkInput(formData)
   {
    var stuff
    var msg = "";
    var num_msg = "";
    var date_msg = "";
    var validButton = "";
    var btn = "";
    if (formData.FIRSTNAME.value.length > 255)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for First Name";
      area_to_modify = document.getElementById("entry").FIRSTNAME;
      area_to_modify.style.color = "#FF0000";
    }
    if (formData.FIRSTNAME.value  == "")
    {
      msg = msg + "\r\n";
      msg = msg + "You must enter a value for First Name" ;
      area_to_modify = document.getElementById("entry").FIRSTNAME;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").FIRSTNAME;
       area_to_modify.style.color = "#000000";
    }
    if (formData.LASTNAME.value.length > 255)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Last Name";
      area_to_modify = document.getElementById("entry").LASTNAME;
      area_to_modify.style.color = "#FF0000";
    }
/* Roommate constraint; must enter value if student or postdoc:
 */
    if (formData.ROOMMATE.value  == "")
    {
        if ((formData.STATUS.value == "Student") || (formData.STATUS.value  == "Postdoc")) {
        msg = msg + "\r\n";
        msg = msg + " If you are a student or postdoc, please enter the name of someone "
        msg = msg + "\r\n";
        msg = msg + "     you are willing to room with at the symposium";
        area_to_modify = document.getElementById("entry").ROOMMATE;
        area_to_modify.style.color = "#FF0000";      	
        }
    }
    else
    {
       area_to_modify = document.getElementById("entry").ROOMMATE;
       area_to_modify.style.color = "#000000";
    }
/* end roommate
*/    
    if (formData.LASTNAME.value  == "")
    {
      msg = msg + "\r\n";
      msg = msg + "You must enter a value for Last Name";
      area_to_modify = document.getElementById("entry").LASTNAME;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").LASTNAME;
       area_to_modify.style.color = "#000000";
    }
    if (formData.SEX.value.length > 20)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Sex";
      area_to_modify = document.getElementById("entry").SEX;
      area_to_modify.style.color = "#FF0000";
    }
    if (formData.SEX.value  == "")
    {
      msg = msg + "\r\n";
      msg = msg + "You must enter a value for Male/Female";
      area_to_modify = document.getElementById("entry").SEX;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").SEX;
       area_to_modify.style.color = "#000000";
    }
    if (formData.DEPARTMENT.value.length > 255)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Department";
      area_to_modify = document.getElementById("entry").DEPARTMENT;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").DEPARTMENT;
       area_to_modify.style.color = "#000000";
    }
    if (formData.ORGANIZATION.value.length > 255)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Organization";
      area_to_modify = document.getElementById("entry").ORGANIZATION;
      area_to_modify.style.color = "#FF0000";
    }
    if (formData.ORGANIZATION.value  == "")
    {
      msg = msg + "\r\n";
      msg = msg + "You must enter a value for Organization";
      area_to_modify = document.getElementById("entry").ORGANIZATION;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").ORGANIZATION;
       area_to_modify.style.color = "#000000";
    }
    if (formData.TITLE.value.length > 255)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Title";
      area_to_modify = document.getElementById("entry").TITLE;
      area_to_modify.style.color = "#FF0000";
    }
    if (formData.TITLE.value  == "")
    {
      msg = msg + "\r\n";
      msg = msg + "You must enter a value for Title";
      area_to_modify = document.getElementById("entry").TITLE;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").TITLE;
       area_to_modify.style.color = "#000000";
    }
    if (formData.BUILDING.value.length > 255)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Building";
      area_to_modify = document.getElementById("entry").BUILDING;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").BUILDING;
       area_to_modify.style.color = "#000000";
    }
    if (formData.EMAIL.value.length > 255)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Email";
      area_to_modify = document.getElementById("entry").EMAIL;
      area_to_modify.style.color = "#FF0000";
    }
    if (formData.EMAIL.value  == "")
    {
      msg = msg + "\r\n";
      msg = msg + "You must enter a value for Email";
      area_to_modify = document.getElementById("entry").EMAIL;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").EMAIL;
       area_to_modify.style.color = "#000000";
    }
    if (formData.PHONE.value.length > 30)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Phone";
      area_to_modify = document.getElementById("entry").PHONE;
      area_to_modify.style.color = "#FF0000";
    }
    if (formData.PHONE.value  == "")
    {
      msg = msg + "\r\n";
      msg = msg + "You must enter a value for Phone";
      area_to_modify = document.getElementById("entry").PHONE;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").PHONE;
       area_to_modify.style.color = "#000000";
    }
    if (formData.ADDR1.value.length > 255)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Addr1";
      area_to_modify = document.getElementById("entry").ADDR1;
      area_to_modify.style.color = "#FF0000";
    }
    if (formData.ADDR1.value  == "")
    {
      msg = msg + "\r\n";
      msg = msg + "You must enter a value for Addr1";
      area_to_modify = document.getElementById("entry").ADDR1;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").ADDR1;
       area_to_modify.style.color = "#000000";
    }
    if (formData.ADDR2.value.length > 255)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Addr2";
      area_to_modify = document.getElementById("entry").ADDR2;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").ADDR2;
       area_to_modify.style.color = "#000000";
    }
    if (formData.CITY.value.length > 255)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for City";
      area_to_modify = document.getElementById("entry").CITY;
      area_to_modify.style.color = "#FF0000";
    }
    if (formData.CITY.value  == "")
    {
      msg = msg + "\r\n";
      msg = msg + "You must enter a value for City";
      area_to_modify = document.getElementById("entry").CITY;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").CITY;
       area_to_modify.style.color = "#000000";
    }
    if (formData.STATE.value.length > 255)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for State";
      area_to_modify = document.getElementById("entry").STATE;
      area_to_modify.style.color = "#FF0000";
    }
    if (formData.STATE.value  == "")
    {
      msg = msg + "\r\n";
      msg = msg + "You must enter a value for State";
      area_to_modify = document.getElementById("entry").STATE;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").STATE;
       area_to_modify.style.color = "#000000";
    }
    if (formData.ZIP.value.length > 20)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for ZIP";
      area_to_modify = document.getElementById("entry").ZIP;
      area_to_modify.style.color = "#FF0000";
    }
    if (formData.ZIP.value  == "")
    {
      msg = msg + "\r\n";
      msg = msg + "You must enter a value for ZIP";
      area_to_modify = document.getElementById("entry").ZIP;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").ZIP;
       area_to_modify.style.color = "#000000";
    }
    if (formData.STATUS.value.length > 20)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Status";
      area_to_modify = document.getElementById("entry").STATUS;
      area_to_modify.style.color = "#FF0000";
    }
    if (formData.STATUS.value  == "")
    {
      msg = msg + "\r\n";
      msg = msg + "You must enter a value for Status";
      area_to_modify = document.getElementById("entry").STATUS;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").STATUS;
       area_to_modify.style.color = "#000000";
    }
    if (formData.ROOMMATE.value.length > 255)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Roommate";
      area_to_modify = document.getElementById("entry").ROOMMATE;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").ROOMMATE;
       area_to_modify.style.color = "#000000";
    }
    if (formData.ADMIN_NAME.value.length > 255)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Admin Name";
      area_to_modify = document.getElementById("entry").ADMIN_NAME;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").ADMIN_NAME;
       area_to_modify.style.color = "#000000";
    }
    if (formData.ADMIN_EMAIL.value.length > 255)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Admin Email";
      area_to_modify = document.getElementById("entry").ADMIN_EMAIL;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").ADMIN_EMAIL;
       area_to_modify.style.color = "#000000";
    }
    if (formData.ADMIN_PHONE.value.length > 20)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Admin Phone";
      area_to_modify = document.getElementById("entry").ADMIN_PHONE;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").ADMIN_PHONE;
       area_to_modify.style.color = "#000000";
    }
    if (formData.DINNER.value.length > 20)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Banquet Dinner";
      area_to_modify = document.getElementById("entry").DINNER;
      area_to_modify.style.color = "#FF0000";
    }
    if (formData.DINNER.value  == "")
    {
      msg = msg + "\r\n";
      msg = msg + "You must enter a value for Banquet Dinner";
      area_to_modify = document.getElementById("entry").DINNER;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").DINNER;
       area_to_modify.style.color = "#000000";
    }
    if (formData.SPECIAL_FOOD.value.length > 400)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Special Needs Food";
      area_to_modify = document.getElementById("entry").SPECIAL_FOOD;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").SPECIAL_FOOD;
       area_to_modify.style.color = "#000000";
    }
    if (formData.SPECIAL_LODGING.value.length > 400)
    {
      msg = msg + "\r\n";
      msg = msg + "Data value too long for Special Needs Lodging";
      area_to_modify = document.getElementById("entry").SPECIAL_LODGING;
      area_to_modify.style.color = "#FF0000";
    }
    else
    {
       area_to_modify = document.getElementById("entry").SPECIAL_LODGING;
       area_to_modify.style.color = "#000000";
    }
    if (msg == "")
     {
       return true;
     }
     else
     {
      msg = "Please note the following errors with your submition:" + "\r\n" + msg;
      alert(msg);
      return false;
     }
  }
