var username;
var pwd;
//document.write("<script src='http://www.analysys.com.cn/main/user/cookie.php'></script>");
//username = "chaoran828";
username = getCookie('savedusername');
//document.write("sss="+username);
//pwd=getCookie('saveduserpwd');

if(username =="")
{
document.write("");
document.write("<table width='100%' border='0' cellpadding='4' cellspacing='0' bgcolor='ffffff'>");
document.write("<form action='http://www.analysys.com.cn/main/user/login.php?inpage="+base64encode(utf16to8(document.location.href))+"' method='post' name='frm_index_top' id='frm_index_top' >");
document.write("<input name='inpage' type='hidden' id='inpage' value='"+base64encode(utf16to8(document.location.href))+"'>");
document.write("<input name='isResult' type='hidden' id='isResult' value='1'>");
document.write("<tr>");
document.write("<td width='4%'>&nbsp;</td>");
document.write("<td width='20%'>用户名：<input name='UserName' type='text' size='9'></td>");
document.write("<td width='12%'>密&nbsp;&nbsp;码：<input name='Password' type='password'  size='5'></td>");
document.write("<td width='29%'>保存密码? <select name='cookiedate'>");
document.write("<option value='0'>不保存</option>");
document.write("<option value='1'>保存一天</option>");
document.write("<option value='30'>保存一月</option>");
document.write("<option value='365'>保存一年</option>");
document.write("</select>&nbsp;<input type='submit' value='登录'></td>");
document.write("<td width='12%'><a href='http://www.analysys.com.cn/main/user/'  class=huang9>现在注册</a></td>");
document.write("<td width='12%'><a href='http://www.analysys.com.cn/main/user/login.php?inpage="+base64encode(utf16to8(document.location.href))+"'  class=huang9>忘记密码</a></td>");
document.write("<td width='13%'><a href='http://www.enfodesk.com/' target='_blank' class=lan10>EnfoDesk</a></td>");
document.write("<td width='10%'><a href='http://english.analysys.com.cn' target=_blank class=lan10>English</a></td>");
document.write("<td width='2%'>&nbsp;</td>");
document.write("</tr>");
document.write("</form>");
document.write("</table>");

}
else
{
document.write("");
document.write("<table width='100%' border='0' cellpadding='6' cellspacing='0'>");
document.write("<tr>");
document.write("<td width='9%'>&nbsp;</td>");
document.write("<td width='30%'>"+username+",欢迎登陆易观国际！！<a class=lan10 href='http://www.analysys.com.cn/main/user/logout.php?inpage="+base64encode(utf16to8(document.location.href))+"'>登出</a></td>");
document.write("<td width='14%'><a href='http://www.enfodesk.com/' target='_blank' class=lan10>EnfoDesk</a></td>");
document.write("<td width='14%'><a href='http://english.analysys.com.cn' target=_blank class=lan10>English</a></td>");
document.write("<td width='4%'>&nbsp;</td>");
document.write("</tr>");
document.write("</table>");
}
