    function gbcount(message,total,used,remain)
    {
	var max;
	max = total.value;
	if (message.value.length > max) {
	message.value = message.value.substring(0,max);
	used.value = max;
	remain.value = 0;
	alert("留言不能超过 3000 个字!");
	}
	else {
	used.value = message.value.length;
	remain.value = max - used.value;
	}
    }
document.write("<script language=\"JavaScript\" src=\"\/inc\/ubb\/ubbcode.js\"><\/script>");
document.write("<ul style=\"list-style:none; padding-left:5px;\"><li style=\"float:left; cursor:pointer;\"  onmousemove=\"this.style.background='#EEE';\" onmouseout=\"this.style.background='';\"><img onclick=Cbold() src='/inc/ubb/pic/icon_editor_bold.gif'  border='0' title='字体加粗'></li><li style=\"float:left; cursor:pointer; padding-left:2px;\" onmousemove=\"this.style.background='#EEE';\" onmouseout=\"this.style.background='';\"><img onclick=Citalic() src='/inc/ubb/pic/icon_editor_italicize.gif' border='0' title='字体斜体'></li><li style=\"float:left; cursor:pointer; padding-left:2px;\" onmousemove=\"this.style.background='#EEE';\" onmouseout=\"this.style.background='';\"><img onclick=Cunder() src='/inc/ubb/pic/icon_editor_underline.gif' border='0' title='字体下划线' ></li><li style=\"float:left; cursor:pointer; padding-left:2px;\" onmousemove=\"this.style.background='#EEE';\" onmouseout=\"this.style.background='';\"><img onclick=Cleft() src='/inc/ubb/pic/icon_editor_left.gif' border='0' title='独行居左'></li><li style=\"float:left; cursor:pointer; padding-left:2px;\" onmousemove=\"this.style.background='#EEE';\" onmouseout=\"this.style.background='';\"><img onclick=Ccenter() src='/inc/ubb/pic/icon_editor_center.gif' border='0' title='独行居中'></li><li style=\"float:left; cursor:pointer; padding-left:2px;\" onmousemove=\"this.style.background='#EEE';\" onmouseout=\"this.style.background='';\"><img onclick=Cright() src='/inc/ubb/pic/icon_editor_right.gif' border='0' title='独行据右'></li><li style=\"float:left; cursor:pointer; padding-left:2px;\" onmousemove=\"this.style.background='#EEE';\" onmouseout=\"this.style.background='';\"><img onclick=Cimage() src='/inc/ubb/pic/icon_editor_image.gif' border='0' title='帖图(图片独立一行)'></li><li style=\"float:left; cursor:pointer; padding-left:2px;\" onmousemove=\"this.style.background='#EEE';\" onmouseout=\"this.style.background='';\"><img onclick=Cquote() src='/inc/ubb/pic/icon_editor_quote.gif' border='0' title='引用或帖代码'></li><li style=\"float:left; padding-left:2px;\"><SELECT onchange=\"if(this.options[this.selectedIndex].value!=''){showcolor(this.options[this.selectedIndex].value);this.options[0].selected=true;}else {this.selectedIndex=0;}\" name=color selected><option>颜色</option><option style=\"background-color:#ff0000;color: #ff0000\" value=\"#ff0000\">红色</option><option style=\"background-color:#009900;color: #009900\" value=\"#009900\">绿色</option><option style=\"background-color:#ffff00;color: #ffff00\" value=\"#ffff00\">黄色</option><option style=\"background-color:#0000ff;color: #0000ff\" value=\"#0000ff\">蓝色</option><option style=\"background-color:#ff00ff;color: #ff00ff\" value=\"#ff00ff\">粉红</option><option style=\"background-color:#00cccc;color: #00cccc\" value=\"#00cccc\">蓝绿</option><option style=\"background-color:#cccccc;color: #cccccc\" value=\"#cccccc\">灰色</option><option style=\"background-color:#000000;color: #000000\" value=\"#000000\">黑色</option><option style=\"background-color:#FFFFFF;color: #FFFFFF\" value=\"#FFFFFF\">白色</option></SELECT></li><li style=\"float:left; padding-left:2px;\"><SELECT onchange=\"if(this.options[this.selectedIndex].value!=''){showfont(this.options[this.selectedIndex].value);this.options[0].selected=true;}else {this.selectedIndex=0;}\" name=font><option value=\"宋体\" selected>宋体</option><option value=\"楷体_GB2312\">楷体</option><option value=\"黑体\">黑体</option><option value=\"隶书\">隶书</option><OPTION value=Arial>Arial</OPTION><OPTION value=Verdana>Verdana</OPTION></SELECT></li><li style=\"float:left; padding-left:2px;\"><select name=\"size\" onChange=\"if(this.options[this.selectedIndex].value!=''){showsize(this.options[this.selectedIndex].value);this.options[0].selected=true;}else {this.selectedIndex=0;}\"><option selected>字号</option><option value=\"3\">较大</option><option value=\"4\">最大</option></select></li></ul>");

