/*
$.ajax({
  type: 'POST',
  url: url,
  data: data,
  success: success
  dataType: dataType
});
$.post(url,[data],[success(data,textStatus)],[dataType {xml,htm,script,json,jsonp,text}]);
********************************************************************************
$.ajax({
  url: url,
  data: data,
  success: success
  dataType: dataType
});
$.get(url,[data],[success(data,textStatus)],[dataType {xml,htm,script,json,jsonp,text}]);
********************************************************************************
$.ajax({
  url: url,
  type: 'script'
  success: success
});
$.getScript(url,[success(data,textStatus)]);
********************************************************************************
$.getJSON(
   url, [data], [callback]
);
********************************************************************************
ajaxComplete():: executed when an AJAX request is completed
ajaxError():: executed if an AJAX request causes an error
ajaxSend():: executed before an AJAX request is sent
ajaxStart():: executed before an AJAX request is sent
ajaxStop():: executed after all AJAX request have stopped
ajaxSuccess():: executed an AJAX request completes successfully
$('#form').serialize(); /// the string in url formate
 */
get_ajax = function (site, url, object, get, type) {

   if (!type) type= 'html';
   if (!get)  get = true;
   $.get(
      site,
      url,
      function(data){
         if (get==true) $(object).html(data);
      },
      type
   );
}
/******************************************************************************/
$(document).ajaxStart(function(){
   div_display('#div_loading','center');
}).ajaxStop(function(){
   div_display('#div_loading','center');
});
/******************************************************************************/
/******************************************************************************/
/******************************************************************************/

