<html>
<head>
<script type="text/javascript">
function printOut()
{
//获取radio的值
var list = document.getElementsByName("abc");
for( i =0 ; i<list.length; i++ )
{
if( list[i].checked == true )
{
//如果选择OA办公登录
if(list[i].value=="oa")
{
document.form1.action="http://zx.******.**.cn/wbg/loginin.php";
document.form1.submit();
break;
}
//如果选择登录邮箱
if(list[i].value=="mail")
{
document.form1.action="http://mail.******.**.cn/cgi-bin/eqwebmail";
document.form1.submit();
break;
}
}
}
}
</script>
</head>
<body>
<form name="form1">
<input type=text name="username" size="20"><input type=hidden name="logindomain" value="jinchang.gov.cn"></p>
<input type=password name="password" size="21">
<input type="radio" name="abc" value="oa" checked/>
<input type="radio" name="abc" value="mail" />
<!--<input type="image" SRC="dl.gif" border=0 onclick=printOut() /> 图片形式的登录-->
<input type ="button" onclick=printOut() />
</form>
</body>
</html>