function chkdiv(divid){
	var chkid=document.getElementById(divid);
	if(chkid != null){return true; }
	else {return false; }
}
if (chkdiv('TE_edit')) {
	var editHtml='<div id="ExtToolbar0"><ul> <select language="javascript" class="TE_TBGen" id="FontSize" onchange="FormatText(\'fontsize\',this[this.selectedIndex].value);">\n	<option class="heading" selected>字号 \n	<option value="1">1 \n	<option value="2">2 \n	<option value="3">3 \n	<option value="4">4 \n	<option value="5">5 \n	<option value="6">6 \n	<option value="7">7</option>\n	</select> \n	<li class="TE_Btn" TITLE="加粗" LANGUAGE="javascript" onclick="FormatText(\'bold\', \'\');ondrag=\'return false;\'" onmouseover=this.className=\'TE_BtnMouseOverUp\'; onmouseout=this.className=\'TE_Btn\'; > \n	<img class="TE_Ico" src="edit/images/bold.gif" /> </li>\n	<li class="TE_Btn" TITLE="斜体" LANGUAGE="javascript" onclick="FormatText(\'italic\', \'\');ondrag=\'return false;\'" onmouseover=this.className=\'TE_BtnMouseOverUp\'; onmouseout=this.className=\'TE_Btn\'; > \n	<img class="TE_Ico" src="edit/images/italic.gif" /> </li>\n	<li class="TE_Btn" TITLE="下划线" LANGUAGE="javascript" onclick="FormatText(\'underline\', \'\');ondrag=\'return false;\'" onmouseover=this.className=\'TE_BtnMouseOverUp\'; onmouseout=this.className=\'TE_Btn\'; > \n	<img class="TE_Ico" src="edit/images/underline.gif" /> </li>\n	<li class="TE_Btn" TITLE="取消格式" LANGUAGE="javascript" onclick="FormatText(\'RemoveFormat\', \'\');ondrag=\'return false;\'" onmouseover=this.className=\'TE_BtnMouseOverUp\'; onmouseout=this.className=\'TE_Btn\'; > \n	<img class="TE_Ico" src="edit/images/removeformat.gif" /> </li>\n	<li class="TE_Btn" TITLE="左对齐" NAME="Justify" LANGUAGE="javascript" onclick="FormatText(\'justifyleft\', \'\');ondrag=\'return false;\'" onmouseover=this.className=\'TE_BtnMouseOverUp\'; onmouseout=this.className=\'TE_Btn\'; > \n	<img class="TE_Ico" src="edit/images/aleft.gif" /> </li>\n	<li class="TE_Btn" TITLE="居中" NAME="Justify" LANGUAGE="javascript" onclick="FormatText(\'justifycenter\', \'\');ondrag=\'return false;\'" onmouseover=this.className=\'TE_BtnMouseOverUp\'; onmouseout=this.className=\'TE_Btn\'; > \n	<img class="TE_Ico" src="edit/images/center.gif" /> </li>\n	<li class="TE_Btn" TITLE="右对齐" NAME="Justify" LANGUAGE="javascript" onclick="FormatText(\'justifyright\', \'\');ondrag=\'return false;\'" onmouseover=this.className=\'TE_BtnMouseOverUp\'; onmouseout=this.className=\'TE_Btn\'; > \n	<img class="TE_Ico" src="edit/images/aright.gif" /> </li>\n	<li class="TE_Btn" TITLE="插入表情" LANGUAGE="javascript" onclick="TE_foremot()" onmouseover=this.className=\'TE_BtnMouseOverUp\'; onmouseout=this.className=\'TE_Btn\'; > \n	<img class="TE_Ico" src="edit/images/smiley.gif" /> </li>\n	<li class="TE_Btn" TITLE="插入图片" LANGUAGE="javascript" onclick="TE_UserDialog(\'InsertImage\');ondrag=\'return false;\'" onmouseover=this.className=\'TE_BtnMouseOverUp\'; onmouseout=this.className=\'TE_Btn\';> \n	<img class="TE_Ico" src="edit/images/img.gif" /> </li>\n	<li class="TE_Btn" TITLE="插入表格" LANGUAGE="javascript" onclick="TE_fortable();ondrag=\'return false;\'" onmouseover=this.className=\'TE_BtnMouseOverUp\'; onmouseout=this.className=\'TE_Btn\';> \n	<img class="TE_Ico" src="edit/images/table.gif" /> </li>\n	<li id="forecolor" name=forecolor class="TE_Btn" TITLE="字体颜色" LANGUAGE="javascript" onclick="TE_foreColor();" onmouseover=this.className=\'TE_BtnMouseOverUp\'; onmouseout=this.className=\'TE_Btn\'; > \n	<img class="TE_Ico" src="edit/images/fgcolor.gif" /> </li>\n	<li id="backcolor" class="TE_Btn" TITLE="字体背景颜色" LANGUAGE="javascript" onclick="TE_backColor();ondrag=\'return false;\'" onmouseover=this.className=\'TE_BtnMouseOverUp\'; onmouseout=this.className=\'TE_Btn\';> \n	<img class="TE_Ico" src="edit/images/fbcolor.gif" /> </li>\n	<li class="TE_Btn" TITLE="插入超级链接" LANGUAGE="javascript" onclick="TE_forlink();ondrag=\'return false;\'" onmouseover=this.className=\'TE_BtnMouseOverUp\'; onmouseout=this.className=\'TE_Btn\'; > \n	<img class="TE_Ico" src="edit/images/wlink.gif" /> </li>\n	<li class="TE_Btn" TITLE="去掉超级链接" LANGUAGE="javascript" onclick="FormatText(\'Unlink\');ondrag=\'return false;\'" onmouseover=this.className=\'TE_BtnMouseOverUp\'; onmouseout=this.className=\'TE_Btn\'; > \n	<img class="TE_Ico" src="edit/images/unlink.gif" /> </li>\n		<li class="TE_Btn" TITLE="清理代码" LANGUAGE="javascript" onclick="TE_CleanCode();ondrag=\'return false;\'" onmouseover=this.className=\'TE_BtnMouseOverUp\'; onmouseout=this.className=\'TE_Btn\';> \n	<img class="TE_Ico" src="edit/images/cleancode.gif" /></li>\n					</ul>\n	<ul style="height:100%" id="PostiFrame"></ul>\n    </div>\n<div id="ExtToolbar1"></div>\n<div id="ExtToolbar2"></div>\n <iframe class="TE_Composition" ID="TE_Composition" MARGINHEIGHT="5" MARGINWIDTH="5" width="100%" height="150px"></iframe>\n ';
	editHtml+='<table cellpadding="0" cellspscing="0" border="0" width="100%">\n<tr>\n<td class="TE_TabOn" id="TE_TabDesign" style="cursor: pointer;" width="99" >\n		<img alt="" unselectable="on" src="edit/images/design.gif" align="absmiddle" width="0" height="0">&nbsp;\n	</td>\n		<td class="TE_TabOff" id="TE_TabHtml" width="70" style="cursor: pointer;">\n		<img unselectable="on" src="edit/images/html.gif" align="absmiddle" width="0" height="0">&nbsp;</td>\n<td class="TE_TabOff" unselectable="on" width="83" >\n		<ul style="text-align:right;"><a href="javascript:TE_Size(-150)"><img src="edit/images/minus.gif" border=\'0\' height="20" /></a> <a href="javascript:TE_Size(150)"><img src="edit/images/plus.gif"  border=\'0\' height="20" /></a>\n	<li style="width:10px;"></li>\n	</ul></td>\n</tr>\n</table>';
	document.getElementById('TE_edit').innerHTML=editHtml;
}