function web_top(ttype,cookies_uid){
//ttype:1表示带登陆框的，2表示导航条a
var tmpstr="";
var web_wide="1003";
if(cookies_uid=="0") cookies_uid="";
  if(ttype==1){
  document.write("<table width="+web_wide+" border=0 cellspacing=0 cellpadding=0 bgcolor=#4866BA>");
  document.write("<tr>");
  document.write("<td width=365 valign=top><img src='/images/main/logo_2.jpg' width=365 height=76 border=0></td>");
  document.write("<td background='/images/main/top_bg_1.jpg' bgcolor=#4866BA width=500>");
  document.write("<table width='100%' border=0 cellspacing=0 cellpadding=0>");
  document.write("<tr>"); 
  document.write("<td height=25>&nbsp;</td>");
  document.write("</tr>");
  document.write("</table>");
  document.write("<table width='100%' border=0 cellspacing=0 cellpadding=0>");
  document.write("<form name=login_form method=post action=user_login.asp onsubmit='return login_check(login_form);'>");
  document.write("<tr>");
  document.write("<td width=60 height=30 align=right>用户名：</td>");
  document.write("<td width=115> ");
  document.write("<input name=userid type=text class=Input size=15  value='"+cookies_uid+"'>");
  document.write("</td>");
  document.write("<td width=36>密码：</td>");
  document.write("<td width=100> ");
  document.write("<input name=password type=password class=Input size=15>");
  document.write("</td>");
  document.write("<td width=70 align=center valign=middle>");
  document.write("<input type=image border=0 name=imageField src='/images/main/ico_login.jpg' width=44 height=25>");
  document.write("</td>");
  document.write("<td valign=bottom><a href='user_reg.asp'><img src='/images/main/ico_reg.jpg' width=78 height=25 border=0></a></td>");
  document.write("</tr>");
  document.write("</form>");
  document.write("</table>");
  document.write("</td>");
  document.write("<td background='/images/main/top_bg_1.jpg'  valign=top><img src='/images/main/nav_right_red.jpg' width=157 height=76></td>");
  document.write("</tr>");
  document.write("</table>");
  document.write("<table width=width="+web_wide+" border=0 cellspacing=0 cellpadding=0>");
  document.write("<tr>");
  document.write("<td height=3 bgcolor=#ffffff></td>");
  document.write("</tr>");
  document.write("</table>");
  }
  if(ttype==2){
  document.write("<table width="+web_wide+" border=0 cellspacing=0 cellpadding=0 bgcolor=#4866BA>");
  document.write("<tr>");
  document.write("<td width=365  valign=top><img src='/images/main/logo_2.jpg' width=365 height=76 border=0></td>");
  document.write("<td background='/images/main/nav_lesson.jpg' valign=middle  align=center width=122><br><a href='/sjhh_lesson.asp'>考博课堂</a></td>");
  document.write("<td background='/images/main/nav_news.jpg' valign=middle  align=center width=115><br><a href='/sjhh_news.asp'>简章 资讯</a></td>");
  document.write("<td background='/images/main/nav_down.jpg' valign=middle  align=center width=111><br><a href='/sjhh_down.asp'>资料下载</a></td>");
  document.write("<td background='/images/main/nav_bbs.jpg' valign=middle  align=center width=133><br><a href='/forum/index.htm'>考博论坛</a></td>");
  document.write("<td valign=top  width=2><img src='/images/main/nav_right_vline.jpg' width=2 height=76 border=0></td>");
  document.write("<td background='/images/main/nav_right_bg.jpg' height=76><table border=0 cellpadding=0 cellspacing=0  height=76 width=155><tr><td height=20></td></tr><tr><td valign=middle align=center style='color:#ffffff;'>");
  document.write("<a href='/' class=white>首页</a> <a href='user_reg.asp' class=white>注册</a> <a href='user_login.asp' class=white>登录</a> <a href='user_login.asp?action=logout' class=white>退出</a></td></tr></table></td>");
  document.write("</tr>");
  document.write("</table>");
  document.write("<table width=width="+web_wide+" border=0 cellspacing=0 cellpadding=0>");
  document.write("<tr>");
  document.write("<td height=3 bgcolor=#ffffff> </td>");
  document.write("</tr>");
  document.write("</table>");
  }
  if(ttype==3){
  document.write("<table width="+web_wide+" border=0 cellspacing=0 cellpadding=0 bgcolor=#4866BA>");
  document.write("<tr>");
  document.write("<td width=365  valign=top><img src='/images/main/logo_2.jpg' width=365 height=76 border=0></td>");
  document.write("<td background='/images/main/nav_lesson.jpg' valign=middle  align=center width=122><br><a href='/sjhh_lesson.asp'>考博课堂</a></td>");
  document.write("<td background='/images/main/nav_news.jpg' valign=middle  align=center width=115><br><a href='/sjhh_news.asp'>简章 资讯</a></td>");
  document.write("<td background='/images/main/nav_down.jpg' valign=middle  align=center width=111><br><a href='/sjhh_down.asp'>资料下载</a></td>");
  document.write("<td background='/images/main/nav_bbs.jpg' valign=middle  align=center width=133><br><a href='/forum/index.htm'>考博论坛</a></td>");
  document.write("<td valign=top  width=2><img src='/images/main/nav_right_vline.jpg' width=2 height=76 border=0></td>");
  document.write("<td background='/images/main/nav_right_bg.jpg' height=76><table border=0 cellpadding=0 cellspacing=0  height=76 width=155><tr><td height=20></td></tr><tr><td valign=middle align=center style='color:#ffffff;'>");
      document.write("用户名：" + cookies_uid + "<br/><a href='/' class=white>首页</a> <a href='/shop/ShoppingCart.asp' class=white>购物车</a> <a href='/user_login.asp?action=logout' class=white>退出</a></td></tr></table></td>");
  document.write("</tr>");
  document.write("</table>");
  document.write("<table width=width="+web_wide+" border=0 cellspacing=0 cellpadding=0>");
  document.write("<tr>");
  document.write("<td height=3 bgcolor=#ffffff> </td>");
  document.write("</tr>");
  document.write("</table>");
  }
}

