function showpage(link)
{
$.ajax({
type: "GET",
url: link,
beforeSend: showloading(),
success: function(msg){
$("#main").hide();
$("#main").html(msg).show("slow");
hideloading(),balance();
},
error: function(msg){
$("#main").html("<font color='#ff0000'>Ajax loading error, please try again.</font>").show("slow");
hideloading();
}
//, complete: hideloading()
});
}