function validate_form ( )
{
    valid = true;
	
    if ( document.microform.subject.value == "" )
    {
        alert ( "Please fill in the 'Subject' field." );
        valid = false;
    }
    


    if ( document.microform.name.value == "" )
    {
        alert ( "Please fill in the 'Name' field." );
        valid = false;
    }
    
    
	if ( document.microform.company.value == "" )
    {
        alert ( "Please fill in the 'Company' field." );
        valid = false;
    }
	
	
    if ( document.microform.email.value == "" )
    {
        alert ( "Please fill in the 'Email' field." );
        valid = false;
    }
    
	if ( document.microform.email.value.indexOf(".") < 2 ||  document.microform.email.value.indexOf("@") < 1)
    {
        alert ( "Please enter a valid email address." );
        valid = false;
    }
    
	if ( document.microform.phone.value == "" )
    {
        alert ( "Please fill in the 'Phone' field." );
        valid = false;
    }
	

	if ( document.microform.comments.value == "" )
    {
        alert ( "Please fill in the 'Comments' field." );
        valid = false;
    }
    

return valid;

}
