﻿$(document).ready(function() {
    $('.cssraindemo1 tbody tr:even').addClass('odd');
    $('.cssraindemo1 tbody tr').hover(
              function() { $(this).addClass('highlight'); },
              function() { $(this).removeClass('highlight'); }
             );
    $('.cssraindemo1 tbody tr').click(
              function() { $(this).toggleClass('selected'); }
             );
});
(function($) {
    var m = {
        '\b': '\\b',
        '\t': '\\t',
        '\n': '\\n',
        '\f': '\\f',
        
        '\r': '\\r',
        '"': '\\"',
        '\\': '\\\\'
    },
        s = {
            'array': function(x) {
                var a = ['['], b, f, i, l = x.length, v;
                for (i = 0; i < l; i += 1) {
                    v = x[i];
                    f = s[typeof v];
                    if (f) {
                        v = f(v);
                        if (typeof v == 'string') {
                            if (b) {
                                a[a.length] = ',';
                            }
                            a[a.length] = v;
                            b = true;
                        }
                    }
                }
                a[a.length] = ']';
                return a.join('');
            },
            'boolean': function(x) {
                return String(x);
            },
            'null': function(x) {
                return "null";
            },
            'number': function(x) {
                return isFinite(x) ? String(x) : 'null';
            },
            'object': function(x) {
                if (x) {
                    if (x instanceof Array) {
                        return s.array(x);
                    }
                    var a = ['{'], b, f, i, v;
                    for (i in x) {
                        v = x[i];
                        f = s[typeof v];
                        if (f) {
                            v = f(v);
                            if (typeof v == 'string') {
                                if (b) {
                                    a[a.length] = ',';
                                }
                                a.push(s.string(i), ':', v);
                                b = true;
                            }
                        }
                    }
                    a[a.length] = '}';
                    return a.join('');
                }
                return 'null';
            },
            'string': function(x) {
                if (/["\\\x00-\x1f]/.test(x)) {
                    x = x.replace(/([\x00-\x1f\\"])/g, function(a, b) {
                        var c = m[b];
                        if (c) {
                            return c;
                        }
                        c = b.charCodeAt();
                        return '\\u00' +
                            Math.floor(c / 16).toString(16) +
                            (c % 16).toString(16);
                    });
                }
                return '"' + x + '"';
            }
        };

    $.toJSON = function(v) {
        var f = isNaN(v) ? s[typeof v] : s['number'];
        if (f) return f(v);
    };

    $.parseJSON = function(v, safe) {
        if (safe === undefined) safe = $.parseJSON.safe;
        if (safe && !/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/.test(v))
            return undefined;
        return eval('(' + v + ')');
    };

    $.parseJSON.safe = false;

})(jQuery);

var Lucee = {
    version: '1.0',
    layer: new Array(),
    layerObject: new Array()
};

//数组操作
Array.prototype.unique = function() {
    var a = {}; for (var i = 0; i < this.length; i++) {
        if (typeof a[this[i]] == "undefined")
            a[this[i]] = 1;
    }
    this.length = 0;
    for (var i in a)
        this[this.length] = i;
    return this;
}
String.prototype.replaceAll = function(s1, s2) {
    return this.replace(new RegExp(s1, "gm"), s2);
}
String.prototype.Trim = function() {
    return this.replace(/(^\s*)|(\s*$)/g, " ");
}


/*设置转项*/
Lucee.LocationHref = function(url, message) {
    if (message != undefined) {
        document.location.href = url;

    }
    else {
        document.location.href = url;
    }
}

//取地址栏参数
Lucee.getUrlParameter = function(seekParameter) {
    var reg = new RegExp("(^|&)" + seekParameter + "=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if (r != null)
        return unescape(r[2]);
    return "";
}
//获得滚动条高度
Lucee.GetScrollTop = function() {
    var scrollTop = 0;
    if (document.documentElement && document.documentElement.scrollTop) {
        scrollTop = document.documentElement.scrollTop;
    }
    else if (document.body) {
        scrollTop = document.body.scrollTop;
    }
    return scrollTop;
}

/*弹出图层居中*/
Lucee.Set_DivCenter = function(objid, w, h) {
    $(objid).css("left", (window.screen.availWidth - parseInt(w)) / 2);
    $(objid).css("top", ((window.screen.availHeight - parseInt(h)) / 2) - 75 + luceeOperater.GetScrollTop());
}

//判断字符串是否为数字 
Lucee.CheckInt = function(input) {
    var re = /^[1-9]+[0-9]*]*$/;
    if (!re.test(input))
        return false;
    else
        return true;
}
//判断是否是邮编
Lucee.CheckZip = function(input) {
    if (input != "") {   //邮政编码判断
        var pattern = /^[0-9]{6}$/;
        flag = pattern.test(input);
        if (!flag) {
            return false;
        }
        else {
            return true;
        }
    }
    else {
        return true;
    }
}

//判断字符串是否为
Lucee.CheckIp = function(input) {
    var re = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])(\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])){3}$/;
    if (!re.test(input))
        return false;
    else
        return true;
}
//判断字符串是否为Email
Lucee.CheckEmail = function(input) {
    var re = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
    if (!re.test(input))
        return false;
    else
        return true;
}
//判断是否为日期格式
Lucee.CheckDate = function(input) {
    var re = /^\d{4}-(0?[1-9]|1[0-2])-(0?[1-9]|[1-2]\d|3[0-1])$/;
    if (!re.test(input))
        return false;
    else
        return true;
}
//获得xy坐标
Lucee.GetObjPosition = function(obj) {
    var position = '';
    if (obj.getBoundingClientRect) {
        position = obj.getBoundingClientRect();
        return new Array(position.left, position.top);

    }
    else if (document.getBoxObjectFor) {
        position = document.getBoxObjectFor(obj);
        return new Array(position.x, position.y);
    }
    else {
        var pos = [obj.offsetLeft, obj.offsetTop];
        var parent = obj.offsetParent;
        while (parent) {
            pos[0] += parent.offsetLeft;
            pos[1] += parent.offsetTop;
            parent = parent.offsetParent;
        }
        return new Array(pos[0], pos[1]);
    }
}

