/**
 * @author schmidt
 */

TrackingService = {
	
	serviceUrl:null,
	
	insert:function(a_step, a_amount) {
		this.getRequest().send('step='+a_step+'&amount='+a_amount);
	},
	
	getRequest:function() {
		return new Service({
			method: 'post',
			url: this.serviceUrl,
			onFailure: this.handleFailure,
			onSuccess: this.handleSuccess
		})
	},
	
	handleSuccess:function(a_responseText, a_responseXML) {
		//debug(a_responseText);
	},
	
	handleFailure:function(a_code) {
		//debug (a_code)
	}
	
}

TrackingService.serviceUrl = URL_MAP['tracking']['trackingRequest'];
