var ajax;
function ajax_updater(url) {
	ajax =  new Ajax.Updater(
         'content_file',        // DIV id must be declared before the method was called
         url,        // URL
         {                // options
         method:'get',
         //onComplete: Table.auto
         onComplete: function(){ Element.setOpacity('content_file', 0.0); new Effect.Appear('content_file'); new Table.auto;},asynchronous:true, evalScripts:true
         });
}
function ajax_updater_form(form) {
	var params = Form.serialize($(form));
	var url = $(form).readAttribute('action');
	var params = decodeURI(params);
	new Ajax.Updater('content_file', url, {asynchronous:true, parameters:params, onComplete: function(){new Table.auto; msg_set();}});
}
function ajax_updater_action(url) {
	ajax =  new Ajax.Updater(
         'content_file',        // DIV id must be declared before the method was called
         url,        // URL
         {                // options
         method:'get',
         //onComplete: Table.auto
         onComplete: function(){ new Table.auto;  msg_set();},asynchronous:true, evalScripts:true
         });
}

function ajax_sign(url) {
	ajax =  new Ajax.Updater(
         'main_tbl',        // DIV id must be declared before the method was called
         url,        // URL
         {                // options
         method:'get',
         onComplete: function(){ new Table.auto;},asynchronous:true, evalScripts:true
         });
}

function ajax_send_2_bas(url, obj, price) {
	ajax = new Ajax.Request(url, {
  	method: 'get',
  	onSuccess: function(transport) {
  	msg_set(obj, price);
  }
});
}

function ajax_send_noret(url) {
	ajax = new Ajax.Request(url, {
  	method: 'get',
  	onSuccess: function(transport) {
  	
  }
});
}
