ns4 = (document.layers) ? true:false 
ie4 = (document.all) ? true:false 
ng5 = (document.getElementById) ? true:false 

function XshowObject(n) 
	{ 
	if (ng5) document.getElementById(n).style.visibility = "visible"; 
	else if (ns4) document.layers[n].visibility = "show"; 
	else if (ie4) document.all[n].style.visibility = "visible"; 
	}

function XhideObject(n) 
	{ 
	if (ng5) document.getElementById(n).style.visibility = "hidden"; 
	else if (ns4) document.layers[n].visibility = "hide"; 
	else if (ie4) document.all[n].style.visibility = "hidden"; 
	}







function showObject(n) 
	{ 
	document.getElementById(n).style.visibility = "visible"; 
	}

function hideObject(n) 
	{ 
	document.getElementById(n).style.visibility = "hidden";
	}








//***************************************************
//** Convert to case
//***************************************************


function ConvertCase(fElementID, fConType)
	{
	var txtString; 
	txtString = document.getElementById(fElementID).value;
	if (fConType == "UPPER") txtString = txtString.toUpperCase();
	if (fConType == "LOWER") txtString = txtString.toLowerCase();
	document.getElementById(fElementID).value = txtString;
	}


var intZoomLevel;
var intLat;
var intLng;
var txtPropertyLabel;




function domapFeatures(fZoom, fLat, fLng, fLabel, fZoomSize, fFeatures)
{
SetLatLng(fZoom,fLat, fLng, fLabel);
SetFeatures(fFeatures);
loadmap(fZoomSize);
}





function domap(fZoom, fLat, fLng, fLabel, fZoomSize)
{
SetLatLng(fZoom,fLat, fLng, fLabel);
loadmap(fZoomSize);
}



function SetLatLng(fZoom, fLat, fLng, fLabel)
{
intZoomLevel = fZoom;
intLat = fLat;		// NS
intLng= fLng; 		// EW
txtPropertyLabel = fLabel;
}

