﻿document.writeln("<form id=\"form9\" action=\"/user/\" method=\"post\">");
document.writeln("<div id=\"user\">");
document.writeln("<div id=\"div_user\">");
document.writeln("<div id=\"a\">");
document.writeln("<div id=\"sjx\"><a href=\"/usercenter/cpinbox/\">收件箱</a></div>");
document.writeln("<div id=\"sjxnum\"><a id=\"user_message\" href=\"\">0</a></div>");
document.writeln("<div id=\"tz\"><a href=\"/usercenter/notification/\">通知</a></div>");
document.writeln("<div id=\"tznum\"><a id=\"user_noti\" href=\"\">0</a></div>");
document.writeln("<div id=\"yhzx\"><a href=\"/usercenter/default/\">用户中心</a></div>");
document.writeln("<div id=\"but\"><input name=\"imageField2\" type=\"image\" src=\"/img.soszx.com/login/search_but.gif\"></div>");
document.writeln("<div id=\"textbox\"><input name=\"tx_search\" type=\"text\" size=\"10\" /></div>");
document.writeln("<div id=\"ksss\">快速搜索</div><div id=\"tc\"><a href=\"/loginout/\">退出</a></div>");
document.writeln("<div id=\"hy\">尊敬的会员:<a id=\"user_info\"></a>，您好！欢迎您再次访问搜十字绣！</div>");
document.writeln("</div>");
document.writeln("<div id=\"div_login\">");
document.writeln("<div id=\"b\">");
document.writeln("<div id=\"zc\"><a onclick=\"OpenReg()\" title=\"免费注册\">[免费注册]</a></div>");
document.writeln("<div id=\"dl\"><a onclick=\"OpenLogin()\" title=\"请登陆\">[请登陆]</a></div>");
document.writeln("<div id=\"com\">尊敬的客户，您好！欢迎您访问搜十字绣！</div>");
document.writeln("<div id=\"lives\"><a href=\"/search/\" target=\"_blank\">搜索导航</a></div>");
document.writeln("</div>");
document.writeln("</div>");
document.writeln("</div>");
document.writeln("</div>");
document.writeln("<div class=\"backbg\" id=\"light\"></div>");
document.writeln("<div id=\"login\">");
document.writeln("<div id=\"login_top\">");
document.writeln("<span onclick=\"CloseLogin()\"></span>");
document.writeln("</div>");
document.writeln("<div id=\"login_center\">");
document.writeln("<ul>");
document.writeln("<li>用户名：</li>");
document.writeln("<li><input name=\"tx_username\" type=\"text\" /></li>");
document.writeln("</ul>");
document.writeln("<ul>");
document.writeln("<li>密　码：</li>");
document.writeln("<li><input name=\"tx_password\" type=\"password\" /></li>");
document.writeln("</ul>");
document.writeln("<ul>");
document.writeln("<li>验证码：</li>");
document.writeln("<li><input name=\"tx_add\" type=\"text\" size=\"10\" /></li>");
document.writeln("<li><img src=\"/CheckCode.aspx\" id=\"safecode1\" border=\"0\" onclick=\"reloadcode()\" /></li>");
document.writeln("</ul>");
document.writeln("<div>[<a onclick=\"OpenReg()\">注册新用户</a>]</div>");
document.writeln("</div>");
document.writeln("<div id=\"reg\">");
document.writeln("<ul>");
document.writeln("<li>用户名：<input name=\"reg_user\" type=\"text\" style=\"width: 80px\" /></li>");
document.writeln("<li>　验证：<input name=\"reg_add\" type=\"text\" style=\"width: 30px\" /><img src=\"/CheckCode.aspx\" id=\"Img1\" border=\"0\" onclick=\"reloadcode()\" /></li>");
document.writeln("</ul>");
document.writeln("<ul>");
document.writeln("<li>密　码：<input name=\"reg_pass\" type=\"password\" style=\"width: 70px\" /></li>");
document.writeln("<li>　重复密码：<input name=\"red_reg_pass\" type=\"password\" style=\"width: 70px\" /></li>");
document.writeln("</ul>");
document.writeln("<ul>");
document.writeln("<li>手　机：<input name=\"reg_phone\" style=\"width: 80px\" /></li>");
document.writeln("<li>　QQ：<input name=\"reg_qq\" style=\"width: 70px\" /></li>");
document.writeln("</ul>");
document.writeln("<ul>");
document.writeln("<li>省　份：<select id=\"reg_province\" name=\"reg_province\">");
document.writeln("<option value=\"安徽省\">安徽省</option>");
document.writeln("<option value=\"北京市\">北京市</option>");
document.writeln("<option value=\"福建省\">福建省</option>");
document.writeln("<option value=\"甘肃省\">甘肃省</option>");
document.writeln("<option value=\"广东省\">广东省</option>");
document.writeln("<option value=\"广西省\">广西省</option>");
document.writeln("<option value=\"贵州省\">贵州省</option>");
document.writeln("<option value=\"海南省\">海南省</option>");
document.writeln("<option value=\"河北省\">河北省</option>");
document.writeln("<option value=\"河南省\">河南省</option>");
document.writeln("<option value=\"黑龙江\">黑龙江</option>");
document.writeln("<option value=\"湖北省\">湖北省</option>");
document.writeln("<option value=\"湖南省\">湖南省</option>");
document.writeln("<option value=\"吉林省\">吉林省</option>");
document.writeln("<option value=\"江苏省\">江苏省</option>");
document.writeln("<option value=\"江西省\">江西省</option>");
document.writeln("<option value=\"辽宁省\">辽宁省</option>");
document.writeln("<option value=\"内蒙古\">内蒙古</option>");
document.writeln("<option value=\"宁夏\">宁夏</option>");
document.writeln("<option value=\"青海省\">青海省</option>");
document.writeln("<option value=\"山东省\">山东省</option>");
document.writeln("<option value=\"山西省\">山西省</option>");
document.writeln("<option value=\"陕西省\">陕西省</option>");
document.writeln("<option value=\"上海市\">上海市</option>");
document.writeln("<option value=\"四川省\">四川省</option>");
document.writeln("<option value=\"天津市\">天津市</option>");
document.writeln("<option value=\"西藏\">西藏</option>");
document.writeln("<option value=\"新疆省\">新疆省</option>");
document.writeln("<option value=\"云南省\">云南省</option>");
document.writeln("<option value=\"浙江省\">浙江省</option>");
document.writeln("<option value=\"重庆市\">重庆市</option>");
document.writeln("</select></li>");
document.writeln("<li>　注册意向：<select id=\"reg_sity\" name=\"reg_sity\">");
document.writeln("<option value=\"请选择\">请选择</option>");
document.writeln("<option value=\"加盟意向\">加盟意向</option>");
document.writeln("<option value=\"代理意向\">代理意向</option>");
document.writeln("<option value=\"零售产品\">零售产品</option>");
document.writeln("<option value=\"成品交易\">成品交易</option>");
document.writeln("<option value=\"绣法学习\">绣法学习</option>");
document.writeln("</select></li>");
document.writeln("</ul>");
document.writeln("<ul>");
document.writeln("<li></li>");
document.writeln("<li></li>");
document.writeln("</ul>");
document.writeln("</div>");
document.writeln("<div id=\"login_bt\" class=\"login_bottom\"><br /><input name=\"imageField3\" type=\"image\" src=\"/img.soszx.com/login/login_but.gif\"></div>");
document.writeln("<div id=\"reg_bt\" class=\"login_bottom\"><br /><input name=\"imageField4\" type=\"image\" src=\"/img.soszx.com/login/reg_but.gif\"></div>");
document.writeln("</div>");
document.writeln("</form>");

