  
  function Load_Ajax_Page(pageUrl)
  {
    jQuery.ajax({ type: "POST",
                  url: pageUrl,
                  data: {"command" : "load_page_content",
                         "ajax_prefill" : "Yes"},
                  dataType: "json",
                  semantic: true,
                  success: function(responseJsonObject, statusText, xhr, $form)
                           {
                             if ((typeof(responseJsonObject["reponse_alert_message"]) != "undefined") &&
                                 responseJsonObject["reponse_alert_message"] != "")
                             {
                               alert(responseJsonObject["reponse_alert_message"]); 
                             }
  
                             document.title = responseJsonObject["page_title"];
                             $("#page_head_title").html(responseJsonObject["page_head_title"]);
                             $("#page_content").html(responseJsonObject["page_content"]);
                           },
                  error: function(xhr, ajaxOptions, thrownError)
                         { 
                           document.location.href = pageUrl;
                           /*
                           if (confirm("Changing page failed. Do you want to see more info about bug ?"))
                           {
                             alert(xhr.responseText);
                           }
                           */
                         }                            
                }
               );
    return false;
  }
  


