<!--<?php
print <<<EOT
-->
<style type="text/css">
#icontab img{padding:5px;cursor:pointer}
.iconhover{background:$tdcolor}
.editor-mwidth{margin:0 auto;width:98%; max-width:1240px}
#editor-side{width:200px;position:absolute;margin-top:22px;}
#editor-main{padding-left:205px;min-width:540px;}
/*提示*/
.angle{position:absolute;border-left:5px transparent solid;_border-left:5px $forumcolortwo solid;border-top:5px $tablecolor solid;border-right:5px transparent solid;_border-right:5px $forumcolortwo solid;border-bottom:0;display:block;width:0;height:0;overflow:hidden;bottom:-5px;right:13px;}
.p-cloes{cursor:pointer;position:absolute;top:8px;width:16px;height:16px;}
.p-sitemsg{display:block;text-indent:-2000em;height:18px;width:18px;background:url($imgpath/sitemsg.gif);cursor:pointer;margin-right:15px;}
.sitemsg{position:absolute;right:5px;_right:15px;bottom:6px;_bottom:40px;padding:5px 8px;border:1px solid $tablecolor;background:$bgcolor;}
</style>
<div class="bdbA">
	<div id="breadcrumbs">
		$msg_guide</span>
	</div>
</div>
<div style="margin-top:8px;"></div>
<!--
EOT;
if($action=='modify' && ($winduid == $authorid || $groupid == 3 || $groupid == 4)){print <<<EOT
-->
<form method="post" name="form" action="post.php?">
<div class="t5"><table cellpadding="0" cellspacing="0" width="100%">
	<tr><th class="h"><b>修改文章</b></th></tr>
	<tr class="tr3 f_one"><th>删除帖子(此操作不可恢复，请慎重使用！)</th></tr>
	<tr class="tr3 f_one"><th style="border-bottom:0px;">
		<span class="fr" style="padding-right:12px; padding-bottom:5px">
<!--
EOT;
if(($db_gdcheck & 4) && $winddb['postnum'] < $db_postgd){print <<<EOT
-->
		
		<input class="input" type="text" name="gdcode" size="5" onfocus="try{opencode('menu_gd',this)}catch(e){}" /><span style="cursor:pointer; margin-left:3px" onclick="this.previousSibling.focus();">点此显示验证码</span>
		<div class="menu" id="menu_gd1" style="visibility:hidden;"><img src="ck.php?" align="absmiddle" style="cursor:pointer;" id="ckcode" alt="看不清楚，换一张" /></div>
<!--
EOT;
}print <<<EOT
-->
		<input class="bt" type="submit" value="直接删除" /></span>
		<font color=red>注意:</font> 如果这个帖子是主题内的第一个帖子且已有人回复此帖，需拥有管理权限才能删除。
		</th>
	</tr>
</table></div>
<input type="hidden" value="1" name="step" />
<input type="hidden" value="$action" name="action" />
<input type="hidden" value="$fid" name="fid" />
<input type="hidden" value="$tid" name="tid" />
<input type="hidden" value="$pid" name="pid" />
<input type="hidden" value="$article" name="article" />
<input type="hidden" name="verify" value="$verifyhash" />
</form>
<!--
EOT;
}if ($db_allowupload && $_G['allowupload'] || $attach) {print <<<EOT
-->
<table cellPadding="0" cellSpacing="0" style="display:none">
	<tbody id="att_mode"><tr><td><input class="input" type="text" name="atc_desc" size="20" /></td>
		<td><input class="input" type="file" name="attachment_" size="20" /></td>
		<td><select name="att_special" onchange="newAtt.sel(this);" style="width:60px;"><option value="0"></option><option value="1">加密</option><option value="2">出售</option></select></td>
		<td><select name="att_ctype" style="width:60px;">{$alltype}</select></td>
		<td><input class="input" type="text" name="atc_needrvrc" value="0" size="1" /></td>
		<td></td></tr>
	</tbody>
</table>
<script language="JavaScript">
var allowmutinum = 15;
var allow_ext = '$uploadfiletype';
var attachnum = parseInt('$db_attachnum');
</script>
<script type="text/javascript" language="JavaScript" src="js/upload.js"></script>
<!--
EOT;
}print <<<EOT
-->
<form method="post" name="FORM" action="post.php?" enctype = "multipart/form-data" onsubmit="return checkpost(document.FORM);">
<input type="hidden" value="$magicname" name="magicname"/>
<input type="hidden" value="$magicid" name="magicid"/>
<input type="hidden" name="verify" value="$verifyhash" />
<div class="t f_one"  style="min-width:760px;"><table cellPadding="0" cellSpacing="0" align="center">
	<tr><th class="h"><span class="fr"><a href="profile.php?action=forumright&fid=$fid" title="查看您在本版块的权限">版块权限查看</a></span><b>发表帖子</b><div class="c" style="width:760px"></div></th></tr>
	<tr class="f_one tal">
		<th></th>
	</tr>
