function validateContact()
{
   var f = document.getElementById('contactForm');
   var errColor = '#ffcccc';      
   var err = "";

   if (f.contactFirstName.value == "")
   {
      err += "Please enter a First Name.\n";
	  f.contactFirstName.style.background =   errColor;		  	  
   }
   if (f.contactLastName.value == "")
   {
      err += "Please enter a Last Name.\n";
	  f.contactLastName.style.background =   errColor;		  	  	  
   }
   if (f.contactPhone.value == "")
   {
      err += "Please enter a Phone Number.\n";
	  f.contactPhone.style.background =   errColor;		  	  	  
   }
   if (f.contactCityName.value == "")
   {
      err += "Please enter a City.\n";
	  f.contactCityName.style.background =   errColor;		  	  	  
   }
   if (f.contactStateName.value == "")
   {
      err += "Please enter a State.\n";
	  f.contactStateName.style.background =   errColor;		  	  	  
   }
   if (f.tableSize.value == "")
   {
      err += "Please enter a table size.\n";
	  f.tableSize.style.background =   errColor;		  	  	  
   }   
   if (f.contactComment.value.length > 500){
      err += "Comment is too long. Must be 500 characters or less.\n";	   
	  f.contactComment.style.background =   errColor;		  	  	  
    }
   if (f.contactMethod.options[f.contactMethod.selectedIndex].value == 'EMAIL' && f.contactEmail.value == ""){
      err += "Please enter an email address or change the best contact method.\n";	   
	  f.contactEmail.style.background =   errColor;		  	  	  
	  f.contactMethod.style.background =   errColor;		  	  	  	  
    }
   if (f.contactMethod.options[f.contactMethod.selectedIndex].value == 'MAIL' && f.contactAddress.value == ""){
      err += "Please enter an address or change the best contact method.\n";	   
	  f.contactAddress.style.background =   errColor;		  	  	  
	  f.contactMethod.style.background =   errColor;		  	  	  	  
    }
  if (f.contactType.options[f.contactType.selectedIndex].value == 'RELOCATION' && f.flightStair.value == ""){
      err += "Please tell us how many flights of stairs will be involved for this move.\n";	   
	  f.flightStair.style.background =   errColor;		  	  	  
	  f.flightStair.style.background =   errColor;		  	  	  	  
    }

   if (err != "")
   {
      alert(err);
      return false;
   }

   return true;
}

function validateEmail()
{
   var f = document.getElementById('forgotPwordForm');
   var errColor = '#ffcccc';      
   var err = "";

   if (f.contactEmail.value == "")
   {
      err += "Please enter an Email Address.\n";
	  f.contactEmail.style.background =   errColor;		  	  	  	  
   }
   
   if (err != "")
   {
      alert(err);
      return false;
   }

   return true;
}

function checkContactType()
{
   var f = document.getElementById('contactForm');
   var stairBox = document.getElementById('stairBox');   
   var errColor = '#ffcccc';      
   var err = "";

   if (f.contactType.options[f.contactType.selectedIndex].value == 'RELOCATION')
   {
		stairBox.style.display = '';
   }
   else
   {
		stairBox.style.display = 'none';
   }
   return true;
}
