function loadPage(URL) { $("#loading_").show(); // alert("loadPage("+URL+")"); var u = URL.split('#'); // split anchor $("#main").load(u[0]+" #page_content",function(response,status,xhr) { if (status == "error") { $("#main").html("
"+xhr.status+" "+xhr.statusText+"