<tr></tr>
</table>
<div class="c" style="width:760px"></div>
<div id="previewmagic" style="position:absolute;z-index:99;display:none;"></div>
<div style="margin:0 auto;width:98%; max-width:1240px;">
	<div style="margin:.5em auto 0 205px; height:30px;">
		<div class="fl input f_one" style="width:540px;" >
<!--
EOT;
$input_w = 480;
if($article == '0' && ($t_per>0 || $admincheck) && $t_exits==1){
!$ptype && $ptype='选择分类';
!$ptypeid && $ptypeid=0;
$input_w = 395;
$db_menuinit .= ",'td_ptype' : 'menu_ptype'";
print <<<EOT
-->
			<span class="fr gray" style="padding:0 0 0 .4em;">
				<select name="p_type" style="width:75px"><option value="">分类</option>
<!--
EOT;
foreach ($t_typedb as $key => $value) {
if ($value) {
$selected = $ptype == $value ? 'selected' : '';
print <<<EOT
-->
					<option value="$key" $selected>$value</option>
<!--
EOT;
}}print <<<EOT
-->
				</select>
			</span>
<!--
EOT;
}elseif(($action == "reply" || $action == "quote") && $tpcarray['special'] == 5){
$input_w = 395;
print <<<EOT
-->
			<span class="fr gray" style="padding:0 0 0 .4em;">
				<select name="standpoint" style="width:75px">
<!--
EOT;
if($debatestand != 2){
print <<<EOT
-->
		<option value="1" $debate_1>正方观点</option>

<!--
EOT;
}if($debatestand != 1){
print <<<EOT
-->
		<option value="2" $debate_2>反方观点</option>
<!--
EOT;
}print <<<EOT
-->
		<option value="0" $debate_0>闲聊一下</option>
				</select>
			</span>
<!--
EOT;
}print <<<EOT
-->
			<span id="icon_button" onclick="show_icontab()" style="cursor:pointer;padding-left:3px">
				<img align="absmiddle" src="$imgpath/post/emotion/$icon.gif" />
			</span>
			<img style="cursor:pointer;padding:3px" onclick="show_icontab()" align="absmiddle" src="$imgpath/$stylepath/menu-down.gif" />
			<input style="border:0;font-size:14px; font-family:Tahoma;width:{$input_w}px;" onkeydown="if(icontab==0){show_icontab()}" onFocus="if(icontab==0){show_icontab();}" onBlur="if(icontab==0 || icontab==1){show_icontab();}" name="atc_title" value="$atc_title" tabindex="1" title="请输入标题" />
		</div>
	</div>
	<div class="c"></div>
	<div id="icontab" onmouseover="if(icontab==1)icontab=2;" onmouseout="if(icontab==2)icontab=1;" style="position:absolute;margin-top:-60px; margin-left:205px;display:none">
		<input type="hidden" id="atc_iconid" name="atc_iconid" value="$icon" />
		<div class="t5 fl f_two">
			<img onmouseover="this.className='iconhover'" onmouseout="this.className=''" onclick="seticonid('0')" align="absmiddle" src="$imgpath/post/emotion/0.gif" />
<!--
EOT;
foreach ($icondb as $key => $value) {print <<<EOT
-->
			<img onmouseover="this.className='iconhover'" onmouseout="this.className=''" onclick="seticonid('$key','$value')" align="absmiddle" src="$imgpath/post/emotion/$value" />
<!--
EOT;
}print <<<EOT
-->
		</div>
	</div>
<script language="javascript">var stylepath = '$stylepath';</script>
	<div class="c"></div>
