以下是我们中学一个投票的网页,我不能投,为什么?
其中哪条是判断能否投票?哪条是发出投票信息? <html> <head> <title>上海市延安初级中学 —— 投票</title> <link rel="stylesheet" href="zy.css"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <script language="JavaScript"> <!-- function vote(obj){ if(obj){ var k=""; for(var i=0;i<obj.elements.length;i++){ if(obj.elements[i].name=="rb"&&obj.elements[i].checked==true) k=obj.elements[i].value; } if(k==""){ alert("请选择一项,再投票"); }else if(confirm("您选择了“"+k+"”\n\n确定吗?")) obj.submit(); else return false; } } //--> </script> </head> <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="images/bg.gif" > <table width="760" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="FFFFE5"> <tr> <td width="760" height="386" valign="top"> <table width="760" border="0" cellspacing="0" cellpadding="0" height="386"> <tr> <td width="760" height="25" bgcolor="79BF19"> <table width="760" border="0" cellspacing="0" cellpadding="0" height="25"> <tr> <td width="206" height="25" align="center"><font color=#000000><font color=#000000><font color=#000000> </font></font></font> <table width="100" border="0" cellspacing="0" cellpadding="0" height="3"> <tr> <td height="3"></td> </tr> </table> <font color=#000000><font color=#000000><font color=#000000> <script language=JavaScript> today=new Date(); function initArray(){ this.length=initArray.arguments.length for(var i=0;i<this.length;i++) this[i+1]=initArray.arguments[i] } var d=new initArray( "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"); document.write( "<font color=#000000 style='font-size:9pt;font-family: 宋体'> ", today.getYear(),"年", today.getMonth()+1,"月", today.getDate(),"日 ", d[today.getDay()+1], "</font>" ); </script> </font></font></font></td> <td width="319" height="25"></td> <td width="235" height="25"> </td> </tr> </table> </td> </tr> <tr> <td width="760" height="3" background="images/index_04.gif"></td> </tr> <tr> <td width="760" height="92"> <table width="760" border="0" cellspacing="0" cellpadding="0" height="92"> <tr> <td width="122" height="92" background="images/index_05.gif"></td> <td width="60" height="92" background="images/index_06.gif"></td> <td width="66" height="92" background="images/index_07.gif"></td> <td width="55" height="92" background="images/index_08.gif"></td> <td width="80" height="92" background="images/index_09.gif"></td> <td width="67" height="92" background="images/index_10.gif"></td> <td width="48" height="92" background="images/index_11.gif"></td> <td width="69" height="92" background="images/index_12.gif"></td> <td width="135" height="92" background="images/index_13.gif"></td> <td width="58" height="92" background="images/index_14.gif"></td> </tr> </table> </td> </tr> <tr> <td width="760" height="10" background="images/index_15.gif"> </td> </tr> <tr> <td width="760" height="234" align="center"> <br> <table width="400" border="0" cellpadding="3" cellspacing="1" bgcolor="#66CC00"> <form name="form1" method="post" action="vote.asp"> <tr bgcolor="#FFFFFF"> <td height="20" colspan="2" > </td> </tr> <tr bgcolor="#FFFFFF"> <td height="20" width="44" align="right">1、</td> <td height="20" width="353"> <input type="radio" name="rb" value="1《亲亲茉莉花》" style="width:12px;height:13px"> 《亲亲茉莉花》 </td> </tr> <tr bgcolor="#FFFFFF"> <td width="44" align="right" height="20">2、</td> <td width="353" height="20"> <input type="radio" name="rb" value="2《吹牛》 " style="width:12px;height:13px"> 《吹牛》 </td> </tr> <tr bgcolor="#FFFFFF"> <td width="44" align="right" height="20">3、</td> <td width="353" height="20"> <input type="radio" name="rb" value="3《阳光总在风雨后》 " style="width:12px;height:13px"> 《阳光总在风雨后》 </td> </tr> <tr bgcolor="#FFFFFF"> <td width="44" align="right" height="20">4、</td> <td width="353" height="20"> <input type="radio" name="rb" value="4《走进新时代》" style="width:12px;height:13px"> 《走进新时代》 </td> </tr> <tr bgcolor="#FFFFFF"> <td width="44" align="right" height="20">5、</td> <td width="353" height="20"> <input type="radio" name="rb" value="4《朋友》 " style="width:12px;height:13px"> 《朋友》 </td> </tr> <tr bgcolor="#FFFFFF"> <td width="44" align="right" height="20">6、</td> <td width="353" height="20"> <input type="radio" name="rb" value="6《花》 " style="width:12px;height:13px"> 《花》 </td> </tr> <tr bgcolor="#FFFFFF"> <td width="44" align="right" height="20">7、</td> <td width="353" height="20"> <input type="radio" name="rb" value="7《炫之舞》" style="width:12px;height:13px"> 《炫之舞》 </td> </tr> <tr bgcolor="#FFFFFF"> <td width="44" align="right" height="20">8、</td> <td width="353" height="20"> <input type="radio" name="rb" value="8《卖拐之间,诚信再现》" style="width:12px;height:13px"> 《卖拐之间,诚信再现》 </td> </tr> <tr bgcolor="#FFFFFF"> <td width="44" align="right" height="20">9、</td> <td width="353" height="20"> <input type="radio" name="rb" value="9《秋天的童话》" style="width:12px;height:13px"> 《秋天的童话》 </td> </tr> <tr bgcolor="#FFFFFF"> <td width="44" align="right" height="20">10、</td> <td width="353" height="20"> <input type="radio" name="rb" value="a《天山的节日》" style="width:12px;height:13px"> 《天山的节日》 </td> </tr> <tr bgcolor="#FFFFFF"> <td width="44" align="right" height="20">11、</td> <td width="353" height="20"> <input type="radio" name="rb" value="b《街头少年合唱》" style="width:12px;height:13px"> 《街头少年合唱》 </td> </tr> <tr bgcolor="#FFFFFF"> <td width="44" align="right" height="20">12、</td> <td width="353" height="20"> <input type="radio" name="rb" value="c《大家一起来》 " style="width:12px;height:13px"> 《大家一起来》 </td> </tr> <tr bgcolor="#FFFFFF"> <td width="44" align="right" height="20">13、</td> <td width="353" height="20"> <input type="radio" name="rb" value="d《中国人,不跪的人》" style="width:12px;height:13px"> 《中国人,不跪的人》 </td> </tr> <tr bgcolor="#FFFFFF"> <td width="44" align="right" height="20">14、</td> <td width="353" height="20"> <input type="radio" name="rb" value="e《圣诞组曲》" style="width:12px;height:13px"> 《圣诞组曲》 </td> </tr> <tr bgcolor="#FFFFFF"> <td width="44" align="right" height="20">15、</td> <td width="353" height="20"> <input type="radio" name="rb" value="f《黑旋风李逵求职记》" style="width:12px;height:13px"> 《黑旋风李逵求职记》 </td> </tr> <tr bgcolor="#FFFFFF" align="center"> <td colspan="2" height="20"> <table width="68%" border="0" cellpadding="2" cellspacing="1" bgcolor="#0000FF"> <tr bgcolor="#FFFFFF"> <td width="34%" align="right" height="20">学生登录名:</td> <td width="66%" height="20"> <input type="text" name="nick" size="20" maxlength="50" style="width:100px;height:18px"> </td> </tr> <tr bgcolor="#FFFFFF"> <td width="34%" align="right" height="20">学生密码:</td> <td width="66%" height="20"> <input type="password" name="pass" size="20" style="width:100px;height:18px" value=""> <input type="hidden" name="ok2" value="vote"> </td> </tr> </table> </td> </tr> <tr bgcolor="#FFFFFF" align="center"> <td colspan="2" height="20"> <input type="button" name="Submit" value="投 票" onclick="vote(this.form)" style="height:18px;width:80px"> <input type="button" name="Submit2" value="查看结果" onClick="window.open('voteinfo.asp','','')" style="height:18px;width:80px"> <input type="hidden" name="ok" value="vote"> </td> </tr> </form> </table> <br> </td> </tr> </table> </td> </tr> <tr> <td width="760" height="154"> <table width="760" border="0" cellspacing="0" cellpadding="0" height="154" align="center"> <tr> <td width="760" height="10" bgcolor="D3FAA1"> </td> </tr> <tr> <td width="760" height="112" bgcolor="63A909" valign="middle" align="center"> <table width="250" cellspacing="0" cellpadding="0"> <tr> <td height="7" width="250"></td> </tr> </table> <table width="434" cellspacing="3" cellpadding="3" height="83" style="line-height:20px;"> <tr> <td valign="middle"> <div align="center"> <font color="#FFFFFF">版权所有 [上海市延安初级中学] 设计维护 [<a href="http://www.learn-easy.net" target="_blank">上海蓝易思电脑有限公司</a>]<br> 校址:上海市延安西路601号 电话:021-62131008 邮编:200050<br> <font face="Verdana, Arial, Helvetica, sans-serif">Copyright By Yanan Junior School 2004.All Rights Reserved<br> </font></font></div> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td width="760" height="2" bgcolor="#2C4E01"></td> </tr> </table> </body> </html>