// Dependency: jquery-1.2.6.js

utility = {
		load: function(url,id,callback){
			jQuery.ajax({
				type: "GET",
				url: url,
				success: function(data){
					jQuery('#'+id).html(data);
				},
				complete: function(){
					if(callback) callback();
				},
				error: function(XMLHttpRequest, textStatus, errorThrown){
					erorr.add('There was a problem with the AJAX load:'+textStatus,errorThrown);
				}
			});
		},
		post: function(url,params,id,callback){
			jQuery.ajax({
				type: "POST",
				url: url,
				data: params,
				success: function(data){
					if(id) jQuery('#'+id).html(data);
				},
				complete: function(){
					if(callback) callback();
				},
				error: function(XMLHttpRequest, textStatus, errorThrown){
					erorr.add('There was a problem with the AJAX load:'+textStatus,errorThrown);
				}
			});
		}
};