
String.prototype.trim = function () {
	return this.replace(/^\s+|\s+$/, "");
};
function getObj(_1) {
	return document.all ? document.all[_1] : document.getElementById(_1);
}
function hideIt(_2) {
	getObj(_2).style.display = "none";
}
function showIt(_3) {
	getObj(_3).style.display = "block";
}
function changeDisplay(_4) {
	var _5 = document.getElementById(_4);
	if (_5.style.display == "none") {
		_5.style.display = "block";
	} else {
		if (_5.style.display == "block") {
			_5.style.display = "none";
		}
	}
}
function initAjax() {
	var _6 = false;
	try {
		_6 = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (e) {
		try {
			_6 = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (E) {
			_6 = false;
		}
	}
	if (!_6 && typeof XMLHttpRequest != "undefined") {
		_6 = new XMLHttpRequest();
	}
	return _6;
}
function checkTextboxBlank(_7) {
	var _8 = getObj(_7).value;
	if (_8 == "") {
		return true;
	} else {
		return false;
	}
}
function uploadImg() {
	frames["uploadFrame"].document.uploadForm.submit();
}
function savePost() {
	document.post_form.action = "/fabu/x";
	document.post_form.submit();
}
function saveProfile(_9) {
	document.profile_form.action = "/wo/ziliao/" + _9;
	document.profile_form.submit();
}
function saveEdit(_a) {
	document.post_form.action = "/bianji/x/" + _a;
	document.post_form.submit();
}
function modifyPasswd() {
	hideDiv("pt");
	showDiv("qt");
}
function hideDiv(_b) {
	getObj(_b).style.display = "none";
}
function showDiv(_c) {
	getObj(_c).style.display = "block";
}
function showTab(_d) {
	getObj("t__1").style.display = "none";
	getObj("t__2").style.display = "none";
	getObj("t__3").style.display = "none";
	showDiv(_d);
}
function myAddPanel(_e, _f, _10) {
	if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) {
		window.sidebar.addPanel(_e, _f, _10);
	} else {
		window.external.AddFavorite(_f, _e);
	}
}
function loadCustom(url, box) {
	var _13 = "";
	var _14 = new Ajax.Request(url, {method:"get", parameters:_13, onComplete:function (_15) {
		$(box).innerHTML = _15.responseText;
	}});
}
function setListTopAdsense(_16, _17, end) {
	_setAdsenseDisplayWithID(_16, "listTopAdsense", _17, end);
}
function setListTableTopAdsense(_19, _1a, end) {
	_setAdsenseDisplayWithID(_19, "listTableTopAdsense", _1a, end);
}
function setListBottomAdsense(_1c, _1d, end) {
	_setAdsenseDisplayWithID(_1c, "listBottomAdsense", _1d, end);
}
function setListTableBottomAdsense(_1f, _20, end) {
	_setAdsenseDisplayWithID(_1f, "listTableBottomAdsense", _20, end);
}
function setSearchTopAdsense(_22, _23, end) {
	_setAdsenseDisplayWithID(_22, "searchTopAdsense", _23, end);
}
function setSearchBottomAdsense(_25, _26, end) {
	_setAdsenseDisplayWithID(_25, "searchBottomAdsense", _26, end);
}
function setViewRightAdsense(_28, _29, end) {
	_setAdsenseDisplayWithID(_28, "viewRightAdsense", _29, end);
}
function setViewBottomAdsense(_2b, _2c, end) {
	_setAdsenseDisplayWithID(_2b, "viewBottomAdsense", _2c, end);
}
function _setAdsenseDisplayWithID(_2e, id, _30, end) {
	var s = _setAdsenseDisplay(_2e, _30, end);
	if (s != null) {
		var _33 = document.getElementById(id);
		if (_33 != null) {
			_33.innerHTML = s;
		}
	}
}
function _setAdsenseDisplay(_34, _35, end) {
	var s = "";
	var i;
	if (_34.length == 0) {
		return;
	}
	if (end > _34.length) {
		end = _34.length;
	}
	if (_35 >= end) {
		return;
	}
	var _39 = _39 == undefined ? "list_text" : _39;
	s += "<div class=\"" + _39 + "\"><p>" + adsense_title + "</p>";
	for (i = _35; i < end; i++) {
		var a = "<a href=\"" + _34[i].url + "\" onclick=\"return popWindow('" + _34[i].url + "','AdSense',800,600)\" onmouseout=\"window.status=''\" " + "onmouseover=\"window.status='go to " + _34[i].visible_url + "'; return true;\" " + "style=\"text-decoration:none\">";
		var c = (i % 2 == 0) ? "ad_block" : "ad_block alt";
		s += "<div class=\"" + c + "\">" + a + "<span class=\"t\">" + _34[i].line1 + "</span></a><div class=\"d\">" + a + _34[i].line2 + " " + (_34[i].line3 ? _34[i].line3 : "") + "</a><br /><small>" + a + _34[i].visible_url + "</a></small></div></div>";
	}
	s += "</div>";
	return s;
}
function popWindow(url, _3d, w, h) {
	newwindow = window.open(url, _3d, "height=" + h + ",width=" + w + ",resizable=yes,scrollbars=yes,toolbar=yes,status=yes,menubar=yes,location=yes");
	if (window.focus) {
		newwindow.focus();
	}
	return false;
}

