<!--#include virtual="/show/indexhead.asp"-->
<!--#include virtual="/inc/md52.asp"-->


<script language=javascript>
function refreshImage(img)
{
    var imageUrl = '/inc/code/'; 
    img.src = imageUrl + '?' + Math.random();
}
</script>

<%

act=SafeRequestform("act")
id=SafeRequest("id")

if act="tijiao" then
jurl=trim(SafeRequestform("jurl"))
chkcode=SafeRequestform("chkcode")
chkcodetel=SafeRequestform("chkcodetel")

Mobile=SafeRequestform("Mobile")
'Mobile=filter_Str(Mobile)
con=trim(SafeRequestform("con"))
con=filter_Str(con)
con="举报违法地址："&jurl&"|"&con

if chkcode="" then 
call PopErr("请填写右侧验证码！") 
response.End()
end if
if request.Cookies("GetCode")="" then 
call PopErr("右侧验证码生成错误！") 
response.End()
end if
if int(request.Cookies("GetCode"))<>int(trim(chkcode)) then 
call PopErr("右侧验证码输入错误！") 
response.End()
end if
if request.Cookies("yzsum")="" then 
call PopErr("手机验证码生成错误！") 
response.End()
end if

tomd5yzm=md5(chkcodetel&Mobile&ptjiami)

sql="select * from ayyanzheng where ayyanzhengids='"&chkcodetel&"' and ayyanzhengidc='"&tomd5yzm&"'" 
rs.open sql,conn,1,1
if rs.bof and rs.eof then
'response.Cookies("yzsum")=""
call PopErr("验证码错误,请检查手机号和验证码是否正确")
end if
rs.close


if Mobile="" or con="" then call PopErr("请填写举报内容") 
rs.open "select * from ayjianyi" ,conn,1,3
rs.addnew
rs("ayjianyilx")=Mobile
rs("ayjianyicon")=con
rs.update
rs.close
response.Cookies("yzsum")=""
call PopErr2("感谢您的举报，我们会及时处理相关信息。","/") 
end if
%>
<script language=javascript>
function refreshImage(img)
{
    var imageUrl = '/inc/code/'; 
    img.src = imageUrl + '?' + Math.random();
}

var xmlhttp;
try
{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e){try{xmlhttp=new XMLHttpRequest();}catch (e){}}}

function huoqu()
{
		
   var Mobile=document.getElementById("Mobile").value
   if (Mobile==""){alert('请填写手机号码');return false;}
   
	var regu =/^[1][3-9][0-9]{9}$/; 
	var re = new RegExp(regu); 
	if (re.test(Mobile)){}else{alert('请正确填写手机号码');return false;} 
   
   xmlhttp.open("get","/index/checkuser?Mobile="+ Mobile +"&act=huoquyz&jcact=no&t=" +  new Date().getTime());
   
   xmlhttp.onreadystatechange=function()
   {
		 if(4==xmlhttp.readyState) 
		 {
			   if(200==xmlhttp.status)
			   { 
			   		//alert(xmlhttp.responseText);
					if (xmlhttp.responseText=="ok"){alert('验证码已发送，请注意查收');RemainTime();return false;}
					if (xmlhttp.responseText=="time"){alert('请再一分钟后尝试重新发送验证码');return false;}
					if (xmlhttp.responseText=="telerr"){alert('请使用正常手机号码');return false;}
			   }
			   else
			   {
				alert('网络链接失败');
				return false;
			   }
		 }
   }
   xmlhttp.send(null);  
   return false;
}



function chk()
{
	
	if(form1.con.value==""){alert("请填写举报详细内容");return false;}
	if(form1.Mobile.value==""){alert("请填写手机号码");return false;}
	if(form1.chkcodetel.value==""){alert("请填写手机验证码");return false;}
	if(form1.chkcode.value==""){alert("请填写右侧的验证码");return false;}
}


var CID = "endtime2";
var iTime = "60"; //秒

function RemainTime()
{
   
   
	document.getElementById(CID).disabled="disabled";
    var iDay,iHour,iMinute,iSecond;
    var sDay="",sHour="",sMinute="",sSecond="",sTime="";
    if (iTime >= 0)
    {
        iDay = parseInt(iTime/24/3600);if (iDay > 0){sDay = iDay + "天";}
        iHour = parseInt((iTime/3600)%24);if (iHour > 0){sHour = iHour + "小时";}
        iMinute = parseInt((iTime/60)%60);if (iMinute > 0){sMinute = iMinute + "分钟";}
        iSecond = parseInt(iTime%60);
		
        if (iSecond >= 0){sSecond = iSecond + "秒";}
        if ((sDay=="")&&(sHour=="")){sTime= sMinute+sSecond;}else{sTime=sDay+sHour+sMinute+sSecond;}
		
		if(iTime==0){sTime="获取验证码";document.getElementById(CID).disabled="";}else{Account = setTimeout("RemainTime()",1000);}
       	iTime=iTime-1;
    }
    else
    {
       iTime = "61";    //设置+1
	   RemainTime();
    }

    document.getElementById(CID).value = sTime;
}
</script>
<style type="text/css">
.btnFn1 {cursor:pointer!important;cursor:hand;  height:30px; width:101px; padding:3px 5px 0 0; }
.btnFn2 {cursor:pointer!important;cursor:hand;  height:30px; width:101px; padding:3px 5px 0 0; font-weight:bold; }
</style>
<div class="mian">
<div class="regbox conter">
<div class="nyclassbt01 conter">违规/违法/非法内容举报</div>
<form name="form1" id="form1" method="post" action=""  onSubmit="return chk()">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="280" height="50" class="regtext">举报地址：</td>
    <td width="303"><input name="jurl" type="text" class="reginput" id="jurl" value="<%=id%>" readonly></td>
    <td width="452"><div id="pass1d" class="regts" >举报地址</div></td>
  </tr>
  <tr>
    <td width="280" height="50" class="regtext">详细违规/违法/非法内容：</td>
    <td width="303"><textarea name="con" style="width:290px" rows="6" id="con"></textarea></td>
    <td width="452"><div id="pass1d" class="regts" >请填写详细举报内容</div></td>
  </tr>
  <tr>
    <td width="280" height="50" class="regtext">联系电话：</td>
    <td width="303"><input name="Mobile" type="text" class="reginput" id="Mobile" maxlength="11"></td>
    <td width="452"><input type="button" class="btnFn1" id="endtime2" value="获取验证码" onClick="huoqu()"></td>
  </tr>
  <tr>
    <td width="280" height="50" class="regtext">手机验证码：</td>
    <td width="303"><input name="chkcodetel" type="text" class="reginput" id="chkcodetel" maxlength="6"></td>
    <td width="452"><div id="pass1d" class="regts" >请输入手机收到的验证码</div></td>
  </tr>
  <tr>
    <td height="50" class="regtext">验证码：</td>
    <td><input name="chkcode" type="text" class="reginput" id="chkcode" maxlength="4"></td>
    <td><img src="/inc/code/" alt="点击刷新验证码" style="cursor:pointer" border=0 onClick="refreshImage(this);"/></td>
  </tr>
  <tr>
    <td height="69" class="regtext">&nbsp;</td>
    <td align="left"><input style="cursor:pointer" name="tijiao" type="submit" class="logindlreg" id="tijiao" value=" 提交 "></td>
    <td><input name="act" type="hidden" id="act" value="tijiao"></td>
  </tr>
  </table>
</form>
<br>

</div>
</div>



<!--#include virtual="/show/indexfoot.asp"-->