/*弹出图层居中*/
Lucee.Set_DivCenter = function(objid, w, h) {
    $(objid).css("left", (window.screen.availWidth - parseInt(w)) / 2);
    $(objid).css("top", ((window.screen.availHeight - parseInt(h)) / 2) - 75 + Lucee.GetScrollTop());
}

Lucee.PopWindow = function(flag) {
    var html = "";
    switch (flag) {
        case "collect":
            html += "<div class=\"TCwindowsk02\" id=\"collection_sc\" style=\" left:50%; top:10%; height:200px;\">";
            html += "<div class=\"Operating\"><b>收藏设置</b><a class=\"close\" href=\"#nogo\" onclick=\"Lucee.PopWindowClose()\"> </a></div>";
            html += "<div class=\"FormZone\">";
            html += "<table width=\"324\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
            html += "<tr>";
            html += "<td width=\"85\" align=\"right\" valign=\"middle\"><b>个性标签：</b></td>";
            html += "<td width=\"126\" valign=\"middle\"><input type=\"text\" id='user_tagList' class=\"inbox\" size=\"16\" /></td>";
            html += "<td width=\"94\" valign=\"middle\"><span>空格分隔最多3个</span></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td width=\"85\" align=\"right\" valign=\"middle\"><b>我常用的：</b></td>";
            html += "<td colspan=\"2\" valign=\"middle\" class=\"dx\">";
            html += "<div id='taglist'></div>";
            html += "</td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td width=\"28%\" align=\"right\" valign=\"middle\">&nbsp;</td>";
            html += "<td colspan=\"2\" valign=\"middle\" class=\"buttonzone\"><input name=\"\" type=\"button\" class=\"button\" onclick=\"Lucee.AddTagList()\" value=\"收藏起来\"/></td>";
            html += "</tr>";
            html += "</table>";
            html += "</div>";
            html += "<div class=\"bottom\"></div>";
            html += "</div>";
            html += "<div class=\"TCwindowMasksk02\" id='filterbg' style=\"height:100%;\"></div>";
            $("#publichead").after(html);
            Lucee.Set_DivCenter("#collection_sc", 360, 200);
            $.post("/globe/", { action: 2, rd: Math.random() }, function(res) {
                if (res == "NOTLOGIN") {
                    $("#collection_sc").remove();
                    $("#filterbg").remove();
                    Lucee.PopWindow("login");
                    return;
                }
                else {
                    if (res == "") {
                        $("#taglist").html("您暂时没有收藏标签!");
                    }
                    else {
                        var json = eval('(' + res + ')');
                        var pthtml = "";
                        for (var i = 0; i < json.length; i++) {
                            pthtml += "<a href='#nogo' onclick=\"Lucee.AddTagToText(this)\">" + json[i]["fname"] + "</a>";
                        }
                        $("#taglist").html(pthtml);
                    }
                }
            })
            break;
        case "login":
            html += "<div class=\"TCwindowsk02\" id=\"collection_login\" style=\" left:20%; top:10%; height:200px;\">";
            html += "<div class=\"Operating\"><b>登录</b><a class=\"close\" href=\"#nogo\" onclick=\"Lucee.PopWindowClose()\"> </a></div>";
            html += "<div class=\"FormZone\">";
            html += "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
            html += "<tr>";
            html += "<td width=\"19%\" align=\"right\" valign=\"middle\"><b>邮 箱：</b></td>";
            html += "<td width=\"81%\" valign=\"middle\"><input type=\"text\" id='username' class=\"inbox\" size=\"30\" /></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td width=\"19%\" align=\"right\" valign=\"middle\"><b>密 码：</b></td>";
            html += " <td width=\"81%\" valign=\"middle\"><input name=\"\" type=\"password\" id='password' class=\"inbox\"  size=\"15\" />&nbsp;&nbsp;<a href=\"/user/FindPassword.aspx\">找回密码</a></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td align=\"right\" valign=\"middle\">&nbsp;</td>";
            html += "<td valign=\"middle\"><input name=\"input\" type=\"checkbox\" id='isread' value=\"1\" /><label>保存登录信息</label></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td align=\"right\" valign=\"middle\"  style=\"padding-top:15px;\">&nbsp;</td>";
            html += "<td valign=\"middle\" class=\"buttonzone\"><input name=\"\" type=\"button\" class=\"button\" onclick=\"Lucee.UserLogin()\" value=\"登录\"/>&nbsp;&nbsp;&nbsp;<a href=\"#nogo\" onclick=\"Lucee.UserLoginOrRegister('reg')\">注册帐号</a></td>";
            html += "</tr>";
            html += "</table>";
            html += "</div>";
            html += "<div class=\"bottom\"></div>";
            html += "</div>";
            html += "<div class=\"TCwindowMasksk02\" id='filterbg' style=\"height:100%;\"></div>";
            $("#publichead").after(html);
            Lucee.Set_DivCenter("#collection_login", 360, 200);
            break;
        case "reg":
            html += "<div class=\"TCwindowsk02\" id=\"collection_login_t\" style=\" left:20%; top:10%; height:200px;\">";
            html += "<div class=\"Operating\"><b>注册</b><a class=\"close\" href=\"#nogo\" onclick=\"Lucee.PopWindowClose()\"> </a></div>";
            html += "<div class=\"FormZone\">";
            html += "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
            html += "<tr>";
            html += "<td width=\"25%\" align=\"right\" valign=\"middle\"><b>邮 箱：</b></td>";
            html += "<td width=\"75%\" valign=\"middle\"><input type=\"text\" id='tb_email' class=\"inbox\" size=\"28\" /></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td  align=\"right\" valign=\"middle\"><b>昵 称：</b></td>";
            html += "<td  valign=\"middle\"><input type=\"text\" id='tb_nickname' class=\"inbox\" size=\"15\" /> <span>1-6的字符或汉字</span></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td align=\"right\" valign=\"middle\"><b>密 码：</b></td>";
            html += "<td valign=\"middle\"><input type=\"password\" id='tb_password' class=\"inbox\" size=\"15\" /> <span>密码长度6-16个字符</span></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td  align=\"right\" valign=\"middle\"><b>重复密码：</b></td>";
            html += "<td  valign=\"middle\"><input type=\"password\" id='tb_repassword' class=\"inbox\" size=\"15\" /></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td  align=\"right\" valign=\"middle\"><b>我是学生：</b></td>";
            html += "<td  valign=\"middle\"><select id='tk_areaname'><option value='重庆西永'>重庆西永</option><option value='重庆电力高等专科学校'>重庆电力高等专科学校</option><option value='重庆工商职业学院（电大）'>重庆工商职业学院（电大）</option><option value='海联学院'>海联学院</option><option value='南方翻译学院'>南方翻译学院</option><option value='西南政法大学(沙坪坝校区)'>西南政法大学(沙坪坝校区)</option><option value='重庆正大软件职业技术学院'>重庆正大软件职业技术学院</option><option value='重庆理工大学'>重庆理工大学</option><option value='重庆交通大学'>重庆交通大学</option><option value='重庆邮电大学'>重庆邮电大学</option><option value='重庆工商大学'>重庆工商大学</option><option value='重庆教育学院'>重庆教育学院</option><option value='重庆工程职业技术学院'>重庆工程职业技术学院</option><option value='重庆机电职业技术学院'>重庆机电职业技术学院</option><option value='重庆工商大学融智学院'>重庆工商大学融智学院</option><option value='四川外语学院'>四川外语学院</option><option value='重庆医药高等专科学校(大学城校区)'>重庆医药高等专科学校(大学城校区)</option><option value='工商大学江北校区'>工商大学江北校区</option><option value='重庆化工职工大学'>重庆化工职工大学</option><option value='重庆房地产学院'>重庆房地产学院</option><option value='重庆师范大学(大学城)'>重庆师范大学(大学城)</option><option value='重庆师范大学(沙坪坝)'>重庆师范大学(大学城)</option><option value='四川美术学院（大学城）'>四川美术学院（大学城）</option><option value='城市管理职业学院'>城市管理职业学院</option><option value='重庆大学(大学城校区)'>重庆大学(大学城校区)</option><option value='重庆医科大学(大学城校区)'>重庆医科大学(大学城校区)</option><option value='重庆科技学院(大学城校区)'>重庆科技学院(大学城校区)</option><option value='重庆工商大学派斯学院'>重庆工商大学派斯学院</option><option value='重庆邮电大学移通学院'>重庆邮电大学移通学院</option><option value='重庆西南大学育才学院'>重庆西南大学育才学院</option><option value='重庆师范大学涉外商贸学院'>重庆师范大学涉外商贸学院</option><option value='长江师范学院'>长江师范学院</option><option value='西南大学'>西南大学</option><option value='西南政法大学（新校区）'>西南政法大学（新校区）</option><option value='重庆民生职业技术学院'>重庆民生职业技术学院</option><option value='重庆后勤工程学院'>重庆后勤工程学院</option></select></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<tr>";
            html += "<tr>";
            html += "<td align=\"right\" valign=\"middle\">&nbsp;</td>";
            html += "<td valign=\"middle\"><div class=\"skinSelectcheckbox ho\"></div>&nbsp<a href='#nogo'>已经阅读协议</a></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td align=\"right\" valign=\"middle\"  style=\"padding-top:15px;\">&nbsp;</td>";
            html += "<td valign=\"middle\" class=\"buttonzone\"><input name=\"\" onclick=\"Lucee.UserRegister('5')\" type=\"button\" class=\"button\" onclick=\"Lucee.UserLogin('login')\" value=\"注册\"/>&nbsp;&nbsp;&nbsp;<a href=\"#nogo\" onclick=\"Lucee.UserLoginOrRegister('login')\">已有账号,立即登陆</a></td>";
            html += "</tr>";
            html += "</table>";
            html += "</div>";
            html += "<div class=\"bottom\"></div>";
            html += "</div>";
            html += "<div class=\"TCwindowMasksk02\" id='filterbg' style=\"height:100%;\"></div>";
            $("#publichead").after(html);
            Lucee.Set_DivCenter("#collection_login_t", 360, 200);
            break;
        case "userlogin":
            html += "<div class=\"TCwindowsk02\" id=\"collection_login\" style=\" left:20%; top:10%; height:200px;\">";
            html += "<div class=\"Operating\"><b>登录</b><a class=\"close\" href=\"#nogo\" onclick=\"Lucee.PopWindowClose()\"> </a></div>";
            html += "<div class=\"FormZone\">";
            html += "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
            html += "<tr>";
            html += "<td width=\"19%\" align=\"right\" valign=\"middle\"><b>邮 箱：</b></td>";
            html += "<td width=\"81%\" valign=\"middle\"><input type=\"text\" id='username' class=\"inbox\" size=\"30\" /></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td width=\"19%\" align=\"right\" valign=\"middle\"><b>密 码：</b></td>";
            html += " <td width=\"81%\" valign=\"middle\"><input name=\"\" type=\"password\" id='password' class=\"inbox\"  size=\"15\" />&nbsp;&nbsp;<a href=\"/user/FindPassword.aspx\">找回密码</a></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td align=\"right\" valign=\"middle\">&nbsp;</td>";
            html += "<td valign=\"middle\"><input name=\"input\" type=\"checkbox\" id='isread' value=\"1\" /><label>保存登录信息</label></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td align=\"right\" valign=\"middle\"  style=\"padding-top:15px;\">&nbsp;</td>";
            html += "<td valign=\"middle\" class=\"buttonzone\"><input name=\"\" type=\"button\" class=\"button\" onclick=\"Lucee.UserLogin('login')\" value=\"登录\"/>&nbsp;&nbsp;&nbsp;<a onclick=\"Lucee.UserLoginOrRegister('userreg')\" href=\"#nogo\">注册帐号</a></td>";
            html += "</tr>";
            html += "</table>";
            html += "</div>";
            html += "<div class=\"bottom\"></div>";
            html += "</div>";
            html += "<div class=\"TCwindowMasksk02\" id='filterbg' style=\"height:100%;\"></div>";
            $("#publichead").after(html);
            Lucee.Set_DivCenter("#collection_login", 360, 200);
            
            break;
        case "userreg":
            html += "<div class=\"TCwindowsk02\" id=\"collection_login\" style=\" left:20%; top:10%; height:200px;\">";
            html += "<div class=\"Operating\"><b>注册</b><a class=\"close\" href=\"#nogo\" onclick=\"Lucee.PopWindowClose()\"> </a></div>";
            html += "<div class=\"FormZone\">";
            html += "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
            html += "<tr>";
            html += "<td width=\"25%\" align=\"right\" valign=\"middle\"><b>邮 箱：</b></td>";
            html += "<td width=\"75%\" valign=\"middle\"><input type=\"text\" id='tb_email' class=\"inbox\" size=\"28\" /></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td  align=\"right\" valign=\"middle\"><b>昵 称：</b></td>";
            html += "<td  valign=\"middle\"><input type=\"text\" id='tb_nickname' class=\"inbox\" size=\"15\" /> <span>1-6的字符或汉字</span></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td align=\"right\" valign=\"middle\"><b>密 码：</b></td>";
            html += "<td valign=\"middle\"><input type=\"password\" id='tb_password' class=\"inbox\" size=\"15\" /> <span>密码长度6-16个字符</span></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td  align=\"right\" valign=\"middle\"><b>重复密码：</b></td>";
            html += "<td  valign=\"middle\"><input type=\"password\" id='tb_repassword' class=\"inbox\" size=\"15\" /></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<tr  style=\" display:none;\">";
            html += "<td  align=\"right\" valign=\"middle\"><b>我是学生：</b></td>";
            html += "<td  valign=\"middle\"><select id='tk_areaname'><option value='-----非学生-----'>-----非学生-----</option><option value='重庆西永'>重庆西永</option><option value='重庆电力高等专科学校'>重庆电力高等专科学校</option><option value='重庆工商职业学院（电大）'>重庆工商职业学院（电大）</option><option value='海联学院'>海联学院</option><option value='南方翻译学院'>南方翻译学院</option><option value='西南政法大学(沙坪坝校区)'>西南政法大学(沙坪坝校区)</option><option value='重庆正大软件职业技术学院'>重庆正大软件职业技术学院</option><option value='重庆理工大学'>重庆理工大学</option><option value='重庆交通大学'>重庆交通大学</option><option value='重庆邮电大学'>重庆邮电大学</option><option value='重庆工商大学'>重庆工商大学</option><option value='重庆教育学院'>重庆教育学院</option><option value='重庆工程职业技术学院'>重庆工程职业技术学院</option><option value='重庆机电职业技术学院'>重庆机电职业技术学院</option><option value='重庆工商大学融智学院'>重庆工商大学融智学院</option><option value='四川外语学院'>四川外语学院</option><option value='重庆医药高等专科学校(大学城校区)'>重庆医药高等专科学校(大学城校区)</option><option value='工商大学江北校区'>工商大学江北校区</option><option value='重庆化工职工大学'>重庆化工职工大学</option><option value='重庆房地产学院'>重庆房地产学院</option><option value='重庆师范大学(大学城)'>重庆师范大学(大学城)</option><option value='重庆师范大学(沙坪坝)'>重庆师范大学(沙坪坝)</option><option value='四川美术学院（大学城）'>四川美术学院（大学城）</option><option value='城市管理职业学院'>城市管理职业学院</option><option value='重庆大学(大学城校区)'>重庆大学(大学城校区)</option><option value='重庆医科大学(大学城校区)'>重庆医科大学(大学城校区)</option><option value='重庆科技学院(大学城校区)'>重庆科技学院(大学城校区)</option><option value='重庆工商大学派斯学院'>重庆工商大学派斯学院</option><option value='重庆邮电大学移通学院'>重庆邮电大学移通学院</option><option value='重庆西南大学育才学院'>重庆西南大学育才学院</option><option value='重庆师范大学涉外商贸学院'>重庆师范大学涉外商贸学院</option><option value='长江师范学院'>长江师范学院</option><option value='西南大学'>西南大学</option><option value='西南政法大学（新校区）'>西南政法大学（新校区）</option><option value='重庆民生职业技术学院'>重庆民生职业技术学院</option><option value='重庆后勤工程学院'>重庆后勤工程学院</option></select></td>";
            html += "</tr>";
            html += "<tr>";

            html += "<td align=\"right\" valign=\"middle\">&nbsp;</td>";
            html += "<td valign=\"middle\"><div class=\"skinSelectcheckbox ho\"></div><a href='#nogo'>已经阅读协议</a></td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td align=\"right\" valign=\"middle\"  style=\"padding-top:15px;\">&nbsp;</td>";
            html += "<td valign=\"middle\" class=\"buttonzone\"><input name=\"\" onclick=\"Lucee.UserRegister()\" type=\"button\" class=\"button\" onclick=\"Lucee.UserLogin('login')\" value=\"注册\"/>&nbsp;&nbsp;&nbsp;<a href=\"#nogo\" onclick=\"Lucee.UserLoginOrRegister('userlogin')\">已有账号,立即登陆</a></td>";
            html += "</tr>";
            html += "</table>";
            html += "</div>";
            html += "<div class=\"bottom\"></div>";
            html += "</div>";
            html += "<div class=\"TCwindowMasksk02\" id='filterbg' style=\"height:100%;\"></div>";
            $("#publichead").after(html);
            Lucee.Set_DivCenter("#collection_login", 360, 200);
            break;
        case "gobuycar":
            html += "<div class=\"TCwindowsk02\" id='gobuycart' style=\" left:20%; top:10%; height:200px;\">";
            html += "<div class=\"Operating\"><b>系统提示</b><a class=\"close\" href=\"#nogo\"  onclick=\"Lucee.PopWindowClose()\"> </a></div>";
            html += "<div class=\"FormZone\">";
            html += "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
            html += "<tr>";
            html += "<td align=\"center\">";
            html += "<h3>产品已经成功加入购物车!</h3>";
            html += "</td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td align=\"center\" style=\"padding:20px 0px 10px 0px;\">";
            html += "<input name=\"\" value=\"去购物车\" onclick=\"javascript:document.location.href='/product/BuyCar.aspx'\" type=\"button\" class=\"skinlistbutton\" />　　　";
            html += "<input name=\"\" value=\"继续购物\"  onclick=\"Lucee.PopWindowClose()\" type=\"button\" class=\"skinlistbutton_a\" />";
            html += "</td>";
            html += "</tr>";
            html += "</table>";
            html += "</div>";
            html += "<div class=\"bottom\"></div>";
            html += "</div>";
            html += "<div class=\"TCwindowMasksk02\" id='filterbg' style=\"height:100%;\"></div>";
            $("#publichead").after(html);
            Lucee.Set_DivCenter("#gobuycart", 360, 200);
            break;
        case "gobuycarnew":
            html += "  <div style=\"left:503px; top:62px;\" id=\"gobuycart\" class=\"TCwindowsk03\">";
            html += " <div class=\"Zone\">";
            html += " <div class=\"Operating\"><span>系统提示</span></div>";
            html += " <div class=\"ts\"><p>你的购物车中有<span id='setcount'>数据载入中..</span>个产品</p></div>";
            html += "  <div class=\"FormZone\">";
            html += "  <input type=\"button\" class=\"skinlistbutton\" onclick=\"javascript:document.location.href='/product/BuyCar.aspx'\" value=\"去购物车\" name=\"\">";
            html += "  <input type=\"button\" class=\"skinlistbutton_a\" onclick=\"Lucee.PopWindowClose()\" value=\"继续购物\" name=\"\">";
            html += "  </div>";
            html += " <div class=\"goodslist\">";
            html += "   <span>下面的东东也很好哟..</span>";
            setTimeout("Lucee.GetBuyCarCount()", 500);
            html += "   <ul id='qitaren'>";
            $.post("/globe/", { action: 32, rd: Math.random() }, function(res) {
                var json = eval('(' + res + ')').mydataset;
                var phtml = "";
                for (var i = 0; i < json.length; i++) {
                    var url = Lucee.UrlRepeater(json[i]["ftype_standardid"]);
                    phtml += "   <li><a href=\"/" + url + "/" + json[i]["fid"] + ".html\" title=\"" + json[i]["fname"] + "\"><img src=\"http://images.23544.com/" + json[i]["fdefaultlogo"] + "\" alt=\"" + json[i]["fname"] + "\" /></a></li>";
                }

                $("#qitaren").html(phtml);
            });
            html += "  </ul>";
            html += "   </div>";
            html += "  </div>";
            html += "    <div class=\"b\"></div>";
            html += " </div>";
            html += "<div class=\"TCwindowMasksk02\" id='filterbg' style=\"height:100%;\"></div>";
            $("#publichead").after(html);
            Lucee.Set_DivCenter("#gobuycart", 360, 200);
            break;
        case "gopay":
            html += "<div class=\"TCwindowsk02\" id='gobuycart' style=\" left:20%; top:10%; height:200px;\">";
            html += "<div class=\"Operating\"><b>付款遇到问题?</b></div>";
            html += "<div class=\"FormZone\">";
            html += "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
            html += "<tr>";
            html += "<td align=\"center\">";
            html += "<h4>付款完成前请不要关闭此窗口.完成付款后请根据你的情况点击下面的按钮</h4>";
            html += "</td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td align=\"center\" style=\"padding:20px 0px 10px 0px;\">";
            html += "<input name=\"\" value=\"已完成付款\"  onclick=\"javascript:document.location.href='http://i.23544.com'\" type=\"button\" class=\"skinlistbutton\" />　　　";
            html += "<input name=\"\" value=\"遇到问题\"  onclick=\"Lucee.PopWindowClose();Change();\" type=\"button\" class=\"skinlistbutton\" />";
            html += "</td>";
            html += "</tr>";
            html += "</table>";
            html += "</div>";
            html += "<div class=\"bottom\"></div>";
            html += "</div>";
            html += "<div class=\"TCwindowMasksk02\" id='filterbg' style=\"height:100%;\"></div>";
            $("#publichead").after(html);
            Lucee.Set_DivCenter("#gobuycart", 360, 200);
            break;
        case "newpay":
            html += "<div class=\"TCwindowsk02\" id='gobuycart' style=\" left:20%; top:10%; height:200px;\">";
            html += "<div class=\"Operating\"><b>付款遇到问题?</b></div>";
            html += "<div class=\"FormZone\">";
            html += "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
            html += "<tr>";
            html += "<td align=\"center\">";
            html += "<h4>付款完成前请不要关闭此窗口.完成付款后请根据你的情况点击下面的按钮</h4>";
            html += "</td>";
            html += "</tr>";
            html += "<tr>";
            html += "<td align=\"center\" style=\"padding:20px 0px 10px 0px;\">";
            html += "<input name=\"\" value=\"已完成付款\"  onclick=\"javascript:document.location.href='http://i.23544.com'\" type=\"button\" class=\"skinlistbutton\" />　　　";
            html += "<input name=\"\" value=\"遇到问题\"  onclick=\"javascript:document.location.href='http://i.23544.com'\" type=\"button\" class=\"skinlistbutton\" />";
            html += "</td>";
            html += "</tr>";
            html += "</table>";
            html += "</div>";
            html += "<div class=\"bottom\"></div>";
            html += "</div>";
            html += "<div class=\"TCwindowMasksk02\" id='filterbg' style=\"height:100%;\"></div>";
            $("#publichead").after(html);
            Lucee.Set_DivCenter("#gobuycart", 360, 200);
            break;
    }

    if (document.body.clientHeight > 630) {
        $("#filterbg").css("height", document.body.clientHeight);
    }
    else {
        $("#filterbg").css("height", "630px");
    }
}

