<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <% 
	data_path="../../" 
	numid="51"
	dir="../err.asp" 
  %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" href="/Blue/Blue.css" type="text/css" />
<style type="text/css">
/*评论*/
a:link,a:visited
{ font-size:12px; color:#000;text-decoration:none;}
a:hover,a:active
{ font-size:12px; color:#ff0000;text-decoration:underline;}
.left_pingb{border:1px solid #cdcdcd}
.left_ping_lrb{ padding:6px; color:#636363}
.left_ping_t{padding-top:6px;}
.f14{font-size:14px;}
.ping_content td{text-align:left;padding-left:10px;}
.left_pinglun{border:1px solid #cdcdcd; width:89px; height:15px; color:#cdcdcd;}
.ping_textarea{border:1px solid #646464;width:432px; height:65px; padding:5px; color:#636363;}
.pingicon{background:url(/images/ping.gif) no-repeat; text-align:center; width:85px; height:33px; font: bold 12px/27px "宋体"}
</style>
<script>

	function getBbsCookie(name){
		if(document.cookie.length > 0){
			var begin = document.cookie.indexOf(name + '=');
			if(begin != -1){
				begin += name.length + 1;
				end = document.cookie.indexOf(';', begin);
				if(end == -1) end = document.cookie.length;
				return document.cookie.substring(begin, end);
			}else{
				return '';
			}
		}
		
		return '';
	
}
</script>
<script language="javascript">
			<!--客户端脚本-->
function checkclick()
{
	if(myform.hasName.checked==true)
	{
		myform.userName.value="本站网友"
		myform.userName.disabled=true;
		
	}
	else
	{
		myform.userName.disabled=false;
	}

}
			function save(){
			  
			  if (myform.userName.value=="" && myform.hasName.checked == false) {
			      window.alert("请输入用户名!");
			      myform.userName.focus();
			      return;
			  }
			  if (myform.code.value=="") {
			      window.alert("请输入验证码!");
			      myform.code.focus();
			      return ;
			  }
			  if (myform.fcontent.value=="") {
			      window.alert("请输入内容!");
			      myform.fcontent.focus();
			      return ;
			  }
		
			 document.getElementById("myform").submit();              
            }
			function checkSMSMessage(){  
			    var content=document.getElementById("fcontent").value;
				document.getElementById("leaveCount").innerText=120-content.length;
				if (content.length>120){ 
					document.getElementById("fcontent").value=content.substring(0,120); 
				} 
			}
			function setLeaveCount(){
			  window.setTimeout('checkSMSMessage()', 100);
			}
			
 </script>
 </head>
 <body oncontextmenu='window.event.returnValue=false'>
<form align=center  action="save.asp" method="post" name="myform" onKeyDown="setLeaveCount()">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
   <tr><td width="100%">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
      <tr>
		   <td width="100" height="27" align="center" valign="top">
		      <div class="pingicon">相关评论</div></td>
      </tr>
      </table> 
	   <%id=Request("id")
	   
	   if id="" then
Response.write("<script >alert('对不起！参数传递错误！');history.back(-1);</script>")
response.End()
end if	   %>
	   <input type="hidden" name="tyid" id="tyid" value="<%=id%>" />
	   <!--#include file="websen_plnr.asp"-->
	   
	</td>
  </tr>

  <tr>
    <td height="61" class="left_ping_t"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="100" height="27" align="center" valign="top"><div class="pingicon">我来评两句</div></td>
        <td align="left">用户名:
            <input type="text" class="left_pinglun" name="userName" value="" onfocus="javascript:if(this.value=='本站网友')this.value=''" />
          <input type="hidden" name="codeKey" value="<%=codeKey%>" />
          验证码:
          <input name="code" type="text" class="left_pinglun" value="" maxlength="5" autocomplete="off" />
          <img src="DvCode.asp?k=<%=codeKey%>&" onclick="this.src+=parseInt(Math.random()*10)" alt="点击可刷新" /> 匿名:
          <input type="checkbox" name="hasName" onclick="checkclick();" value="1"  class="left_pinglun_c1" /></td>
      </tr>
    </table></td>
  </tr>
  
  <tr>
    <td height="79" class="left_ping_lrb"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
	  
        <td width="100%" height="67" align="left"><br>
          <textarea name="fcontent" class="ping_textarea" onFocus="javascript:if(this.value=='我来评两句!(您最多可以输入120个字)')this.value='';">我来评两句!(您最多可以输入120个字)</textarea></td>
        <td width="51%">您还能输入<label id="leaveCount">120</label>字<br />
            <br />
            &nbsp;<img src="fabiao.gif" width="85" height="26"  onclick="save()"/></td>
      </tr>
	
    </table></td>
  </tr>
</table>
</form>
</body>
</html>