var lat = geoip_latitude();
var lng = geoip_longitude();

var params = 
	"lat=" + lat +
	"&lng=" + lng;

new Ajax("/addUserLocation", "POST",
	function(text, error){
		try {
 			if (error != null) {
 				// could not send the location
 				//alert(error);
 			}
		} catch(failed) {
			// could not send the location
			//alert("Unexpected error occured while performing the operation. Please try again later.");
		}
	},
	params
);