function validate_form ( )
{
    valid = true;

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


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


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

    if (document.installersignup.EmailAddress.value == "" || document.installersignup.EmailAddress.value.indexOf("@") == -1 || document.installersignup.EmailAddress.value.indexOf(".") == -1 )
    {
        alert ( "Please fill in the 'Email Address' box with a valid email address." );
        return false;
    } 
	
	    if ( document.installersignup.Address.value == "" )
    {
        alert ( "Please fill in the 'Street Address' box." );
        return false;
    } 
	
		    if ( document.installersignup.City.value == "" )
    {
        alert ( "Please fill in the 'City' box." );
        return false;
    } 
	
		    if ( document.installersignup.State.value == "" )
    {
        alert ( "Please fill in the 'State' box." );
        return false;
    } 
	
			    if ( document.installersignup.ZipCode.value == "" )
    {
        alert ( "Please fill in the 'Zip Code' box." );
        return false;
    } 
	

    if (isNaN(document.installersignup.TelephoneNumber.value) || document.installersignup.TelephoneNumber.value.length < 10)
    {
        alert ( "Please fill in the 'Phone Number' box with area code and no dashes or spaces." );
        return false;
    } 	
	
				    if ( document.installersignup.hourlyrate.value == "" )
    {
        alert ( "Please fill in the 'Hourly Rate' box." );
        return false;
    } 
					    if ( document.installersignup.security_code.value == "" )
    {
        alert ( "Please enter a valid security code." );
        return false;
    } 
	
	
    return valid;
}