Lucee.GetBuyCarCount = function() {
    $.post("/globe/", { action: 8, rd: Math.random() }, function(res) {
        if (res != 0) {
            $("#setcount").html(res);
            $("#shopcarcount").html(res);
        }
    });
}

Lucee.PopPayType = function(paytype, fid) {
    var html = "";
    html += "<div class=\"TCwindowsk02\" id='gobuycart' style=\" left:20%; top:10%; height:200px;\">";

    switch (paytype) {
        case "PAY_NETBRANK":
            html += "<div class=\"Operating\"><b>立即去网银付款?</b></div>";
            break;
        case "PAY_ALIPAY":
            html += "<div class=\"Operating\"><b>立即去支付宝付款?</b></div>";
            break;
        case "PAY_TENPAY":
            html += "<div class=\"Operating\"><b>立即去财付通付款?</b></div>";
            break;
        case "PAY_OFFLINE":
            document.location.href = "Pay_OffLine.aspx?fid=" + fid;
            break;
        case "PAY_DELIVERY": //到付
            document.location.href = "http://i.23544.com";
            break;
    }


    html += "<div class=\"FormZone\">";
    html += "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
    html += "<tr>";
    html += "<td align=\"center\">";
    html += "<h4>付款后,半个工作日内发货</h4>";
    html += "</td>";
    html += "</tr>";
    html += "<tr>";
    html += "<td align=\"center\" style=\"padding:20px 0px 10px 0px;\">";

    switch (paytype) {
        case "PAY_NETBRANK":
            html += "<a onclick=\"Lucee.ChangePopWindow()\" target='_blank' style='color:white; padding:6px;padding-bottom:7px; padding-left:16px; padding-right:17px; margin-right:5px;' href='http://www.23544.com/globe/INTERFACE/PAY_NETBRANK/?forderid=" + fid + "' class=\"skinlistbutton\">立即去付款</a>";
            html += "<a style='color:white; padding:6px;padding-bottom:7px; padding-left:20px; padding-right:22px; margin-left:5px;' href='http://i.23544.com' class=\"skinlistbutton\">暂不付款</a>";
            break;
        case "PAY_ALIPAY":
            html += "<a onclick=\"Lucee.ChangePopWindow()\" target='_blank' style='color:white; padding:6px;padding-bottom:7px; padding-left:16px; padding-right:17px; margin-right:5px;' href='http://www.23544.com/globe/INTERFACE/PAY_ALIPAY/?forderid=" + fid + "' class=\"skinlistbutton\">立即去付款</a>";
            html += "<a style='color:white; padding:6px;padding-bottom:7px; padding-left:20px; padding-right:22px; margin-left:5px;' href='http://i.23544.com' class=\"skinlistbutton\">暂不付款</a>";
            break;
        case "PAY_TENPAY":
            html += "<a onclick=\"Lucee.ChangePopWindow()\" target='_blank' style='color:white; padding:6px;padding-bottom:7px; padding-left:16px; padding-right:17px; margin-right:5px;' href='http://www.23544.com/globe/INTERFACE/PAY_TENPAY/?forderid=" + fid + "' class=\"skinlistbutton\">立即去付款</a>";
            html += "<a style='color:white; padding:6px;padding-bottom:7px; padding-left:20px; padding-right:22px; margin-left:5px;' href='http://i.23544.com' class=\"skinlistbutton\">暂不付款</a>";
            break;
        case "PAY_OFFLINE":
            document.location.href = "Pay_OffLine.aspx?fid=" + fid;
            break;
        case "PAY_DELIVERY": //到付
            document.location.href = "http://i.23544.com";
            break;
    }
    html += "</td>";
    html += "</tr>";
    html += "</table>";
    html += "</div>";
    html += "<div class=\"bottom\"></div>";
    html += "</div>";
    html += "<div class=\"TCwindowMasksk02\" id='filterbg' style=\"height:100%;\"></div>";
    $("#publichead").after(html);
    Lucee.Set_DivCenter("#gobuycart", 360, 200);
    if (document.body.clientHeight > 630) {
        $("#filterbg").css("height", document.body.clientHeight);
    }
    else {
        $("#filterbg").css("height", "630px");
    }
}

