document.writeln("<LINK ");
document.writeln("href=\"http://www.sjsknet.com/templets/images/index/css.css\" type=text/css rel=stylesheet>");
document.writeln("  <table width=\"906\" border=\"0\" align=\"center\" cellpadding=\"0\" bgcolor=\"#E77918\" cellspacing=\"0\">");
document.writeln("  <tr>");
document.writeln("    <td  height=\"5\"><\/td>");
document.writeln("  <\/tr>");
document.writeln("<\/table>");
document.writeln("<table width=\"906\"  height=\"35\" border=\"0\" align=\"center\"  cellpadding=\"0\" cellspacing=\"0\" class=\"hui_12\" style=\"background:url(http://www.sjsknet.com/templets/images/index/top_bj2.gif) top left no-repeat;\"");
document.writeln("  <tr>");

//为统一登陆 开始
var username=RequestCookies("username","__");
username = URLdecode(username);
if(username =="" || username ==undefined || username=="__")
{
document.writeln("<form name='form1' method='POST' action='/member/index_do.php'><input type=\"hidden\" name=\"fmdo\" value=\"login\"><input type=\"hidden\" name=\"dopost\" value=\"login\"><input type=\"hidden\" name=\"gourl\" value=\"http:\/\/www.sjsknet.com/member/index_do.php\">");

document.writeln("<td width=\"733\" height=\"30\" valign=\"top\"  style=\"padding-top:3px;\" >&nbsp;");
document.writeln("<span class=\"hui_12\">会员登陆:用户名： </span><input name=\"userid\" type=\"text\" class=\"ipt-txt\" id=\"txtUsername\" size=8 \/>");

document.writeln("&nbsp;&nbsp;<span class=\"hui_12\">密码：</span><input name=\"pwd\" type=\"password\" class=\"ipt-txt\" id=\"txtPassword\" size=8 \/>");
document.writeln("&nbsp;&nbsp;<span class=\"hui_12\">验证码：</span><input name=\"vdcode\" type=\"text\" id=\"vdcode\" class=\"ipt-txt\" style='width:50px;text-transform:uppercase;' height=\"5\" \/>&nbsp;<img id=\"vdimgck\" src=\"/include/vdimgck.php\"  align=\"absmiddle\" \/>&nbsp;&nbsp;&nbsp;<span class=\"bai_12\"><input type=\"submit\" class=\"btn-1\"  value=\"登陆\">&nbsp;&nbsp;<a href=\"http:\/\/www.sjsknet.com/member/index_do.php\" target=\"_blank\" class=\"hui_b1\">会员注册<\/a><\/td></from>");
}
else
	document.writeln("<td width=\"733\" height=\"3\">&nbsp;<span class=\"hui_12\">"+username+",你好！欢迎登录设计时空网:::&nbsp;&nbsp;&nbsp;<a href=\"http:\/\/www.sjsknet.com/bbs\/\"><span class=\"hui_12\">进入论坛</span></a>&nbsp;&nbsp;&nbsp;<a href=\"http:\/\/www.sjsknet.com/member\/\"><span class=\"hui_12\">会员中心</span></a>&nbsp;&nbsp;&nbsp;<a href=\"http:\/\/www.sjsknet.com/bbs\/exit.php\"><span class=\"hui_12\">安全退出</span></a><\/span><\/td>")
//为统一登陆 结束


document.writeln("    <td width=\"217\" align=\"center\"height=\"30\" valign=\"top\"  style=\"padding-top:4px;\"><a href=\"#\" class=\"hong_n1\"onclick=\"this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http:\/\/www.sjsknet.com\')\">·设为首页<\/a>&nbsp;&nbsp;<a href=\"javascript:window.external.addFavorite(\'http:\/\/www.sjsknet.com\',\'设计时空网\')\" class=\"hong_n1\">·加为收藏<\/a>&nbsp;<a href=\"http:\/\/www.sjsknet.com\" class=\"hong_n1\">·返回首页<\/a><\/td>");
document.writeln("  <\/tr>");
document.writeln("<\/table>");
document.writeln("")

function RequestCookies(cookieName, dfltValue)
{
    var lowerCookieName = cookieName.toLowerCase();
    var cookieStr = document.cookie;
    
    if (cookieStr == "")
    {
        return dfltValue;
    }
    
    var cookieArr = cookieStr.split("; ");
    var pos = -1;
    for (var i=0; i<cookieArr.length; i++)
    {
        pos = cookieArr[i].indexOf("=");
        if (pos > 0)
        {
            if (cookieArr[i].substring(0, pos).toLowerCase() == lowerCookieName)
            {
                return cookieArr[i].substring(pos+1, cookieArr[i].length);
              //  return decodeURI(cookieArr[i].substring(pos+1, cookieArr[i].length));
            }
        }
    }
    
    return dfltValue;
}
function URLdecode(str) {
        var ret = "";
        for(var i=0;i<str.length;i++) {
                var chr = str.charAt(i);
                if(chr == "+") {
                        ret += " ";
                }else if(chr=="%") {
                        var asc = str.substring(i+1,i+3);
                        if(parseInt("0x"+asc)>0x7f) {
                                ret += decodeURI("%"+ str.substring(i+1,i+9));
                                i += 8;
                        }else {
                                ret += String.fromCharCode(parseInt("0x"+asc));
                                i += 2;
                        }
                }else {
                        ret += chr;
                }
        }
        return ret;
}

document.writeln("<\/form>")
