是这个效果吗-------main.asp----------<html>
    <head>
        <title>Login</title>
        <script language="javascript">
        <!--
            function Win_open(strif)
            {
                if (strif == '1')
                {
                    window.open("Tel.asp",'newwindow', 'height=100, width=400, top=0,left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');
                }
            }
        //-->
        </script>
    </head>
    <body>
        <form name="form1">
            <table>
                <tr>
                    <td>
                        <select name=class size="1" onchange="Win_open(this.value);">
                        <option  value="0"  selected>普通用户;</option>
                        <option value="1" >VIP用户;</option>
                        </select>
                    </td>
                    <td>
                        您的手机号:<input name="T1" size="30" disabled>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>
----------------- Tel.asp ------------------<html>
    <head>
        <title>PhoneCode</title>
        <script language="javascript">
        <!--
            function Win_close()
            {
                if (document.form1.TT1.value == '')
                {
                    alert(" 必須填入手机号!");
                }
                else
                {
                    window.opener.document.form1.elements['T1'].value = document.form1.TT1.value;
                    window.close();
                }
            }
        //-->
        </script>
    </head>
    <body>
        <form name="form1">
            <table>
                <tr>
                    <td>
                        <input type="button" name="B1" value="提交" onclick="Win_close();">
                    </td>
                </tr>
                <tr>
                    <td>
                        请输入您的手机号:
                    </td>
                    <td>
                        <input type="text" name="TT1" size="20" maxlength="11">
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>

解决方案 »

  1.   

    type="button"value="检测帐号" onclick="javascript:window.open('checkUser.jsp?
    id=form.elements[0].value','','width=300,height=150,top=309,left=362')" →→→→→→→→type="button"value="检测帐号" onclick="javascript:window.open('checkUser.jsp?
    id='+form.elements[0].value,'','width=300,height=150,top=309,left=362')"