<SCRIPT LANGUAGE="JavaScript">
<!--
function dosub()
{
var sel = document.myform.select1.options[document.myform.select1.selectedIndex].value;
alert(sel);
if (sel == "1")
{
document.myform.action = "1.asp";
}
else
{
document.myform.action = "2.asp";
}
document.myform.submit();
}//-->
</SCRIPT><form action="1.jsp" onsubmit="return check()" method="post" name="myform">
<table>
<tr>
<td>
<select name="select1">
<option value="1">横表</option>
<option value="2">竖表</option>
</select>
</td>
</tr>
<tr>
<td>
<input type="button" value="提交" onclick="dosub()">
</td>
</tr>
</table>
</form>