<%
sub LatticeEditor(str)
response.write"  <table border=""0"" cellpadding=""2"" cellspacing=""0"" bgcolor=""menu"" width=""100%"">"
response.write"    <tr>"
response.write"      <td>"
response.write"        <table border=""0"" cellpadding=""0"" cellspacing=""0"" bgcolor=""menu"" id=""toolbar"" width=""100%"">"
response.write"         "
response.write"    <tr id=""toolrow2"">"
response.write"      <td>"
response.write"              <table border=""0"" cellspacing=""0""  cellpadding=""0"">"
response.write"                <tr> "
response.write"                  <td id=""cell_btn_save"" valign=""middle"" align=""center"" ><i><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_save"" name = ""btn_save"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_save.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""保存文件""></i></td>"
response.write"                  <td id=""cell_btn_cut"" valign=""middle"" align=""center"" ><i><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_cut"" name = ""btn_cut"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_cut.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""剪切""></i></td>"
response.write"                  <td id=""cell_btn_copy"" valign=""middle"" align=""center"" ><i><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_copy"" name = ""btn_copy"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_copy.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""复制""></i></td>"
response.write"                  <td id=""cell_btn_paste"" valign=""middle"" align=""center"" ><i><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_paste"" name = ""btn_paste"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_paste.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""粘贴""></i></td>"
response.write"                  <td id=""cell_btn_find"" valign=""middle"" align=""center"" ><i><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_find"" name = ""btn_find"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_find.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""查找""></i></td>"
response.write"                  <td id=""cell_btn_undo"" valign=""middle"" align=""center"" ><i><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_undo"" name = ""btn_undo"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_undo.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""撤消""></i></td>"
response.write"                  <td id=""cell_btn_redo"" valign=""middle"" align=""center"" ><i><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_redo"" name = ""btn_redo"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_redo.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""恢复""></i></td>"
response.write"                  <td id=""cell_btn_table"" valign=""middle"" align=""center"" ><i><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_table"" name = ""btn_table"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_table.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""插入表格""></i></td>"
response.write"                  <td id=""cell_btn_image"" valign=""middle"" align=""center"" ><i><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_image"" name = ""btn_image"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_image.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""插入图像""></i></td>"
response.write"                  <td id=""cell_btn_hyperlink"" valign=""middle"" align=""center"" ><i><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_hyperlink"" name = ""btn_hyperlink"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_hyperlink.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""建立超链接""></i></td>"
response.write"                  <td id=""cell_btn_unlink"" valign=""middle"" align=""center"" ><i><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_unlink"" name = ""btn_unlink"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_unlink.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""移除超链接""></i></td>"
response.write"                  <td id=""cell_btn_hr"" valign=""middle"" align=""center"" ><i><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_hr"" name = ""btn_hr"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_hr.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""插入水平线""></i></td>"
response.write"                  <td id=""cell_btn_html"" valign=""middle"" align=""center"" ><i><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_html"" name = ""btn_html"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_html.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""编辑HTML代码""></i></td>"
response.write"                  <td id=""cell_btn_special"" valign=""middle"" align=""center"" ><i><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_special"" name = ""btn_special"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_special.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""插入特殊字符""></i></td>"
response.write"                  <td id=""cell_btn_help"" valign=""middle"" align=""center"" ><i><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_help"" name = ""btn_help"" src=""../latticeeditor/btn_help.gif"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""帮助""></i></td>"
response.write"				  <td id=""cell_btn_about"" valign=""middle"" align=""center"" ><i><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_about"" name = ""btn_about"" src=""../latticeeditor/btn_about.gif"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""关于系统""></i></td>"
response.write"                  <td id=""cell_btn_about"" valign=""middle"" align=""center"" >&nbsp;</td>"
response.write"                </tr>"
response.write"              </table>"
response.write"      </td>"
response.write"    </tr>"
response.write"    <tr id=""toolrow2a"">"
response.write"      <td><img vspace = ""2"" id=""line2"" border=""0"" src=""../latticeeditor/line_divider.gif"" width=""6"" height=""2""></td>"
response.write"    </tr>"
response.write"    <tr id=""toolrow3"">"
response.write"      <td>"
response.write"        <table border=""0"" cellpadding=""0"" cellspacing=""0"" >"
response.write"          <tr>"
response.write"            <td id=""cell_FontNameSelect""><select UNSELECTABLE = ""on""  size=""1"" id = ""FontNameSelect"" name=""FontNameSelect"" style=""width: 130px"" onChange = ""btncommand('FontNameSelect');"" onfocus = ""this.options[0].text='';"">"
response.write"			<option value=""""></option>"
response.write"		  <option value=""宋体"">宋体</option>"
response.write"          <option value=""黑体"">黑体</option>"
response.write"		  <option value=""仿宋_GB2312"">仿宋_GB2312</option>"
response.write"          <option value=""楷体_GB2312"">楷体_GB2312</option>"
response.write"          <option value=""方正行楷简体"">方正行楷简体</option>"
response.write"        </select></td>"
response.write"            <td id=""cell_FontSizeSelect""><select UNSELECTABLE = ""on""  size=""1"" id = ""FontSizeSelect"" name=""FontSizeSelect"" onChange = ""btncommand('FontSizeSelect');"" onfocus = ""this.options[0].text='';"">"
response.write"          <option value=""""></option>"
response.write"          <option value=""1"">1 ( 8pt)</option>"
response.write"          <option value=""2"">2 (10pt)</option>"
response.write"          <option value=""3"" selected>3 (12pt)</option>"
response.write"          <option value=""4 "">4 (14pt)</option>"
response.write"          <option value=""5"">5 (18pt)</option>"
response.write"          <option value=""6"">6 (24pt)</option>"
response.write"          <option value=""7"">7 (36pt)</option>"
response.write"        </select></td>"
response.write"            <td id=""cell_btn_bold""><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_bold"" name = ""btn_bold"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_bold.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""粗体""></td>"
response.write"            <td id=""cell_btn_italics""><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_italics"" name = ""btn_italics"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_italics.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""斜体""></td>"
response.write"            <td id=""cell_btn_underline""><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_underline"" name = ""btn_underline"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_underline.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""下划线""></td>"
response.write"            <td id=""cell_btn_fontcolor""><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_fontcolor"" name = ""btn_fontcolor"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_fontcolor.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""字体颜色""></td>"
response.write"            <td id=""cell_btn_fonthilight""><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_fonthilight"" name = ""btn_fonthilight"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_highlight.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""突出显示颜色""></td>"
response.write"            <td id=""cell_btn_left""><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_left"" name = ""btn_left"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_left.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""左对齐""></td>"
response.write"                  <td id=""cell_btn_center""><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_center"" name = ""btn_center"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_center.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""居中""></td>"
response.write"            <td id=""cell_btn_right""><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_right"" name = ""btn_right"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_right.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""右对齐""></td>"
response.write"          </tr>"
response.write"        </table>"
response.write"      </td>"
response.write"    </tr>"
response.write"    <tr id=""toolrow3a"">"
response.write"      <td><img vspace = ""2"" id=""line3"" border=""0"" src=""../latticeeditor/line_divider.gif"" width=""6"" height=""2""></td>"
response.write"    </tr>"
response.write"    <tr id=""toolrow4"">"
response.write"      <td>"
response.write"  <table border=""0"" cellspacing=""0""  cellpadding=""0"">"
response.write"    <tr>"
response.write"      <td id=""cell_FormatSelect"" valign=""middle"" align=""center"" TITLE=""Style"" ><select size=""1"" id = ""FormatSelect"" name=""FormatSelect"" style=""width: 100px"" onChange = ""btncommand('FormatSelect');"" onfocus = ""this.options[0].text='';"">"
response.write"          <option value="""">无</option>"
response.write"          <option value=""Normal"" selected>Normal</option>"
response.write"          <option value=""已编排格式"">已编排格式</option>"
response.write"          <option value=""地址"">地址</option>"
response.write"          <option value=""标题 1"">标题 1</option>"
response.write"          <option value=""标题 2"">标题 2</option>"
response.write"          <option value=""标题 3"">标题 3</option>"
response.write"          <option value=""标题 4"">标题 4</option>"
response.write"          <option value=""标题 5"">标题 5</option>"
response.write"          <option value=""标题 6"">标题 6</option>"
response.write"          <option value=""带编号的列表"">带编号的列表</option>"
response.write"          <option value=""带项目符号的列表"">带项目符号的列表</option>"
response.write"          <option value=""目录列表"">目录列表</option>"
response.write"          <option value=""菜单列表"">菜单列表</option>"
response.write"          <option value=""术语定义"">术语定义</option>"
response.write"          <option value=""定义"">定义</option>"
response.write"        </select></td>"
response.write"      <td id=""cell_btn_numlist"" valign=""middle"" align=""center"" ><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_numlist"" name = ""btn_numlist"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_numlist.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""编号列表""></td>"
response.write"      <td id=""cell_btn_bltlist"" valign=""middle"" align=""center"" ><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_bltlist"" name = ""btn_bltlist"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_bltlist.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""项目列表""></td>"
response.write"      <td id=""cell_btn_outdent"" valign=""middle"" align=""center"" ><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_outdent"" name = ""btn_outdent"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_outdent.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""减少缩进""></td>"
response.write"      <td id=""cell_btn_indent"" valign=""middle"" align=""center"" ><img border=""0"" UNSELECTABLE = ""on"" id = ""btn_indent"" name = ""btn_indent"" style=""border-left:1px solid menu; border-top:1px solid menu; border-right:1px solid menu; border-bottom:1px solid menu;"" src=""../latticeeditor/btn_indent.gif"" width=""23"" height=""22"" onMouseOver=""changebutton(this.name,2);"" onMouseOut = ""changebutton(this.name,0);"" onMouseDown = ""changebutton(this.name,3);"" onMouseUp = ""btncommand(this.name);"" onDragStart = ""btncommand(this.name);"" alt=""增加缩进""></td>"
response.write"    </tr>"
response.write"  </table>"
response.write"      </td>"
response.write"    </tr>"
response.write"  </table>"
response.write"      </td>"
response.write"    </tr>"
response.write"    <tr>"
response.write"      <td><IFRAME src=""" & str & """ NAME=""LatticeEditDocument"" ID=""LatticeEditDocument"" CONTENTEDITABLE=""true"" width=""100%""></IFRAME>"
response.write"	  <IFRAME src=""about:blank"" NAME=""LatticeTemp"" ID=""LatticeTemp"" CONTENTEDITABLE=""true"" WIDTH=""1"" HEIGHT=""1""></IFRAME></td>"
response.write"    </tr>"
response.write"  </table>"
response.write"<input type=""hidden"" name=""LatticeHTML"">"
'response.write"<input type=""hidden"" name=""Content"">"
end sub
%>