Lucee.PopFinalType = function(paytype) {
    var html = "";
    html += "<div class=\"TCwindowsk02\" id='gobuycart' style=\" left:20%; top:10%; height:200px;\">";

    switch (paytype) {
        case "PAY_ALIPAY":
            html += "<div class=\"Operating\"><b>立即去支付宝完成付款?</b></div>";
            break;
        case "PAY_TENPAY":
            html += "<div class=\"Operating\"><b>立即去财付通完成付款?</b></div>";
            break;
    }
    html += "<div class=\"FormZone\">";
    html += "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
    html += "<tr>";
    html += "<td align=\"center\" style=\"padding:20px 0px 10px 0px;\">";

    switch (paytype) {
        case "PAY_ALIPAY":
            html += "<a target='_blank' style='color:white; padding:6px;padding-bottom:7px; padding-left:19px; padding-right:24px; margin-right:5px;' href='http://www.alipay.com' class=\"skinlistbutton\">确认收货</a>";
            html += "<a style='color:white; padding:6px;padding-bottom:7px; padding-left:20px; padding-right:22px; margin-left:5px;' href='http://i.23544.com' class=\"skinlistbutton\">取消确认</a>";
            break;
        case "PAY_TENPAY":
            html += "<a target='_blank' style='color:white; padding:6px;padding-bottom:7px; padding-left:19px; padding-right:24px; margin-right:5px;' href='http://www.tenpay.com' class=\"skinlistbutton\">确认收货</a>";
            html += "<a style='color:white; padding:6px;padding-bottom:7px; padding-left:20px; padding-right:22px; margin-left:5px;' href='http://i.23544.com' class=\"skinlistbutton\">取消确认</a>";
            break;
    }
    html += "</td>";
    html += "</tr>";
    html += "</table>";
    html += "</div>";
    html += "<div class=\"bottom\"></div>";
    html += "</div>";
    html += "<div class=\"TCwindowMasksk02\" id='filterbg' style=\"height:100%;\"></div>";
 
    $("#publichead").after(html);
    Lucee.Set_DivCenter("#gobuycart", 360, 200);
    if (document.body.clientHeight > 630) {
        $("#filterbg").css("height", document.body.clientHeight);
    }
    else {
        $("#filterbg").css("height", "630px");
    }
}



Lucee.ChangePopWindow = function() {
    $("#gobuycart").remove();
    $("#filterbg").remove();
    Lucee.PopWindow('newpay');
}

Lucee.PopWindowClose = function() {
    $("#filterbg").hide(500, function() {
        $(this).remove();
    });
    $("#collection_sc").hide(500, function() {
        $(this).remove();
    });
    $("#collection_login").hide(500, function() {
        $(this).remove();
    });

    $("#collection_login_t").hide(500, function() {
        $(this).remove();
    });
    $("#gobuycart").hide(500, function() {
        $(this).remove();
    });
}
