function submitLocator(caller,path){
	var country = "US";
	var loc = caller.findStoreSrchBox.value;
	if ( loc == "" ) {
		caller.action = path + 'locator.asp';
	}
	else {
		caller.geolat.value = "";
		caller.geolong.value = "";
		eurGeocode(caller,loc + " " + country, path);
	}			
	return false;				
}
function eurGeocode(frm,locToGeocode, path) { 
	if (GBrowserIsCompatible()) { 
		var errmsg = "We apologize.  We're not able to find the town/postcode.  Please try again";
		var geocoder = new GClientGeocoder();
		geocoder.getLocations( locToGeocode, 
						function(response) {
							if ( !response || response.Status.code != 200 ) {
                        		frm.action = path + 'locator.asp';
							} else {
								var place = response.Placemark[0];
								//if (place.AddressDetails.Country.CountryNameCode == "GB") place.AddressDetails.Country.CountryNameCode="UK";
								//if (place.AddressDetails.Country.CountryNameCode != locToGeocode.substr(locToGeocode.length - 2,2)) {
								//	alert(errmsg);
								//}
								//else {
									frm.geolat.value = place.Point.coordinates[1];
									frm.geolong.value = place.Point.coordinates[0];	
									frm.submit();
								//}
							}
						});
		} 
}