<script language="javascript">
function woyouhuashuosubmit()
{
	if(document.getElementById("title").value=="")
	{
		alert("请填写标题。");
		document.getElementById("title").focus();
		return false;
	}
	
	if(document.getElementById("dianhua").value!="" && /[a-zA-Z]/gi.test(document.getElementById("dianhua").value)==true)
	{
		alert("电话填写有误。");
		document.getElementById("dianhua").focus();
		return false;
	}
	
	if(document.getElementById("con").value=="")
	{
		alert("请填写内容。");
		document.getElementById("con").focus();
		return false;
	}
	if(document.getElementById("con").value != "" && document.getElementById("con").value.length > 250)
	{
		alert("内容最多不超过250个字符，如有需要请电话联系我公司，谢谢。");
		return false;
	}
}
</script>
<div style="width:265px; background-color:#eff4f8; border:solid 1px #a6bcc9;">
  <div align="center"><a href="moreinfo.asp?type1=shuohua" onfocus="this.blur()"><img src="/tuangou/img/Snap4.jpg" width="264" height="28" border="0"></a></div>
  
  <table width="100%" border="0" cellspacing="0" cellpadding="5" class="moren">
    <%
	set rs_123 = server.CreateObject("adodb.recordset")
	rs_123.open "select top 10 * from tuangou_shuohua order by id desc",conn,1,1
	do while not rs_123.eof
	%>
    <tr>
      <td>·<a href="viewshili.asp?type1=shuohua&id=<%=rs_123("id")%>" target="_blank"><%=rs_123("title")%></a></td>
    </tr>
  	<%
	rs_123.movenext
	loop
	rs_123.close
	set rs_123 = nothing
	%>
  </table>
  <div align="center" style="padding:15px 0;"><img src="img/Snap9.jpg" width="240" height="2"></div>
  <table width="100%" border="0" cellspacing="0" cellpadding="5">
  <form name="formshuohua" id="formshuohua" action="shuohuasubmit.asp" method="post" onsubmit="return woyouhuashuosubmit()">
    <tr>
      <td width="23%">主题：</td>
      <td width="77%"><input type="text" name="title" id="title" style="height:20; line-height:20px; width:132px; border-top:solid 1px #666666; border-right:solid 1px #CCCCCC; border-bottom:solid 1px #CCCCCC; border-left:solid 1px #666666;"></td>
    </tr>
    <tr>
      <td width="23%">电话：</td>
      <td width="77%"><input type="text" name="dianhua" id="dianhua" style="height:20; line-height:20px; width:132px; border-top:solid 1px #666666; border-right:solid 1px #CCCCCC; border-bottom:solid 1px #CCCCCC; border-left:solid 1px #666666;"></td>
    </tr>
    <tr>
      <td valign="top">问题：</td>
      <td><textarea name="con" id="con" cols="45" rows="5" style="width:133px; height:64px;"></textarea></td>
    </tr>
    <tr>
      <td valign="top">&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="提交"></td>
    </tr>
    </form>
  </table>
</div>

