// JavaScript Document - Validate form fields

function validate_form ( )
{
    valid = true;

    if ( document.form1.name.value == "" )
    {
        alert ( "Please fill in the 'Name' field." );
        valid = false;
    }
	else if ( document.form1.email.value == "" )
    {
        alert ( "Please input your email address." );
        valid = false;
    }

    return valid;
}
