function GetParam(name)
	{
	  var start=window.location.search.indexOf("?"+name+"=");
	  if (start<0) start=window.location.search.indexOf("&"+name+"=");
	  if (start<0) return '';
	  start += name.length+2;
	  var end=window.location.search.indexOf("&",start)-1;
	  if (end<0) end=window.location.search.length;
	  var result='';
	  for(var i=start;i<=end;i++) {
	    var c=location.search.charAt(i);
	    result=result+(c=='+'?' ':c);
	  }
	  return unescape(result);
}


function GetDecimalLatLong(coorIn){
	if(coorIn == null){ return 0.0 }
	var coor = coorIn.split(/ /);
	if(coor[0]== "" ){
		coor[0]=coor[1];
		coor[1]=coor[2];
	}
	var deg = coor[0].split(/\&/);
	
	var adeg = deg[0];
	
	var min = coor[1].split(/\&/);
	
	var amin = min[0];
	
	amin = amin/60.0;
	
	adeg = (adeg * 1.0) + (amin*1.0);
	
	
	return adeg;

}

function ShowOnMap(cnum,Lat,Long){
	if(cnum != ""){
	var link = '/maps.html?Cnum=' + cnum + '&Lat=' + Lat + '&Long=' + Long ;
	//alert(link);
	 document.location.href = link;
	//alert(cnum);
	}

}