var dBody = null;
function getBody() {
    if (!dBody) dBody = (document.compatMode && document.compatMode.indexOf('CSS') > -1) ? document.documentElement : document.body; return dBody;
}
function getScrollX() {
    return window.pageXOffset || window.scrollX || getBody().scrollLeft || 0;
}
function getScrollY() {
    return window.pageYOffset || window.scrollY || getBody().scrollTop || 0;
}
function OpenLogin() {
    var x = document.documentElement.clientWidth / 2 + getScrollX() - 446 / 2;
    var y = document.documentElement.clientHeight / 2 + getScrollY() - 264 / 2;
    var sWidth = document.body.scrollWidth;
    var sHeight = document.body.scrollHeight;
    var xHeight = document.documentElement.clientHeight;
    if (sHeight > xHeight) {
        var SSS = sHeight
    }
    else {
        var SSS = xHeight
    }
    var sHH = document.documentElement.clientHeight;
    document.getElementById('light').style.display = 'block';
    document.getElementById('light').style.width = sWidth + "px";
    document.getElementById('light').style.height = SSS + "px";
    document.getElementById('login').style.display = 'block';
    document.getElementById('login').style.display = 'block';
    document.getElementById('login').style.top = y + "px";
    document.getElementById('login').style.left = x + "px";
    reg.style.display = "none";
    login_center.style.display = "block";
    login_bt.style.display = "block";
    reg_bt.style.display = "none";
}
function OpenReg() {
    var x = document.documentElement.clientWidth / 2 + getScrollX() - 446 / 2;
    var y = document.documentElement.clientHeight / 2 + getScrollY() - 264 / 2;
    var sWidth = document.body.scrollWidth;
    var sHeight = document.body.scrollHeight;
    var xHeight = document.documentElement.clientHeight;
    if (sHeight > xHeight) {
        var SSS = sHeight
    }
    else {
        var SSS = xHeight
    }
    var sHH = document.documentElement.clientHeight;
    document.getElementById('light').style.display = 'block';
    document.getElementById('light').style.width = sWidth + "px";
    document.getElementById('light').style.height = SSS + "px";
    document.getElementById('login').style.display = 'block';
    document.getElementById('login').style.display = 'block';
    document.getElementById('login').style.top = y + "px";
    document.getElementById('login').style.left = x + "px";
    login_center.style.display = "none";
    reg.style.display = "block";
    login_bt.style.display = "none";
    reg_bt.style.display = "block";
}
function CloseLogin() {
    document.getElementById('light').style.display = 'none';
    document.getElementById('login').style.display = 'none';
}
function reloadcode() {
    var verify1 = document.getElementById('safecode1');
    var verify = document.getElementById('safecode');
    verify1.setAttribute('src', '/CheckCode.aspx?' + Math.random());
    verify.setAttribute('src', '/CheckCode.aspx?' + Math.random());
    //这里必须加入随机数不然地址相同我发重新加载
}
function tsearch() {
    location.href("/product=" + document.getElementById("keyWord1").value + "/");
}
function csearch() {
    location.href("/shizixiuchengpin=" + document.getElementById("keyWord1").value + "/");
}
function psearch() {
    location.href("/train=" + document.getElementById("keyWord1").value + "/");
}
function msearch() {
    location.href("/message=" + document.getElementById("keyWord1").value + "/");
}
function nsearch() {
    location.href("/news=" + document.getElementById("keyWord1").value + "/");
}
function newsearch() {
    location.href("/news=" + document.getElementById("tx_kew").value + "/");
}
function prosearch() {
    location.href("/product=" + document.getElementById("tx_kew").value + "/");
}
function trasearch() {
    location.href("/train=" + document.getElementById("tx_kew").value + "/");
}
function salsearch() {
    location.href("/sales=" + document.getElementById("tx_kew").value + "/");
}
function msgsearch() {
    location.href("/message=" + document.getElementById("tx_kew").value + "/");
}
function chesearch() {
    location.href("/shizixiuchengpin=" + document.getElementById("tx_kew").value + "/");
}
function searchcn() {
    location.href("http://www.soszx.cn/s/?wd=" + document.getElementById("tx_searchcn").value + "");
}
