function validate()
	{
if (document.profile.firstname.value!="") 
	{
if (document.profile.firstname.value.length>28) 
		{
		alert('Your first name is too long.');
		return false;
		}
	}
if (document.profile.firstname.value == ""){
       	alert('Please enter your FIRST NAME before continuing.');
       	return false;
        }
if (document.profile.lastname.value!="") 
	{
if (document.profile.lastname.value.length>48) 
		{
		alert('Your last name is too long.');
		return false;
		}
	}
if (document.profile.lastname.value == ""){
       	alert('Please enter your LAST NAME before continuing.');
       	return false;
        }
		if (document.profile.day_telephone.value!="") 
	{
if (document.profile.day_telephone.value.length<10) 
		{
		alert('The DAY TELEPHONE # you entered appears to be too short. Please include your Area Code and Phone Number with no spaces or dashes.');
		return false;
		}
	}
if (document.profile.day_telephone.value == ""){
       	alert('Please enter your DAY TELEPHONE # before continuing. Please include your Area Code and Phone Number with no spaces or dashes.');
       	return false;
        } 
if (document.profile.email.value == ""){
       	alert('You must enter an e-mail ADDRESS before continuing.');
       	return false;
        }
if (document.profile.email.value.indexOf("@") ==-1 || document.profile.email.value.indexOf(".") ==-1 || document.profile.email.value.indexOf(" ") !=-1 || document.profile.email.value.length <6) 
		{
		alert('Please make sure your e-mail ADDRESS is valid before continuing.');
		return false;
		}                  
if (document.profile.bedrooms.options[0].selected)
		{
       	alert('You must select the minimum number of BEDROOMS you are looking for.');
       	return false;
        }     
if (document.profile.maxrent.options[0].selected)
		{
       	alert('Please indicate the MAXIMUM APARTMENT RENT you will be willing to pay.');
       	return false;
        }		
if (document.profile.movedate.options[0].selected)
		{
       	alert('Please indicate your intended MOVE DATE.');
       	return false;
        }    	
if ((document.profile.z999.checked) || (document.profile.z998.checked) || (document.profile.z150.checked) || (document.profile.z151.checked) || (document.profile.z152.checked) || (document.profile.z153.checked) || (document.profile.z109.checked) || (document.profile.z107.checked) || (document.profile.z997.checked) || (document.profile.z996.checked) || (document.profile.z995.checked) || (document.profile.z994.checked) || (document.profile.z992.checked))
		{
			return true;
		}
			else 
		{ 
			alert('You must select at least one NEIGHBORHOOD DESIRED before continuing.');
			return false;
		}		          	         	          	         
return true;
}
