function validate(formObj) {
	var t ="";
	var searchText;
	searchText = StripBlanks(formObj.query.value);
	if (formObj.country.options.length < 1) {
		t = "Please select country from the list and enter search criteria";
	} else {
		if (formObj.country.options.selectedIndex<0)
		{
			t = "Select a country name\n";
		}
		if (formObj.type.value == "")
		{
			t += "Select a search type: Name/Reg. Code";
			formObj.type.focus();
		}
		if (searchText.length < 3)
		{
			t += "Search text text should be at least 3 characters";
			formObj.query.focus();
		}
	}
	if (t=="")
	{
		formObj.submit.focus();
		return true;
	}
	alert("ERROR: These fields are empty or not valid: \r\r" + t);
	return false;
}