function web_top2011(ttype, cookies_uid) {
    //ttype:1表示带登陆框的，2表示导航条
    var tmpstr = "";
    var web_wide = "1003";
    if (cookies_uid == "0") cookies_uid = "";
    if (ttype == 1) {
        var htmltxt = "";
        htmltxt += "<div class='login'>";
        htmltxt += "<form name='login_form' method='post' action='/user_login.asp' onsubmit='return login_check(login_form'>";
        htmltxt += "用户名：<input name='userid' type='text' size='15' value='' class='ip'>";
        htmltxt += "&nbsp; 密码：<input name='password' type='password' size='15' class='ip'>&nbsp;";
        htmltxt += "<input class='dl' border='none' onclick='login_form.submit();'>&nbsp;";
        htmltxt += "<a href='/user_reg.asp'><img src='/images/main/ico_reg.jpg' width='78' height='25' border='0'></a>";
        htmltxt += "</form>";
        htmltxt += "</div>";
        $("#loginDiv").html(htmltxt);
    }
    if (ttype == 2) {
        var htmltxt = "";
        htmltxt += "<div class='navv'>";
        htmltxt += "<span class='lwss'><a href='/sjhh_lesson.asp'>考博课堂</a></span>";
        htmltxt += "<span class='lwss'><a href='/sjhh_news.asp'>简章 资讯</a></span>";
        htmltxt += "<span class='lwss'><a href='/sjhh_down.asp'>资料下载</a></span>";
        htmltxt += "<span class='lwse'><a href='/forum/index.htm'>考博论坛</a></span>";
        htmltxt += "<div class='clear'></div>";
        htmltxt += "</div>";
        $("#loginDiv").html(htmltxt);

        htmltxt = "";
        htmltxt += "<a href='/' class='white'>首页</a>"
        htmltxt += "<a href='/user_reg.asp' class='white'>注册</a>"
        htmltxt += "<a href='/user_login.asp' class='white'>登录</a>"
        htmltxt += "<a href='/user_login.asp?action=logout' class='white'>退出</a>"
        $("#configDiv").html(htmltxt);
    }
    if (ttype == 3) {
        document.write("<table width=" + web_wide + " border=0 cellspacing=0 cellpadding=0 bgcolor=#4866BA>");
        document.write("<tr>");
        document.write("<td width=365  valign=top><img src='/images/main/logo_2.jpg' width=365 height=76 border=0></td>");
        document.write("<td background='/images/main/nav_lesson.jpg' valign=middle  align=center width=122><br><a href='/sjhh_lesson.asp'>考博课堂</a></td>");
        document.write("<td background='/images/main/nav_news.jpg' valign=middle  align=center width=115><br><a href='/sjhh_news.asp'>简章 资讯</a></td>");
        document.write("<td background='/images/main/nav_down.jpg' valign=middle  align=center width=111><br><a href='/sjhh_down.asp'>资料下载</a></td>");
        document.write("<td background='/images/main/nav_bbs.jpg' valign=middle  align=center width=133><br><a href='/forum/index.htm'>考博论坛</a></td>");
        document.write("<td valign=top  width=2><img src='/images/main/nav_right_vline.jpg' width=2 height=76 border=0></td>");
        document.write("<td background='/images/main/nav_right_bg.jpg' height=76><table border=0 cellpadding=0 cellspacing=0  height=76 width=155><tr><td height=20></td></tr><tr><td valign=middle align=center style='color:#ffffff;'>");
        document.write("用户名：" + cookies_uid + "<br/><a href='/' class=white>首页</a> <a href='/shop/ShoppingCart.asp' class=white>购物车</a> <a href='/user_login.asp?action=logout' class=white>退出</a></td></tr></table></td>");
        document.write("</tr>");
        document.write("</table>");
        document.write("<table width=width=" + web_wide + " border=0 cellspacing=0 cellpadding=0>");
        document.write("<tr>");
        document.write("<td height=3 bgcolor=#ffffff> </td>");
        document.write("</tr>");
        document.write("</table>");
    }
}
