function ValidateData() {
   var whitespace = " \t\n\r";
   var CanSubmit = false;

    	if ((document.forms[0].category.value) == "9999") {  
	     alert ("Please select a category and brand before searching");
	     return CanSubmit = False;
   	}
	else if ((document.forms[0].brand.value) == "9999") 
	{   
	     alert ("Please select a category and brand before searching");
	     return CanSubmit = False;
    	}
	else
	     return CanSubmit = True; 
}

