function rT()
{
	if(!isW)
	{
		document.write("<!"+"--");
	}
}
function rW()
{
	if(isW)
	{
		document.write("<!"+"--");
	}
}

function changeFontSize(size)
{
	var oAC = window.document.getElementById('ArticleContent');
	oAC.style.fontSize = size + 'px';
	var iLen = oAC.children.length;
	var oElem;
	for (var i = 0; i < iLen; i++)
	{
		oElem = oAC.children[i];
		try { oElem.style.fontSize = size + 'px'; }
		catch(e) { continue; }
	}
}
String.prototype.trim = function()
{
    return this.replace(/(^\s*)|(\s*$)/g, "");

}
String.prototype.nohtml = function()
{
	re = /<(\/\s*)?((\w+:)?\w+)(\w+(\s*=\s*((["'])(\\["'tbnr]|[^\7])*?\7|\w+)|.{0})|\s)*?(\/\s*)?>/ig
	return this.replace(/<(\/\s*)?((\w+:)?\w+)(\w+(\s*=\s*((["'])(\\["'tbnr]|[^\7])*?\7|\w+)|.{0})|\s)*?(\/\s*)?>/ig, "")
}
function goTop()
{
	window.scroll(0);
}
function getSerial(target, id, type, selected)
{
	if(id == "" || id == null || target == "" || target == null)
	{
		return;
	}
	document.all.models.src = "/_bentoo/djs/serial.aspx?target=" + target + "&id=" + id + "&type=&" + type + "selected=" + selected;
}
function getModel(target, id, type, selected)
{
	if(id == "" || id == null || target == "" || target == null)
	{
		return;
	}
	document.all.models.src = "/_bentoo/djs/model.aspx?target=" + target + "&id=" + id + "&type=" + type + "selected=" + selected;
}
function getModelAndPrice(target, id)
{
	if(id == "" || id == null || target == "" || target == null)
	{
		return;
	}
	document.all.models.src = "/_bentoo/djs/model.aspx?target=" + target + "&id=" + id + "&price=1&type=0";
}
function initMSB(target, val)
{
	var oSelect = eval(target);
	for(var i = 0; i < oSelect.options.length; i++)
	{
		if(oSelect.options[i].value == val)
		{
			oSelect.options[i].selected = true;
			return;
		}
	}
}
