String.prototype.Trim = function()
{
    return this.replace(/(^\s*)|(\s*$)/g,"");
}

function msgbox(msg)
{
	//alert(msg);
	jQuery.facebox();
	$("#facebox .title").html('消息');	
	$("#facebox .content").html('<div class="center" style="color:#000; padding:10px;">'+msg+'</div>');
	setTimeout(function(){$.facebox.close();}, 1500);
}

function box(msg,url)
{
	var id =0 ;
	var rel = APP+url;
	
	$.post(rel,{},function(txt){
		if(txt){
			jQuery.facebox();
			$("#facebox .title").html('消息');	
			$("#facebox .content").html('<div class="center"><br>'+msg+'<br>&nbsp;</div>');	
			setTimeout(function(){$.facebox.close();}, 2500);
		}
	});	
}