function validate() {
    var valid = true, output = '';

    if (document.solutionForm.solution.selectedIndex == 0) {
        valid = false;
        output = 'Select solution from the pulldown menu.<br>\n';
    }
	if (document.solutionForm.q.value.length == 0) {
        valid = false;
        output += 'Enter City, State or Zip code in the text area.';
    }


    if (!valid)
        {document.getElementById("result").innerHTML = "<\/tt>" + output;}

    return valid;
}