function checkform(a) {
if ((document.advsearch.bname.value.length == 0) && (document.advsearch.address.value.length == 0) && (document.advsearch.city.value.length == 0) && (document.advsearch.state.value.length == 0) && (document.advsearch.zipcode.value.length == 0)) {
	alert("Please enter any of the fields");
	return false;
	} else {
		if (a == 1){
			OnButton1();
		}
		if (a == 2){
			OnButton2();
		}
	}
}
function OnButton1()
{
    document.advsearch.action = "advancedsearch.asp"
    document.advsearch.submit();             
    return true;
}

function OnButton2()
{
    document.advsearch.action = "advancedsearch_map.asp"
    document.advsearch.submit();             
    return true;
}