<!--
EOT;
$special && require_once PrintEot('post_special');
print <<<EOT
-->
	<div class="c"></div>
	<div id="editor-side" style="z-index:1000">
		<div style="text-align:center;width:195px;">
			<fieldset id="smiliebox" style="border:1px solid $tdcolor; background:$forumcolorone">
				<legend>表情</legend>
				<div id="menu_show"></div>
				<span style="float:right; margin:3px 10px 5px;"><a id="td_face" style="cursor:pointer;" onClick="showDefault();" align="absmiddle" unselectable="on">[更多]</a></span><span style="float:left; margin:3px 10px 5px;"><a id="td_generalface" style="cursor:pointer;" onClick="showGeneral();" align="absmiddle">[个性表情]</a></span>
			</fieldset>
		</div>
		<div id="menu_face" class="menu" style="display:none;"></div>
		<div id="menu_generalface" class="menu" style="display:none;"></div>
<!--
EOT;
if($db_windmagic && ($action=='new' || ($action=='modify' && $pid=='tpc'))){
print <<<EOT
-->
<style>
.lhcl_slideImage{width:50px;height:50px;cursor:pointer;border:1px solid #fff;}
.lhcl_selectBox{width:50px;height:50px;cursor:pointer;border:1px solid #009eff;}
</style>
<br />
		<div style="text-align:center; width:195px;">
			<fieldset id="magicsmiliebox" style="border:1px solid $tdcolor; background:$forumcolorone">
				<legend>动漫传情</legend>
				<div id="menu_magicshow"></div>
				<div style="margin: 5px 0 5px 0;text-align:center;">
					<input class="bt" type="Button" value="预 览" onclick="previewMagic()"/> <input class="btn" id="bts" type="button" value="使 用" onclick="setMagic(this.id)" />
					<input class="btn" id="btc" type="button" value="取 消" onclick="setMagic(this.id)" style="display:none" />
					<span id="td_magicsmile" style="cursor:pointer;" onClick="showMagicDefault()" align="absmiddle" unselectable="on">[更多]</span>
				</div>
			</fieldset>
		</div>
		<div id="menu_magicsmile" class="menu" style="display:none;"></div>
<!--
EOT;
}print <<<EOT
-->
	</div>
	<div id="editor-main">
		<div>
<!--
EOT;
require_once PrintEot('wysiwyg_editor');print <<<EOT
-->
		</div>
	</div>
</div>
<div class="c"></div>
<div style="margin:auto;padding:0 0 .8em"></div>
<div class="c"></div>
<!--
EOT;
if(R_P!=D_P){
$facedb = readover(D_P.'data/bbscache/face.js');
print <<<EOT
-->
<script language="javascript">
{$facedb}
</script>
<!--
EOT;
}else{print <<<EOT
-->
<script language="JavaScript" src="data/bbscache/face.js"></script>
<!--
EOT;
}print <<<EOT
-->
<table cellPadding="0" cellSpacing="0" align="center">
	<tr class="tr3">
		<th id="post-option" colspan="2">
			<div class="editor-mwidth">
				<div style="margin-left:200px">
<style>#post-option span{width:33%; float:left}</style>
<!--
EOT;
if($isGM || $_G['htmlcode']){print <<<EOT
-->
					<span><input type="checkbox" name="atc_html" id="atc_html" value="1" $htmcheck /><font face="verdana">使用HTML代码</font></span>
<!--
EOT;
}print <<<EOT
-->
					<span><input type="checkbox" name="atc_autourl" value="1" checked />自动分析url</span>
					<span><input type="checkbox" name="atc_usesign" value="1" checked />使用签名</span>
					<span><input type="checkbox" name="atc_convert" id="atc_convert" value="1" checked />Wind Code自动转换</span>
<script language="JavaScript">editor.init();</script>
<!--
EOT;
if($db_replysendmail && $action=='new'){print <<<EOT
-->
					<span><input name="atc_email" type="checkbox"  value="1" />新回复邮件通知</span>
<!--
EOT;
}if($db_replysitemail){print <<<EOT
-->
					<span><input name="atc_newrp" type="checkbox"  value="1" $ifmailck />新回复站内通知</span>
<!--
EOT;
}print <<<EOT
-->
					<span><input type="checkbox" name="atc_anonymous" value="1" $ifanonymous />匿名帖</span>
					<span><input type="checkbox" name="atc_hide" value="1" $htmlpost />隐藏此帖(回复可见)</span>
<!--
EOT;
if(($action=='new' || $action=='vote') && ($isGM || pwRights($isBM,'typeadmin'))){print <<<EOT
-->
					<span><input name="digest" type="radio" value="0" checked />普通帖<input name="digest" type="radio" value="1" />精华1<input name="digest" type="radio" value="2" />精华2</span>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
if ($db_topped ==1 && $action == 'new'){
	if ($isGM || pwRights($isBM,'topped') == 3) {print <<<EOT
-->
	<span><input name="topped" type="radio" value="0" checked />普通帖<input name="topped" type="radio" value="1" />置顶1<input name="topped" type="radio" value="2" />置顶2<input name="topped" type="radio" value="3" />置顶3</span>
<!--
EOT;
	}elseif(pwRights($isBM,'topped') == 2) {print <<<EOT
-->
	<span><input name="topped" type="radio" value="0" checked />普通帖<input name="topped" type="radio" value="1" />置顶1<input name="topped" type="radio" value="2" />置顶2</span>
<!--
EOT;
	}elseif(pwRights($isBM,'topped') == 1) {print <<<EOT
-->
	<span><input name="topped" type="radio" value="0" checked />普通帖<input name="topped" type="radio" value="1" />置顶1</span>
<!--
EOT;
	}
}print <<<EOT
-->
				</div>
			</div>
		</th>
	</tr>
	<tr class="tr3">
		<th colspan="2">
			<div class="editor-mwidth">
				<div style="margin-left:200px;">
					<div>
						<input type="checkbox" name="atc_requireenhide" id="atc_requireenhide" value="1" $htmlhide />加密此帖，会员拥有
						<input class="input" maxlength="6" size="6" name="atc_rvrc" value="0" />
						<select name="atc_enhidetype" id="attmode_1">$enhidetype</select> 以上才能看到帖子内容.
					</div>
					<div>
						<input type="checkbox" name="atc_requiresell" id="atc_requiresell" value="1" $htmlsell />出售此帖，会员需付
						<input class="input" maxlength="6" size="6" name="atc_money" value="0" />
						<select name="atc_credittype" id="attmode_2">$selltype</select> 才能看到帖子内容.(不能大于:<font color="blue">{$db_sellset[price]}</font>)
					</div>
				</div>
			</div>
		</th>
	</tr>
<!--
EOT;
if($db_iftag && ($action=='new' || $action=='modify' && $pid=='tpc')){print <<<EOT
-->
<script type="text/javascript" language="JavaScript" src="js/pw_tags.js"></script>
	<tr class="tr3">
		<th colspan="2"><div class="editor-mwidth"><div style="margin-left:200px">标签(TAG):<br><input id="atc_tags" class="input" name="atc_tags" size="40" value="$tags" tabindex="3" style="font:14px Tahoma;padding-left:2px" autocomplete="off" onfocus="tag.init();" /> <input type="button" class="bt" value="自动提取" onclick="tag.get()" /> <a style="cursor:help" class="gray" title="标签是您给您的文章指定的关键字，设置适当的标签能便于他人快速的找到您的文章">什么是标签？</a><br />
		<fieldset id="tagmenu" style="border:1px solid $tdcolor;width:500px;padding:3px;margin:2px 0;display:none;"><legend>热门标签</legend><div style="height:80px;overflow-Y:auto;"></div></fieldset></div></div></th>
	</tr>
<!--
EOT;
}if($attach){print <<<EOT
-->
	<tr class="tr3">
		<th colspan="2">
			<div class="editor-mwidth">
				<div style="margin-left:200px">该帖包含附件<span class="gray">(不想保留的附件去掉√)</span> :
					<table style="margin-top:10px;">
						<tr>
							<td width="3%"></td>
							<td width="25%">描述</td>
							<td>附件</td>
							<td width="10%">售/密</td>
							<td width="10%">积分</td>
							<td width="8%">价格</td>
							<td width="18%"></td>
						</tr>
						<tbody id="ajaxtable"></tbody>
					</table>
<script language="JavaScript">
var attachs = {{$attach}};
oldAtt.init();
</script>
				</div>
			</div>
		</th>
	</tr>
<!--
EOT;
}if($isGM || $db_allowupload && $_G['allowupload']){print <<<EOT
-->
	<tr class="tr3">
		<th colspan="2">
			<div class="editor-mwidth">
				<div style="margin-left:205px;margin-top:5px;">附件
					<input type="checkbox" name="atc_hideatt" value="1" $htmlatt /> 隐藏附件<span class="gray">(回复后可见)</span>
<!--
EOT;
if ($mutiupload > 0) {print <<<EOT
-->
					<span id="mutiinfo">您现在有 <b>{$mutiupload}</b> 个已经上传的附件 <a href="javascript:void(0);" class="bt2" onclick="flashAtt.use();">使用</a> <a href="javascript:void(0);" class="bt2" onclick="flashAtt.clear();" title="删除所有已经上传的附件">清空</a></span>
<!--
EOT;
}print <<<EOT
-->
					<a href="javascript:void(0);" class="btn" onclick="flashAtt.init();">批量上传</a><br />
					<table style="margin-top:10px;">
						<tr>
							<td width="25%">描述</td>
							<td>附件</td>
							<td width="10%">售/密</td>
							<td width="10%">积分</td>
							<td width="8%">价格</td>
							<td width="18%"></td>
						</tr>
						<tbody id="attach"></tbody>
					</table>
					<div id="viewimg" class="menu" style="display:none;"></div>
					<div id="attsize" class="gray" style="margin-top:10px">有效文件类型:$uploadfilesize</div>
				</div>
			</div>
		</th>
	</tr>
<script language="JavaScript">
var mutiupload = '$mutiupload';
newAtt.create();
</script>
<!--
EOT;
}if(($db_gdcheck & 4 && $winddb['postnum'] < $db_postgd) || $winddb['postnum'] < $postq && $db_question){
print <<<EOT
-->
	<tr class="tr3">
		<th colspan="2">
			<div class="editor-mwidth">
				<div style="margin-left:200px;">
<!--
EOT;
if(($db_gdcheck & 4) && $winddb['postnum'] < $db_postgd){print <<<EOT
-->
					<div class="fl tac" style="padding:6px;width:275px;">
						<fieldset id="smiliebox" style="border:1px solid $tdcolor;height:45px">
							<legend>认证码</legend>
							<input class="input" type="text" name="gdcode" size="8" tabindex="2" onfocus="try{opencode('menu_gd',this)}catch(e){}" />
							<span style="cursor:pointer; margin-left:3px" onclick="this.previousSibling.focus();">点此显示验证码</span>
							<div class="menu" id="menu_gd" style="visibility:hidden;"><img src="ck.php?" align="absmiddle" style="cursor:pointer;" id="ckcode" alt="看不清楚，换一张" /></div>
						</fieldset>
					</div>
<!--
EOT;
}if($winddb['postnum'] < $postq && $db_question){
$qkey = array_rand($db_question);
print <<<EOT
-->
					<div class="fl tac" style="padding:6px;width:272px;">
						<fieldset id="smiliebox" style="border:1px solid $tdcolor;height:45px">
							<legend>验证问题</legend>{$db_question[$qkey]} &nbsp;
							<input class="input" type="text" name="qanswer" />
							<input type="hidden" name="qkey" value="$qkey" />
						</fieldset>
					</div>
<!--
EOT;
}print <<<EOT
-->
				</div>
			</div>
		</th>
	</tr>
<!--
EOT;
}print <<<EOT
-->
	<tr><td>
		<div style="margin: 15px 0 15px 0;text-align:center;">
			<input class="btn" type="submit" value="提 交" name="Submit" tabindex="4" /><input class="bt" type="button" value="预 览" name="Button" onclick="gopreview();" />
		</div>
	</td>
	<td>
		<div style="position:relative;">
<!--
EOT;
if($db_sitemsg['post']['0'] && $action == 'new'){
print<<<EOT
-->
			<a class="fr p-sitemsg" onclick="showsitemsg();" title="提示信息">提示信息</a>
			<span id="sitemsg" class="sitemsg" style="display:none" onmouseout="showsitemsg();">
			<b class="angle"></b>{$db_sitemsg[post][array_rand($db_sitemsg[post])]}
			</span>
<script language="JavaScript">
function showsitemsg() {
	if (getObj('sitemsg').style.display == "") {
		getObj('sitemsg').style.display = "none";
	} else {
		getObj('sitemsg').style.display = "";
	}
}
setTimeout('showsitemsg();',1500);
</script>
<!--
EOT;
}elseif($db_sitemsg['reply']['0'] && $action == 'reply'){
print<<<EOT
-->
			<a class="fr p-sitemsg" onclick="showsitemsg();" title="提示信息">提示信息</a>
			<span id="sitemsg" class="sitemsg" style="display:none" onmouseout="showsitemsg();">
			<b class="angle"></b>{$db_sitemsg[reply][array_rand($db_sitemsg[reply])]}
			</span>
<script language="JavaScript">
function showsitemsg() {
	if (getObj('sitemsg').style.display == "") {
		getObj('sitemsg').style.display = "none";
	} else {
		getObj('sitemsg').style.display = "";
	}
}
setTimeout('showsitemsg();',1500);
</script>
<!--
EOT;
}print<<<EOT
-->	
		</div>
	</td>
	</tr>
</table></div>
<input type="hidden" value="2" name="step" />
<input type="hidden" value="$pid" name="pid" />
<input type="hidden" value="$action" name="action" />
<input type="hidden" value="$fid" name="fid" />
<input type="hidden" value="$tid" name="tid" />
<input type="hidden" value="$article" name="article" />
<input type="hidden" value="$special" name="special" />
<!--
EOT;
if($action == 'reply' || $action == 'modify' || $action == 'quote'){print <<<EOT
-->
<script language="JavaScript">setTimeout("editor.gotoEnd();",50);</script>
<!--
EOT;
}else{print <<<EOT
-->
<script language="JavaScript">setTimeout("document.FORM.atc_title.focus()",50);</script>
<!--
EOT;
}if($special=='2' || $special=='5'){ print <<<EOT
-->
<script language="JavaScript" src="js/date.js"></script>
<!--
EOT;
}print <<<EOT
-->
</form>
<form name="preview" action="job.php?action=preview" method="post" target="preview_page">
	<input type="hidden" name="atc_content" value="" />
</form>
<script language="JavaScript" src="js/pw_dialog.js"></script>
<script language="JavaScript">
var icontab=0;
function show_icontab() {
	if (icontab <= 0) {
		getObj('icontab').style.display = '';
		icontab = 1;
	} else {
		getObj('icontab').style.display = 'none';
		icontab = 0;
	}
}
function seticonid(iconid,iconurl) {
	getObj('atc_iconid').value=iconid;
	getObj('icontab').style.display='none';
	icontab = -1;
	if (iconid != 0) {
		getObj('icon_button').innerHTML = '<img align="absmiddle" src="$imgpath/post/emotion/'+iconurl+'" />';
	} else {
		getObj('icon_button').innerHTML = '';
	}
}
function set_ptype(id,ptype) {
	getObj('td_ptype').innerHTML = ptype + '<img align="absmiddle" src="$imgpath/$stylepath/menu-down.gif" />';
	getObj('p_type').value = id;
	closep();
}
var cate = '$db_forcetype'; //是否强制分类，开启设为1，关闭设为0；
var cnt  = 0;
document.FORM.Submit.disabled = false;

function checkpost(obj) {
	if (obj.p_type != null && obj.p_type.value==0 && cate==1) {
		showDialog("error","没有选择主题分类");
		obj.atc_title.focus();
		return false;
	}
	if (obj.atc_title.value == "") {
		showDialog("error","标题不能为空");
		obj.atc_title.focus();
		return false;
	} else if (strlen(obj.atc_title.value) > $db_titlemax) {
		showDialog("error","标题超过最大长度 $db_titlemax 个字节");
		obj.atc_title.focus();
		return false;
	}
	if (strlen(obj.atc_content.value) < $db_postmin) {
		showDialog("error","文章内容少于 $db_postmin 个字节");
		editor.focusEditor();
		return false;
	} else if (strlen(obj.atc_content.value) > $db_postmax) {
		showDialog("error","文章内容大于 $db_postmax 个字节");
		editor.focusEditor();
		return false;
	}
	document.FORM.Submit.disabled = true;
	cnt++;
	if (cnt != 1) {
		showDialog("warning","Submission Processing. Please Wait");
		return false;
	}
	return true;
}
function gopreview() {
	editor.setMode();
	document.preview.atc_content.value=document.FORM.atc_content.value;
	document.preview.submit();
}
</script>

<script language="JavaScript" src="js/post.js"></script>
<!--
EOT;
if($db_windmagic && ($action=='new' || ($action=='modify' && $pid=='tpc'))){print <<<EOT
-->
<script language="javascript">var mDef = { $mDef };</script>
<script type="text/javascript" src="js/magic.js"></script>
<!--
EOT;
}if($action=="reply" || $action=="quote"){print <<<EOT
-->
<br /><center>主题回顾</center>
$post_reply
<!--
EOT;
}print <<<EOT
-->
<br />
<!--
EOT;
?>-->