
document.writeln("<FORM name=form1 action=\"\" method=post>");
document.writeln("                          <div align=\"right\">");
document.writeln("                            <table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\" class=\"font09\" >");
document.writeln("                              <tr>");
document.writeln("                                <td width=\"40%\">");
document.writeln("                                  <div align=\"right\">用户名：</div></td>");
document.writeln("                                <td width=\"60%\">");
document.writeln("                                  <INPUT class='textfield' src='' size='6' name='loginname'>");
document.writeln("                                </td>");
document.writeln("                              </tr>");
document.writeln("                              <tr>");
document.writeln("                                <td width=\"40%\">");
document.writeln("                                  <div align=\"right\">密　码：</div></td>");
document.writeln("                                <td width=\"60%\">");
document.writeln("                                  <INPUT class='textfield' type='password' src='' size='6' name='password'>");
document.writeln("                                </td>");
document.writeln("                              </tr>");
document.writeln("                              <tr>");
document.writeln("                                <td colspan=\"2\" height=\"15\"><div align=\"center\">");
document.writeln("                                  <SELECT name=type font=\"333333\">");
document.writeln("                                      <OPTION value=0 selected>请选择</OPTION>");
document.writeln("                                      <OPTION value=1>学历教育</OPTION>");
document.writeln("                                      <OPTION value=2>英语学习超市</OPTION>");
document.writeln("                                      <OPTION value=3>商务英语培训</OPTION>");
document.writeln("                                      <OPTION value=6>通用英语</OPTION>");
document.writeln("                                      <OPTION value=4>eBeiWai英语俱乐部</OPTION>");
document.writeln("                                      <OPTION value=5>预科课程与环球英语</OPTION>");

document.writeln("                                  </SELECT>");
document.writeln("                                  </div></td>");
document.writeln("                              </tr>");
document.writeln("                              <tr>");
document.writeln("                                <td colspan=\"2\" height=\"15\"><div align=\"center\"><a href=\"javascript:checkform()\">登录</a>　<a href=\"javascript:checkRegister()\" >注册</a>　<a href=\"javascript:checkPassword()\" >取回密码</a></div></td>");
document.writeln("                              </tr>");
document.writeln("                            </table>");
document.writeln("                          </div>");
document.writeln("                      </form>");



function getQuery(){
 var theForm = document.theForm;
 if(theForm.param.value.length < 1){
  alert("请输入查询内容");
  theForm.param.focus();
  return;
 }
 theForm.target = "main";
        theForm.submit();
}
function checkform(){
  var type = document.form1.type.value;
  //alert(type);
  if(type==0){
   alert("请选择您要登录的平台！");
   }
  else{  
   if(type==1){
    document.form1.action = "http://www2.beiwaionline.com/cgi-bin/loadbalance.cgi";
    }
    else if(type==2){
    document.form1.action = "http://eclass.beiwaionline.com/bwol/LoginValidate.jsp";
    }
   else if(type==3){
    document.form1.action = "http://eclass.beiwaionline.com/bwol/LoginValidate.jsp";
    }
    else if(type==6){
    document.form1.action = "http://eclass.beiwaionline.com/bwol/LoginValidate.jsp";
    }

   else if(type==4){
    document.form1.action = "http://club.beiwaionline.com/login_submit.jsp?Username=" + document.form1.loginname.value + "&Password=" + document.form1.password.value;  
   }
   else if(type==5){
    document.form1.action = "http://appd8.beiwaionline.com/ge/main.jsp?loginName=" + document.form1.loginname.value + "&passwd=" + document.form1.password.value;  
    } 
    
    //alert(document.form1.action);//
   form1.submit();  
  }
 }
 
 function checkPassword(){
  var type = document.form1.type.value;
  //alert(type);
  if(type==0){
   alert("请选择您要登录的平台！");
   }
  else{  
   if(type==1){
    document.form1.action = "http://appd1.beiwaionline.com/bwol/getPasswd/getPasswd1.jsp";
    }
    else if(type==2){
    document.form1.action = "http://eclass.beiwaionline.com/bwol/getPasswd/getPasswd1.jsp";
    }
   else if(type==3){
    document.form1.action = "http://eclass.beiwaionline.com/bwol/getPasswd/getPasswd1.jsp";
    }

   else if(type==6){
    document.form1.action = "http://eclass.beiwaionline.com/bwol/getPasswd/getPasswd1.jsp";
    }
   else if(type==4){
    document.form1.action = "http://club.beiwaionline.com/Member/GetPassword.jsp";  
   }
   else if(type==5){
    alert("如您的密码丢失，请联系培训中心工作人员解决");
    return;
    
   } 
    
    //alert(document.form1.action);//
   document.form1.target="_blank";
   form1.submit();  
  }
 }
 
 
 function checkRegister(){
  var type = document.form1.type.value;
  //alert(type);
  if(type==0){
   alert("请选择您要登录的平台！");
   return;
   }
  else{  
   if(type==1){
	alert("学历教育平台不提供在线注册的服务！");   		
    	return ;
    }
    else if(type==2){
    document.form1.action = "http://eclass.beiwaionline.com/bwol/register/register.jsp";
    }
   else if(type==3){
    document.form1.action = "http://eclass.beiwaionline.com/bwol/register/register.jsp";
    }

    else if(type==6){
    document.form1.action = "http://eclass.beiwaionline.com/bwol/register/registerInfo.jsp";
    }
  else if(type==4){
  document.form1.action = "http://club.beiwaionline.com/forum/service.do";
   }
   else if(type==5){
    document.form1.action = "http://eclass.beiwaionline.com/bwol/register/registerInfo.jsp";
    return;
    
   } 
    
    //alert(document.form1.action);//
   document.form1.target="_blank";
   form1.submit();  
  }
 } 
