/**
 *  singelton class, 
 *  manages ajax calls
 */
 
AjxMgr = new function(){
	
	//public properties
	this.pathAjax = AppData.url + 'PlatformAjax/';
	
	this.request = function(url, type, data, dataType, async, success){
		
		var ajaxProp = {
						 url: 			url,
			             type: 		    type,
			             dataType: 		dataType,
			             async: 		async,
			             success:		success
						};
		if(data){
			ajaxProp.data = data;
		}
		
		
		$.ajax(ajaxProp);
	}
}


