function buy_post(A) {
	if (confirm("是否要购买此隐藏帖？ 用来购买帖子的钱将从你的现金里扣除")) {
		if (AJAX_Compatible) {
			new vB_6mu_AJAX_Bank().buy(A);
		} else {
			return true;
		}
	}
	return false;
}

function vB_6mu_AJAX_Bank() {
}
vB_6mu_AJAX_Bank.prototype.buy = function(A) {
	this.postid = A;
	this.container = fetch_object("edit"+this.postid);
	if (this.container) {
		postid = this.postid;
		YAHOO.util.Connect.asyncRequest("POST","buypost.php?p="+this.postid,{success:this.buy_finish, failure:this.handle_ajax_error, timeout:vB_Default_Timeout, scope:this},SESSIONURL+"securitytoken="+SECURITYTOKEN+"&ajax=1&postid="+this.postid);
	}
};
vB_6mu_AJAX_Bank.prototype.handle_ajax_error = function(A) {
	vBulletin_AJAX_Error_Handler(A);
};
vB_6mu_AJAX_Bank.prototype.buy_finish = function(A) {
	if (A.responseXML) {
		var B = A.responseXML.getElementsByTagName("returnCode");
		if (B.length == 1 && B[0].textContent == "true") {
			display_post(this.postid);
			return true;
		}
	}
	window.location.href = "buypost.php?"+(SESSIONURL ? "s="+SESSIONURL+"&" : "")+"p="+this.postid;
};