function validate_form ( )
{
    valid = true;

    if ( document.intallrequest.FirstName.value == "" )
    {
        alert ( "Please fill in the 'Name' box." );
        return false;
    } 


    if (isNaN(document.intallrequest.PhoneNumber.value) || document.intallrequest.PhoneNumber.value.length < 10)
    {
        alert ( "Please fill in the 'Phone Number' box with area code and no dashes or spaces." );
        return false;
    } 
	
	    if (document.intallrequest.Email.value == "" || document.intallrequest.Email.value.indexOf("@") == -1 || document.intallrequest.Email.value.indexOf(".") == -1 )
    {
        alert ( "Please fill in the 'Email Address' box with a valid email address." );
        return false;
    } 


    if ( document.intallrequest.WhatyouNeed.value == "" )
    {
        alert ( "Please fill in the 'Install Detail' box." );
        return false;
    } 
	
	
    return valid;
}