﻿ function openRoom(port) {
            if(port!=0)
            {
            var UserName="";
            var mode="";
           
  
            if(document.getElementById("login_CheckBox2")!=undefined && document.getElementById("login_CheckBox2")!=null)
            {
              var ch1=document.getElementById("login_CheckBox2");
               if(ch1.checked)
               {
                    mode=1;
               }
            }
           
            if(document.getElementById("login_txtUser")!=undefined && document.getElementById("login_txtUser")!=null)
            {
             UserName = document.getElementById("login_txtUser").value;
             if(UserName=="")
             {
                alert("请输入用户名");
                return;
             }
            }
            var aa="";
             if(document.getElementById("login_txtPass")!=undefined && document.getElementById("login_txtPass")!=null)
            {
             aa = document.getElementById("login_txtPass").value;
             }
            var win = window.open("RoomLogin2.aspx/?port=" + port+"&UserName="+UserName+"&Mode="+mode+"&PassWord="+aa, "", "top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=880,height=600");
            win.focus();
            }
        }
        
        function openRegFrom()
       {
         
        var win = window.open("../reg/reg.aspx","" ,"top=300,left=350,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=680,height=420");
            win.focus();
       }
       function openchgpaypwdFrom()
       {
         
        var win = window.open("../reg/changepassword.aspx","" ,"top=300,left=350,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=330,height=285");
            win.focus();
       }
       function openchgwdFrom()
       {
         
        var win = window.open("../reg/changepassword.aspx","" ,"top=300,left=350,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=330,height=285");
            win.focus();
       }
        function opengetpwdFrom()
       {
         
        var win = window.open("../reg/getpassword.aspx","" ,"top=300,left=350,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=330,height=290");
            win.focus();
       }
       function opengetpasspwdFrom()
       {
                 
        var win = window.open("../reg/getpassword.aspx","" ,"top=300,left=350,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=330,height=290");
            win.focus();
       }
