jQuery.noConflict();

url=window.location.href.split("index.html"); 

function ajax_request(command, params, do_function, async_val)
{
	async_val = typeof(async_val) != 'undefined' ? async_val : true;
	jQuery.ajax({
	  data: 'command='+command +'&'+ params,
	  url: '../ajax.php',
	  type:'POST',
	  timeout: 45000,
	  async: async_val,
	  cache: false,
	  beforeSend: function(){
		jQuery('#working').show();
	  },
	  error:function(){
		jQuery("#order_form").ajaxError(function(event, request, settings){
		alert("<li>Error requesting page " + settings.url + "</li>");
		});
	  },
	  success: function(html){
	    do_function(html);
	  },
	  complete: function(transport){
		jQuery('#working').hide();
	  }
  
	});
}
