function getQueryValue(name) 
{
	var url = document.URL;
	i = url.indexOf(name += '=');
	j = url.indexOf('&', i);
	if(-1 == j) 
	{
		j = url.length;
	}
	if(-1 != i) 
	{
		return url.substring(i + name.length, j);
	}
}

function getaction ( ThisActionType )
{
  document.adminform.actiontype.value = ThisActionType ;
  document.adminform.submit() ;
}

function getGEO ()
{
	var Street = document.adminform.address.value;
	var City = document.adminform.city.value;
	var State = document.adminform.pdState.value;
	var Zip = document.adminform.zip.value;
	var URL = "http://maps.google.com/maps/geo?q="+Street+",+"+City+"+,+"+State+" "+Zip+"&output=csv&oe=utf8&sensor=false&key=ABQIAAAAwGX_k-8hhMnIl9JP60lzMxQKHBQc3oW5G5laWPCYohpCUQSxKxQ3Z5LZsi8LwJCd-Kn5leQ-1862MA";
	window.open(URL, "GEO Code", "location=0,status=0,scrollbars=0,width=300,height=50"); 
}
function ShowLatLong ()
{
	var Title = "Park Map to "+document.adminform.name.value;
	var LatLong = document.adminform.latlong.value;
	var URL = "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q="+LatLong;
	window.open(URL, "Park Map", "location=0"); 
}


