
n4 = (document.layers)? true:false;
ie = (document.all)? true:false;
ie4 = (ie && navigator.appVersion.indexOf('MSIE 4')>0)? true:false;
ie5 = (ie && navigator.appVersion.indexOf('MSIE 5')>0)? true:false;

function showObject(id) {
var i=0;
	alert(id);
	if (n4) {
	  document.layers[id].visibility = "show";
  	 // document.layers[id].top = 250;
	 // document.layers[id].left = 330;
	} else if (ie) {
	  document.all[id].style.visibility = "visible";	
  	//  document.all[id].style.top = 250;
	//  document.all[id].style.left = 330;	  
	}	
	 //Hide the others	
	 for (i=0;i<6;i++)
	 {
	 	if (i != id) hideObject(i);
	 }
}
	
function hideObject(id) {
	if (n4) document.layers[id].visibility = "hide"
	else if (ie) document.all[id].style.visibility = "hidden"
	}
	
function showForm(mode)
{
var str = document.DisplayMethods.SearchMethod.options[document.DisplayMethods.SearchMethod.selectedIndex].value; 
// Show the appropriate form
//showObject(str);
document.location="parcelsearch.asp?method="+str;
return true;
}

function showPlat(mode)
{
var str = mode+'&plat='+document.SearchSubdivision.PlatType.selectedIndex; 
document.location="parcelsearch.asp?method="+str;
return true;
}