PageSourceSearch

http://www.liannan.gov.cn/global/jquery.peex.js

js liannan.gov.cn collected 2026-10-02 20:59:03 UTC 60,574 bytes, 1,683 lines download raw bytes

1(function(jQuery){ 
2
3if(jQuery.browser) return; 
4
5jQuery.browser = {}; 
6jQuery.browser.mozilla = false; 
7jQuery.browser.webkit = false; 
8jQuery.browser.opera = false; 
9jQuery.browser.msie = false; 
10
11var nAgt = navigator.userAgent; 
12jQuery.browser.name = navigator.appName; 
13jQuery.browser.fullVersion = ''+parseFloat(navigator.appVersion); 
14jQuery.browser.majorVersion = parseInt(navigator.appVersion,10); 
15var nameOffset,verOffset,ix; 
16
17// In Opera, the true version is after "Opera" or after "Version" 
18if ((verOffset=nAgt.indexOf("Opera"))!=-1) { 
19jQuery.browser.opera = true; 
20jQuery.browser.name = "Opera"; 
21jQuery.browser.fullVersion = nAgt.substring(verOffset+6); 
22if ((verOffset=nAgt.indexOf("Version"))!=-1) 
23jQuery.browser.fullVersion = nAgt.substring(verOffset+8); 
24} 
25// In MSIE, the true version is after "MSIE" in userAgent 
26else if ((verOffset=nAgt.indexOf("MSIE"))!=-1) { 
27jQuery.browser.msie = true; 
28jQuery.browser.name = "Microsoft Internet Explorer"; 
29jQuery.browser.fullVersion = nAgt.substring(verOffset+5); 
30} 
31// In Chrome, the true version is after "Chrome" 
32else if ((verOffset=nAgt.indexOf("Chrome"))!=-1) { 
33jQuery.browser.webkit = true; 
34jQuery.browser.name = "Chrome"; 
35jQuery.browser.fullVersion = nAgt.substring(verOffset+7); 
36} 
37// In Safari, the true version is after "Safari" or after "Version" 
38else if ((verOffset=nAgt.indexOf("Safari"))!=-1) { 
39jQuery.browser.webkit = true; 
40jQuery.browser.name = "Safari"; 
41jQuery.browser.fullVersion = nAgt.substring(verOffset+7); 
42if ((verOffset=nAgt.indexOf("Version"))!=-1) 
43jQuery.browser.fullVersion = nAgt.substring(verOffset+8); 
44} 
45// In Firefox, the true version is after "Firefox" 
46else if ((verOffset=nAgt.indexOf("Firefox"))!=-1) { 
47jQuery.browser.mozilla = true; 
48jQuery.browser.name = "Firefox"; 
49jQuery.browser.fullVersion = nAgt.substring(verOffset+8); 
50} 
51// In most other browsers, "name/version" is at the end of userAgent 
52else if ( (nameOffset=nAgt.lastIndexOf(' ')+1) < 
53(verOffset=nAgt.lastIndexOf('/')) ) 
54{ 
55jQuery.browser.name = nAgt.substring(nameOffset,verOffset); 
56jQuery.browser.fullVersion = nAgt.substring(verOffset+1); 
57if (jQuery.browser.name.toLowerCase()==jQuery.browser.name.toUpperCase()) { 
58jQuery.browser.name = navigator.appName; 
59} 
60} 
61// trim the fullVersion string at semicolon/space if present 
62if ((ix=jQuery.browser.fullVersion.indexOf(";"))!=-1) 
63jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix); 
64if ((ix=jQuery.browser.fullVersion.indexOf(" "))!=-1) 
65jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix); 
66
67jQuery.browser.majorVersion = parseInt(''+jQuery.browser.fullVersion,10); 
68if (isNaN(jQuery.browser.majorVersion)) { 
69jQuery.browser.fullVersion = ''+parseFloat(navigator.appVersion); 
70jQuery.browser.majorVersion = parseInt(navigator.appVersion,10); 
71} 
72jQuery.browser.version = jQuery.browser.majorVersion; 
73})(jQuery); 
74
75jQuery.CreateXmlDoc = function (text) {
76    var xmlDoc = GetXmlDocument("<root></root>");
77    var xmlRoot = xmlDoc.firstChild;
78    jQuery.each(text, function (i) {
79        var elementName = xmlDoc.createElement(i);
80        var elementText = xmlDoc.createTextNode(this);
81        elementName.appendChild(elementText);
82        xmlRoot.appendChild(elementName);
83    });
84    function GetXmlDocument(text) {
85        var xmlDoc = null;
86        try {
87            xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
88            xmlDoc.async = "false";
89            xmlDoc.loadXML(text);
90        }
91        catch (e) {
92            try {
93                parser = new DOMParser();
94                xmlDoc = parser.parseFromString(text, "text/xml");
95            }
96            catch (e) { }
97        }
98        return xmlDoc;
99    }
100    return xmlDoc;
101};
102
103(function ($) {
104    $.pe = $.pe ||
105    {
106        version: '0.3.7'
107    };
108    $.fn.easyDrag = function (h) {
109        return i(this, h, 'd')
110    };
111    $.fn.easyResize = function (h) {
112        return i(this, h, 'r')
113    };
114    $.dragAndResize = {
115        dragAndResize: {},
116        e: 0,
117        drag: function (v) {
118            if (M.k == 'd')
119                E.css({
120                    left: M.X + v.pageX - M.pX,
121                    top: M.Y + v.pageY - M.pY
122                });
123            else
124                E.css({
125                    width: Math.max(v.pageX - M.pX + M.W, 0),
126                    height: Math.max(v.pageY - M.pY + M.H, 0)
127                });
128            return false
129        },
130        stop: function () {
131            //E.css('opacity', 1);
132            $(document).unbind('mousemove', J.drag).unbind('mouseup', J.stop)
133        }
134    };
135    var J = $.dragAndResize, M = J.dragAndResize, E = J.e, i = function (e, h, k) {
136        return e.each(function () {
137            h = (h) ? $(h, e) : e;
138            h.css('cursor', 'move');
139            h.bind('mousedown', {
140                e: e,
141                k: k
142            }, function (v) {
143                var d = v.data, p = {};
144                E = d.e;
145                if (E.css('position') != 'relative') {
146                    try {
147                        E.position(p);
148                    }
149                    catch (e) {
150                    }
151                }
152                M = {
153                    X: p.left || f('left') || 0,
154                    Y: p.top || f('top') || 0,
155                    W: f('width') || E[0].scrollWidth || 0,
156                    H: f('height') || E[0].scrollHeight || 0,
157                    pX: v.pageX,
158                    pY: v.pageY,
159                    k: d.k
160                };
161                E.css({
162                    //opacity: 0.8
163                });
164                $(document).mousemove($.dragAndResize.drag).mouseup($.dragAndResize.stop);
165                return false
166            })
167        })
168    }, f = function (k) {
169        return parseInt(E.css(k)) || false
170    };
171    var l;
172    l = $.pe.expose = {
173        conf: {
174            maskId: 'expose',
175            loadSpeed: 'slow',
176            closeSpeed: 'fast',
177            closeOnClick: true,
178            closeOnEsc: true,
179            zIndex: 9998,
180            opacity: 0.5,
181            startOpacity: 0,
182            color: '#000',
183            onLoad: null,
184            onClose: null
185        }
186    };
187    function viewport() {
188        if ($.browser.msie) {
189            var d = $(document).height(), w = $(window).height();
190            return [window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, d - w < 20 ? w : d]
191        }
192        return [$(document).width(), $(document).height()]
193    }
194    function call(a) {
195        if (a) {
196            return a.call($.mask)
197        }
198    }
199    var m, exposed, loaded, config, overlayIndex;
200    $.mask = {
201        load: function (b, c) {
202            if (loaded) {
203                return this
204            }
205            if (typeof b == 'string') {
206                b = {
207                    color: b
208                }
209            }
210            b = b || config;
211            config = b = $.extend($.extend({}, l.conf), b);
212            m = $("#" + b.maskId);
213            if (!m.length) {
214                m = $('<div/>').attr("id", b.maskId);
215                $("body").append(m)
216            }
217            var d = viewport();
218            m.css({
219                position: 'absolute',
220                top: 0,
221                left: 0,
222                width: d[0],
223                height: d[1],
224                display: 'none',
225                opacity: b.startOpacity,
226                zIndex: b.zIndex
227            });
228            if (b.color) {
229                m.css("backgroundColor", b.color)
230            }
231            if (call(b.onBeforeLoad) === false) {
232                return this
233            }
234            if (b.closeOnEsc) {
235                $(document).bind("keydown.mask", function (e) {
236                    if (e.keyCode == 27) {
237                        $.mask.close(e)
238                    }
239                })
240            }
241            if (b.closeOnClick) {
242                m.bind("click.mask", function (e) {
243                    $.mask.close(e)
244                })
245            }
246            $(window).bind("resize.mask", function () {
247                $.mask.fit()
248            });
249            if (c && c.length) {
250                overlayIndex = c.eq(0).css("zIndex");
251                $.each(c, function () {
252                    var a = $(this);
253                    if (!/relative|absolute|fixed/i.test(a.css("position"))) {
254                        a.css("position", "relative")
255                    }
256                });
257                exposed = c.css({
258                    zIndex: Math.max(b.zIndex + 1, overlayIndex == 'auto' ? 0 : overlayIndex)
259                })
260            }
261            m.css({
262                display: 'block'
263            }).fadeTo(b.loadSpeed, b.opacity, function () {
264                $.mask.fit();
265                call(b.onLoad)
266            });
267            loaded = true;
268            return this
269        },
270        close: function () {
271            if (loaded) {
272                if (call(config.onBeforeClose) === false) {
273                    return this
274                }
275                m.fadeOut(config.closeSpeed, function () {
276                    call(config.onClose);
277                    if (exposed) {
278                        exposed.css({
279                            zIndex: overlayIndex
280                        })
281                    }
282                });
283                $(document).unbind("keydown.mask");
284                m.unbind("click.mask");
285                $(window).unbind("resize.mask");
286                loaded = false
287            }
288            return this
289        },
290        fit: function () {
291            if (loaded) {
292                var a = viewport();
293                m.css({
294                    width: a[0],
295                    height: a[1]
296                })
297            }
298        },
299        getMask: function () {
300            return m
301        },
302        isLoaded: function () {
303            return loaded
304        },
305        getConf: function () {
306            return config
307        },
308        getExposed: function () {
309            return exposed
310        }
311    };
312    $.fn.mask = function (a) {
313        $.mask.load(a);
314        return this
315    };
316    $.fn.expose = function (a) {
317        $.mask.load(a, this);
318        return this
319    };
320    $.pe.overlay = {
321        addEffect: function (a, b, c) {
322            effects[a] = [b, c]
323        },
324        conf: {
325            close: null,
326            closeOnClick: true,
327            closeOnEsc: true,
328            closeSpeed: 'fast',
329            effect: 'default',
330            render: false,
331            width: 500,
332            height: 360,
333            title: '标题',
334            loadUrl: 'http://www.powereasy.net',
335            fixed: !$.browser.msie || $.browser.version > 6,
336            left: 'center',
337            load: false,
338            mask: null,
339            oneInstance: true,
340            speed: 'normal',
341            target: null,
342            top: 'center'
343        }
344    };
345    var n = [], effects = {};
346    $.pe.overlay.addEffect('default', function (a, b) {
347        var c = this.getConf(), w = $(window);
348        if (!c.fixed) {
349            a.top += w.scrollTop();
350            a.left += w.scrollLeft()
351        }
352        a.position = c.fixed ? 'fixed' : 'absolute';
353        this.getOverlay().css(a).fadeIn(c.speed, b)
354    }, function (a) {
355        this.getOverlay().fadeOut(this.getConf().closeSpeed, a)
356    });
357    function Overlay(c, d) {
358        var f = this, fire = c.add(f), w = $(window), closers, overlay, opened, maskConf = $.pe.expose && (d.mask || d.expose), uid = Math.random().toString().slice(10);
359        if (maskConf) {
360            if (typeof maskConf == 'string') {
361                maskConf = {
362                    color: maskConf
363                }
364            }
365            maskConf.closeOnClick = maskConf.closeOnEsc = false
366        }
367        var g = d.target || c.attr("rel");
368        overlay = g ? $(g) : null || c;
369        if (d.render) {
370            overlay.html('');
371            var h = '<div style="width:' + d.width + 'px;height:' + d.height + 'px" class="overlay">';
372            h += '<div class="overlay_header"><span class="overlay_header_title_sign"></span><h3 class="overlay_header_title">';
373            h += d.title;
374            h += '</h3><span class="overlay_header_background_right"></span>';
375            h += '<a class="overlay_header_close" href="javascript:void(0)"></a></div>';
376            h += '<div class="overlay_body"><iframe height="' + (d.height - 30) + '" frameborder="0" width="100%" src="';
377            h += d.loadUrl;
378            h += ' "marginwidth="0" marginheight="0"></iframe><iframe id="iframe_IE6_Z-Index" width="' + d.width + '" frameborder=0 height="' + d.height + '" style="position:absolute; top:0px; left:0px; z-index:-1; border-style:none;"></iframe></div>';
379            overlay.append(h)
380        }
381        if (!overlay.length) {
382            throw "Could not find Overlay: " + g;
383        }
384        if (c && c.index(overlay) == -1) {
385            c.click(function (e) {
386                f.load(e);
387                return e.preventDefault()
388            })
389        }
390
391        $.extend(f, {
392            load: function (e) {
393                if (f.isOpened()) {
394                    return f
395                }
396                var a = effects[d.effect];
397                if (!a) {
398                    throw "Overlay: cannot find effect : \"" + d.effect + "\"";
399                }
400                if (d.oneInstance) {
401                    $.each(n, function () {
402                        this.close(e)
403                    })
404                }
405                e = e || $.Event();
406                e.type = "onBeforeLoad";
407                fire.trigger(e);
408                if (e.isDefaultPrevented()) {
409                    return f
410                }
411                opened = true;
412                if (maskConf) {
413                    $(overlay).expose(maskConf)
414                }
415                var b = d.top, left = d.left, oWidth = overlay.outerWidth({
416                    margin: true
417                }), oHeight = overlay.outerHeight({
418                    margin: true
419                });
420                if (typeof b == 'string') {
421                    b = b == 'center' ? Math.max((w.height() - d.height) / 2, 0) : parseInt(b, 10) / 100 * w.height()
422                }
423                if (left == 'center') {
424                    left = Math.max((w.width() - d.width) / 2, 0)
425                }
426                a[0].call(f, {
427                    top: b,
428                    left: left
429                }, function () {
430                    if (opened) {
431                        e.type = "onLoad";
432                        fire.trigger(e)
433                    }
434                });
435
436                fire.css('display', 'block');
437
438                if (maskConf && d.closeOnClick) {
439                    $.mask.getMask().one("click", f.close)
440                }
441                if (d.closeOnClick) {
442                    $(document).bind("click." + uid, function (e) {
443                        if (!$(e.target).parents(overlay).length) {
444                            f.close(e)
445                        }
446                    })
447                }
448                if (d.closeOnEsc) {
449                    $(document).bind("keydown." + uid, function (e) {
450                        if (e.keyCode == 27) {
451                            f.close(e)
452                        }
453                    })
454                }
455                return f
456            },
457            close: function (e) {
458                if (!f.isOpened()) {
459                    return f
460                }
461                e = e || $.Event();
462                e.type = "onBeforeClose";
463                fire.trigger(e);
464                if (e.isDefaultPrevented()) {
465                    return
466                }
467                opened = false;
468                effects[d.effect][1].call(f, function () {
469                    e.type = "onClose";
470                    fire.trigger(e)
471                });
472                $(document).unbind("click." + uid).unbind("keydown." + uid);
473                if (maskConf) {
474                    $.mask.close()
475                }
476                return f
477            },
478            getOverlay: function () {
479                return overlay
480            },
481            getTrigger: function () {
482                return c
483            },
484            getClosers: function () {
485                return closers
486            },
487            isOpened: function () {
488                return opened
489            },
490            getConf: function () {
491                return d
492            }
493        });
494        $.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","), function (i, b) {
495            if ($.isFunction(d[b])) {
496                $(f).bind(b, d[b])
497            }
498            f[b] = function (a) {
499                $(f).bind(b, a);
500                return f
501            }
502        });
503        var j = overlay.find('.overlay_header');
504        overlay.easyDrag(j);
505        closers = overlay.find(d.close || ".overlay_header_close" || ".close");
506        if (!closers.length && !d.close) {
507            closers = $('<a class="close"></a>');
508            overlay.prepend(closers)
509        }
510        closers.click(function (e) {
511            f.close(e)
512        });
513        if (d.load) {
514            f.load()
515        }
516    }
517    $.fn.overlay = function (a) {
518        var b = this.data("overlay");
519        if (b) {
520            this.removeData("overlay")
521        }
522        if ($.isFunction(a)) {
523            a = {
524                onBeforeLoad: a
525            }
526        }
527        a = $.extend(true, {}, $.pe.overlay.conf, a);
528        this.each(function () {
529            b = new Overlay($(this), a);
530            n.push(b);
531            $(this).data("overlay", b)
532        });
533        return a.api ? b : this
534    };
535    $.pe.tabs = {
536        conf: {
537            tabs: 'a',
538            current: 'current',
539            onBeforeClick: null,
540            onClick: null,
541            effect: 'default',
542            initialIndex: 0,
543            event: 'click',
544            rotate: false,
545            history: false
546        },
547        addEffect: function (a, b) {
548            h[a] = b
549        }
550    };
551    var h = {
552        'default': function (i, a) {
553            this.getPanes().hide().eq(i).show();
554            a.call()
555        },
556        fade: function (i, a) {
557            var b = this.getConf(), speed = b.fadeOutSpeed, panes = this.getPanes();
558            if (speed) {
559                panes.fadeOut(speed)
560            }
561            else {
562                panes.hide()
563            }
564            panes.eq(i).fadeIn(b.fadeInSpeed, a)
565        },
566        slide: function (i, a) {
567            this.getPanes().slideUp(200);
568            this.getPanes().eq(i).slideDown(400, a)
569        },
570        ajax: function (i, a) {
571            this.getPanes().eq(0).load(this.getTabs().eq(i).attr("href"), a)
572        }
573    };
574    var w;
575    $.pe.tabs.addEffect("horizontal", function (i, a) {
576        if (!w) {
577            w = this.getPanes().eq(0).width()
578        }
579        this.getCurrentPane().animate({
580            width: 0
581        }, function () {
582            $(this).hide()
583        });
584        this.getPanes().eq(i).animate({
585            width: w
586        }, function () {
587            $(this).show();
588            a.call()
589        })
590    });
591    function Tabs(c, d, f) {
592        var g = this, trigger = c.add(this), tabs = c.find(f.tabs), panes = d.jquery ? d : c.children(d), current;
593        if (!tabs.length) {
594            tabs = c.children()
595        }
596        if (!panes.length) {
597            panes = c.parent().find(d)
598        }
599        if (!panes.length) {
600            panes = $(d)
601        }
602        $.extend(this, {
603            click: function (i, e) {
604                var a = tabs.eq(i);
605                if (typeof i == 'string' && i.replace("#", "")) {
606                    a = tabs.filter("[href*=" + i.replace("#", "") + "]");
607                    i = Math.max(tabs.index(a), 0)
608                }
609                if (f.rotate) {
610                    var b = tabs.length - 1;
611                    if (i < 0) {
612                        return g.click(b, e)
613                    }
614                    if (i > b) {
615                        return g.click(0, e)
616                    }
617                }
618                if (!a.length) {
619                    if (current >= 0) {
620                        return g
621                    }
622                    i = f.initialIndex;
623                    a = tabs.eq(i)
624                }
625                if (i === current) {
626                    return g
627                }
628                e = e || $.Event();
629                e.type = "onBeforeClick";
630                trigger.trigger(e, [i]);
631                if (e.isDefaultPrevented()) {
632                    return
633                }
634                h[f.effect].call(g, i, function () {
635                    e.type = "onClick";
636                    trigger.trigger(e, [i])
637                });
638                current = i;
639                tabs.removeClass(f.current);
640                a.addClass(f.current);
641                return g
642            },
643            getConf: function () {
644                return f
645            },
646            getTabs: function () {
647                return tabs
648            },
649            getPanes: function () {
650                return panes
651            },
652            getCurrentPane: function () {
653                return panes.eq(current)
654            },
655            getCurrentTab: function () {
656                return tabs.eq(current)
657            },
658            getIndex: function () {
659                return current
660            },
661            next: function () {
662                return g.click(current + 1)
663            },
664            prev: function () {
665                return g.click(current - 1)
666            },
667            destroy: function () {
668                tabs.unbind(f.event).removeClass(f.current);
669                panes.find("a[href^=#]").unbind("click.T");
670                return g
671            }
672        });
673        $.each("onBeforeClick,onClick".split(","), function (i, b) {
674            if ($.isFunction(f[b])) {
675                $(g).bind(b, f[b])
676            }
677            g[b] = function (a) {
678                $(g).bind(b, a);
679                return g
680            }
681        });
682        if (f.history && $.fn.history) {
683            $.pe.history.init(tabs);
684            f.event = 'history'
685        }
686        tabs.each(function (i) {
687            $(this).bind(f.event, function (e) {
688                g.click(i, e);
689                return e.preventDefault()
690            })
691        });
692        panes.find("a[href^=#]").bind("click.T", function (e) {
693            g.click($(this).attr("href"), e)
694        });
695        if (location.hash) {
696            g.click(location.hash)
697        }
698        else {
699            if (f.initialIndex === 0 || f.initialIndex > 0) {
700                g.click(f.initialIndex)
701            }
702        }
703    };
704    $.fn.tabs = function (a, b) {
705        var c = this.data("tabs");
706        if (c) {
707            c.destroy();
708            this.removeData("tabs")
709        }
710        if ($.isFunction(b)) {
711            b = {
712                onBeforeClick: b
713            }
714        }
715        b = $.extend({}, $.pe.tabs.conf, b);
716        this.each(function () {
717            c = new Tabs($(this), a, b);
718            $(this).data("tabs", c)
719        });
720        return b.api ? c : this
721    };
722
723    $.fn.extend({
724        jsRightMenu: function (options) {
725            options = $.extend({
726                menuList: []
727            }, options);
728            if ($("#div_RightMenu").size() == 0);
729            {
730                $(document.body).append("\<div class=\"div_RightMenu\" id=\"div_RightMenu\"\>\<\/div>");
731                $("#div_RightMenu").hide();
732            }
733            return this.each(function () {
734                this.oncontextmenu = function () {
735                    var menuCount = options.menuList.length;
736                    var divMunuItem = "";
737                    if (menuCount > 0) {
738                        for (var i = 0; i < menuCount; i++) {
739                            divMunuItem += "<div class=\"divMenuItem\" id=\"divMenuItem" + $(this).attr("id") + "\" onclick=\"" + options.menuList[i].clickEvent + "\"  onmouseover=\"" + options.menuList[i].mouseoverEvent + "\" onmouseout=\"" + options.menuList[i].mouseoutEvent + "\">" + options.menuList[i].menuName + "</div>";
740                        }
741                        $("#div_RightMenu").html(divMunuItem);
742                        $("#div_RightMenu").hide();
743                    }
744                    var objMenu = $("#div_RightMenu");
745                    if (objMenu.size() > 0) {
746                        objMenu.hide();
747                        var event = arguments[0] || window.event;
748                        var clientX = event.clientX;
749                        var clientY = event.clientY;
750                        var redge = document.documentElement.clientWidth - clientX;
751                        var bedge = document.documentElement.clientHeight - clientY;
752                        var menu = objMenu.get(0);
753                        var menuLeft = 0;
754                        var menuTop = 0;
755                        if (redge < menu.offsetWidth)
756                            menuLeft = document.documentElement.scrollLeft + clientX - menu.offsetWidth;
757                        else
758                            menuLeft = document.documentElement.scrollLeft + clientX;
759                        if (bedge < menu.offsetHeight)
760                            menuTop = document.documentElement.scrollTop + clientY - menu.offsetHeight;
761                        else
762                            menuTop = document.documentElement.scrollTop + clientY;
763                        objMenu.css({ top: menuTop + "px", left: menuLeft + "px" });
764                        objMenu.show();
765                        return false;
766                    }
767                }
768                document.onclick = function () {
769                    var objMenu = $("#div_RightMenu");
770                    if (objMenu.size() > 0) objMenu.hide();
771                }
772            });
773        }
774    });
775
776    $.fn.extend({
777        check: function () {
778            return this.each(function () {
779                this.checked = true
780            })
781        },
782        uncheck: function () {
783            return this.each(function () {
784                this.checked = false
785            })
786        },
787        inverse: function () {
788            return this.each(function () {
789                this.checked = (this.checked == true ? false : true);
790            })
791        },
792        shiftSelect: function (m) {
793            var g = this;
794            var h;
795            $(this).click(function (a) {
796                if (!h) {
797                    h = this;
798                    return
799                }
800                if (a.shiftKey) {
801                    var b = g.index(this);
802                    var c = g.index(h);
803                    var d = h.checked;
804                    if (b == c) {
805                        return true
806                    }
807                    var e = Math.max(b, c);
808                    var f = Math.min(b, c);
809                    for (i = f; i <= e; i++) {
810                        g[i].checked = d
811                    }
812                    if ($.isFunction(m))
813                        call(m);
814                }
815                h = this
816            })
817        },
818        lostFocus: function () {
819            $(this).focus(function () {
820                this.blur()
821            })
822        },
823        addFavorite: function () {
824            $(this).click(function () {
825                var a = $('title').text();
826                if (document.all)
827                    window.external.addFavorite(location.href, a);
828                else
829                    if (window.sidebar)
830                        window.sidebar.addPanel(a, location.href, null);
831                    else
832                        alert('您可以尝试通过快捷键CTRL + D 加入到收藏夹')
833            })
834        },
835        setHomePage: function () {
836            $(this).click(function () {
837                if (document.all) {
838                    document.body.style.behavior = 'url(#default#homepage)';
839                    document.body.setHomePage(location.href)
840                }
841                else
842                    if (window.sidebar) {
843                        if (window.netscape) {
844                            try {
845                                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")
846                            }
847                            catch (e) {
848                                alert("该操作被浏览器拒绝,如果想启用该功能,请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true");
849                                return
850                            }
851                        }
852                        var a = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
853                        a.setCharPref('browser.startup.homepage', location.href)
854                    }
855            });
856        },
857        imageResize: function (options) {
858            var params = jQuery.extend({
859                height: 500,
860                width: 660
861            }, options);
862
863            this.each(function () {
864                var height = params.height,
865				width = params.width,
866				img_height = $(this).height(),
867				img_width = $(this).width(),
868				m_ceil = Math.ceil,
869				m_floor = Math.floor;
870                if (img_height <= height && img_width <= width) {
871                    return;
872                }
873
874                if (img_height >= img_width) {
875                    width = m_floor(m_ceil(img_width / img_height * height));
876                } else {
877                    height = m_floor(m_ceil(img_height / img_width * width));
878                }
879                $(this).attr({
880                    'height': height,
881                    'width': width
882                }).css({ 'height': height + 'px', 'width': width + 'px' });
883            });
884        },
885        useKeypressSubmit: function (target) {
886            $(this).keypress(function (e) {
887                if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
888                    $(target).click();
889                    return false;
890                }
891                return true;
892            })
893        }
894    })
895    $.extend($.pe, {
896        htmlEncode: function (text) {
897            var standard = function (text) {
898                var span = $('<span>');
899                span.html(text);
900                return span.html();
901            };
902
903            var fix1 = (standard('\n').toLowerCase() == '<br>') ?
904				function (text) {
905				    // #3874 IE and Safari encode line-break into <br>
906				    return standard(text).replace(/<br>/gi, '\n');
907				} :
908				standard;
909
910            var fix2 = (standard('>') == '>') ?
911				function (text) {
912				    // WebKit does't encode the ">" character, which makes sense, but
913				    // it's different than other browsers.
914				    return fix1(text).replace(/>/g, '&gt;');
915				} :
916				fix1;
917
918            var fix3 = (standard('  ') == '&nbsp; ') ?
919				function (text) {
920				    // #3785 IE8 changes spaces (>= 2) to &nbsp;
921				    return fix2(text).replace(/&nbsp;/g, ' ');
922				} :
923				fix2;
924
925            this.htmlEncode = fix3;
926
927            return this.htmlEncode(text);
928        },
929        random: function (a) {
930            return Math.floor(a * (Math.random() % 1))
931        },
932        cookie: function (a, b, c) {
933            if (typeof b != 'undefined') {
934                c = c || {};
935                if (b === null) {
936                    b = '';
937                    c.expires = -1
938                }
939                var d = '';
940                if (c.expires && (typeof c.expires == 'number' || c.expires.toUTCString)) {
941                    var e;
942                    if (typeof c.expires == 'number') {
943                        e = new Date();
944                        e.setTime(e.getTime() + (c.expires * 24 * 60 * 60 * 1000))
945                    }
946                    else {
947                        e = c.expires
948                    }
949                    d = '; expires=' + e.toUTCString()
950                }
951                var f = c.path ? '; path=' + (c.path) : '', domain = c.domain ? '; domain=' + (c.domain) : '', secure = c.secure ? '; secure' : '';
952                document.cookie = [a, '=', encodeURIComponent(b), d, f, domain, secure].join('')
953            }
954            else {
955                var g = null;
956                if (document.cookie && document.cookie != '') {
957                    var h = document.cookie.split(';');
958                    for (var i = 0; i < h.length; i++) {
959                        var j = $.trim(h[i]);
960                        if (j.substring(0, a.length + 1) == (a + '=')) {
961                            g = decodeURIComponent(j.substring(a.length + 1));
962                            break
963                        }
964                    }
965                }
966                return g
967            }
968        },
969        stringToJSON: function (string) {
970            return eval('(' + string + ')');
971        },
972        jsonToString: function (obj) {
973            var THIS = this;
974            switch (typeof (obj)) {
975                case 'string':
976                    return '"' + obj.replace(/(["\\])/g, '\\$1') + '"';
977                case 'array':
978                    return '[' + obj.map(THIS.jsonToString).join(',') + ']';
979                case 'object':
980                    if (obj instanceof Array) {
981                        var strArr = [];
982                        var len = obj.length;
983                        for (var i = 0; i < len; i++) {
984                            strArr.push(THIS.jsonToString(obj[i]));
985                        }
986                        return '[' + strArr.join(',') + ']';
987                    } else if (obj == null) {
988                        return 'null';
989
990                    } else {
991                        var string = [];
992                        for (var property in obj) string.push(THIS.jsonToString(property) + ':' + THIS.jsonToString(obj[property]));
993                        return '{' + string.join(',') + '}';
994                    }
995                case 'number':
996                    return obj;
997                case false:
998                    return obj;
999            }
1000        },
1001        ajax: function (e, f) {
1002            if (typeof (e) != 'string' || e == 'undefind')
1003                return;
1004            var g = {
1005                url: siteSetup.ajaxPath,
1006                data: '',
1007                type: 'POST',
1008                dataType: 'xml',
1009                params: {}
1010            };
1011            var h = function (a, b) {
1012                var c = '';
1013                for (var d in a.params) {
1014                    if (b)
1015                        c += ('<attrib><' + d + '>
1015' + $.pe.htmlEncode(a.params[d]) + '</' + d + '></attrib>');
1016                    else
1017                        c += ('<' + d + '>' + $.pe.htmlEncode(a.params[d]) + '</' + d + '>')
1018                }
1019                return c
1020            }
1021            var i = $.extend(g, f);
1022            var e = $.trim(e).toLowerCase();
1023            switch (e) {
1024                case 'accesslabel':
1025                    e = 'updatelabel';
1026                    break;
1027                case 'accesspage':
1028                    e = 'updatepage';
1029                    break;
1030                case 'checkuserlogin':
1031                    e = 'logincheck';
1032                    break;
1033                case 'checkloginvalidate':
1034                    e = 'EnableValidCode';
1035                    break;
1036                case 'logout':
1037                    e = 'userlogout';
1038                    break;
1039                default:
1040                    break;
1041            }
1042            var j = '<root><type>' + e + '</type>';
1043            switch (e) {
1044                case 'updatelabel':
1045                    j += ('<labelname>' + i.labelName + '</labelname>')
1046                    j += ('<currentpage>' + i.currentPage + '</currentpage>');
1047                    j += h(i, true);
1048                    break;
1049                case 'updatepage':
1050                    j += ('<labelname>' + i.labelName + '</labelname>');
1051                    j += ('<sourcename>' + i.pageName + '</sourcename>');
1052                    j += ('<pagesize>' + i.pageSize + '</pagesize>');
1053                    j += ('<currentpage>' + i.currentPage + '</currentpage>');
1054                    j += ('<total>' + i.recordCount + '</total>');
1055                    break;
1056                default:
1057                    j += h(i, false);
1058                    break;
1059            }
1060            j += '</root>';
1061            i.data = j;
1062            $.ajax(i)
1063        },
1064        refreshValidateCode: function (a) {
1065            var path = siteSetup.sitePath + 'Controls/ValidateCodeImage.aspx?code=' + $.pe.random(100);
1066            $(a).attr('src', path);
1067        },
1068        replaceUserInfoVariable: function (a, b) {
1069            a = a.replace('{username}', b.find('username').text());
1070            a = a.replace('{experience}', b.find('exp').text());
1071            a = a.replace('{message}', b.find('msg').text());
1072            a = a.replace('{loginCount}', b.find('logintimes').text());
1073            a = a.replace('{pointName}', b.find('pointname').text());
1074            a = a.replace('{point}', b.find('point').text());
1075            a = a.replace('{pointUnit}', b.find('pointunit').text());
1076            a = a.replace('{signinArticle}', b.find('signincontent').text());
1077            a = a.replace('{balances}', b.find('balance').text());
1078            return a
1079        },
1080        supplyDemandInfoVariable: function (a, b) {
1081            a = a.replace('{username}', b.find('username').text());
1082            a = a.replace('{experience}', b.find('exp').text());
1083            a = a.replace('{message}', b.find('msg').text());
1084            a = a.replace('{loginCount}', b.find('logintimes').text());
1085            a = a.replace('{pointName}', b.find('pointname').text());
1086            a = a.replace('{point}', b.find('point').text());
1087            a = a.replace('{signinArticle}', b.find('signincontent').text());
1088            a = a.replace('{balances}', b.find('balance').text());
1089            a = a.replace(new RegExp('{indexurl}', 'g'), b.find('indexurl').text());
1090            a = a.replace(new RegExp('{contacturl}', 'g'), b.find('contacturl').text());
1091            a = a.replace('{supplylisturl}', b.find('supplylisturl').text());
1092            a = a.replace('{companyurl}', b.find('companyurl').text());
1093            a = a.replace('{contact}', b.find('contact').text());
1094            a = a.replace(new RegExp('{companyname}', 'g'), b.find('companyname').text());
1095            return a
1096        }
1097    })
1098    $.pe.pealert = function (message, options) {
1099        message = message || "";
1100        message = message.replace(/\r\n/gi, "<br />");
1101        var defaultOptions = {
1102            title: '提示信息',
1103            top: 160
1104        };
1105        if (options) {
1106            defaultOptions = $.extend(defaultOptions, options);
1107        }
1108        var closeAlertBox = function () {
1109            $(".msgBox").remove();
1110            $("#expose").remove();
1111        }
1112        closeAlertBox();
1113        var $alerBox = $("<div class='msgBox' id='alertBox'><div class='hd'><em id='closeAlertBox'>x</em><h3>" + defaultOptions.title + "</h3></div><div class='bd'><div class='bdIn'>" + message + "<div class='subDiv'><a  class='btn'  id='btnConfirmAlert'><span>确定</span></a></div></div></div>");
1114        $("body").append($alerBox);
1115
1116        $alerBox.overlay({
1117            top: defaultOptions.top,
1118            mask: {
1119                color: '#ccc',
1120                loadSpeed: 10,
1121                opacity: 0.5
1122            },
1123            closeOnClick: true,
1124            closeOnEsc: true,
1125            api: true
1126        }).load();
1127
1128        $alerBox.easyDrag();
1129        $("#closeAlertBox", $alerBox).bind("click", closeAlertBox);
1130        $("#btnConfirmAlert", $alerBox).bind("click", closeAlertBox);
1131    }
1132})(jQuery);
1133
1134
1135(function (d) {
1136    function R(b, c) {
1137        return 32 - (new Date(b, c, 32)).getDate()
1138    }
1139    function S(b, c) {
1140        b = "" + b;
1141        for (c = c || 2; b.length < c; )
1142            b = "0" + b;
1143        return b
1144    }
1145    function T(b, c, j) {
1146        var m = b.getDate(), h = b.getDay(), t = b.getMonth();
1147        b = b.getFullYear();
1148        var f = {
1149            d: m,
1150            dd: S(m),
1151            ddd: B[j].shortDays[h],
1152            dddd: B[j].days[h],
1153            m: t + 1,
1154            mm: S(t + 1),
1155            mmm: B[j].shortMonths[t],
1156            mmmm: B[j].months[t],
1157            yy: String(b).slice(2),
1158            yyyy: b
1159        };
1160        c = c.replace(X, function (o) {
1161            return o in f ? f[o] : o.slice(1, o.length - 1)
1162        });
1163        return Y.html(c).html()
1164    }
1165    function y(b) {
1166        return parseInt(b, 10)
1167    }
1168    function U(b, c) {
1169        return b.getFullYear() === c.getFullYear() && b.getMonth() == c.getMonth() && b.getDate() == c.getDate()
1170    }
1171    function C(b) {
1172        if (b) {
1173            if (b.constructor == Date)
1174                return b;
1175            if (typeof b == "string") {
1176                var c = b.split("-");
1177                if (c.length == 3)
1178                    return new Date(y(c[0]), y(c[1]) - 1, y(c[2]));
1179                if (!/^-?\d+$/.test(b))
1180                    return;
1181                b = y(b)
1182            }
1183            c = new Date;
1184            c.setDate(c.getDate() + b);
1185            return c
1186        }
1187    }
1188    function Z(b, c) {
1189        function j(a, e, g) {
1190            l = a;
1191            D = a.getFullYear();
1192            E = a.getMonth();
1193            G = a.getDate();
1194            g = g || d.Event("api");
1195            g.type = "change";
1196            H.trigger(g, [a]);
1197            if (!g.isDefaultPrevented()) {
1198                b.val(T(a, e.format, e.lang));
1199                b.data("date", a);
1200                h.hide(g)
1201            }
1202        }
1203        function m(a) {
1204            a.type = "onShow";
1205            H.trigger(a);
1206            d(document).bind("keydown.d", function (e) {
1207                var g = e.keyCode;
1208                if (g == 8) {
1209                    b.val("");
1210                    return h.hide(e)
1211                }
1212                if (g == 27)
1213                    return h.hide(e);
1214                if (d(V).index(g) >= 0) {
1215                    if (!u) {
1216                        h.show(e);
1217                        return e.preventDefault()
1218                    }
1219                    var i = d("#" + f.weeks + " a"), p = d("." + f.focus), q = i.index(p);
1220                    p.removeClass(f.focus);
1221                    if (g == 74 || g == 40)
1222                        q += 7;
1223                    else
1224                        if (g == 75 || g == 38)
1225                            q -= 7;
1226                        else
1227                            if (g == 76 || g == 39)
1228                                q += 1;
1229                            else
1230                                if (g == 72 || g == 37)
1231                                    q -= 1;
1232                    if (q == -1) {
1233                        h.addMonth(-1);
1234                        p = d("#" + f.weeks + " a:last")
1235                    }
1236                    else
1237                        if (q ==
1238                        35) {
1239                            h.addMonth();
1240                            p = d("#" + f.weeks + " a:first")
1241                        }
1242                        else
1243                            p = i.eq(q);
1244                    p.addClass(f.focus);
1245                    return e.preventDefault()
1246                }
1247                if (g == 34)
1248                    return h.addMonth();
1249                if (g == 33)
1250                    return h.addMonth(-1);
1251                if (g == 36)
1252                    return h.today();
1253                if (g == 13)
1254                    d(e.target).is("select") || d("." + f.focus).click();
1255                return d([16, 17, 18, 9]).index(g) >= 0
1256            });
1257            d(document).bind("click.d", function (e) {
1258                var g = e.target;
1259                if (!d(g).parents("#" + f.root).length && g != b[0] && (!K || g != K[0]))
1260                    h.hide(e)
1261            })
1262        }
1263        var h = this, t = new Date, f = c.css, o = B[c.lang], k = d("#" + f.root), L = k.find("#" + f.title), K, I, J, D, E, G, l = b.attr("data-value") || c.value || b.val(), r = b.attr("min") || c.min, s = b.attr("max") || c.max, u;
1264        l = C(l) || t;
1265        r = C(r || c.yearRange[0] * 365);
1266        s = C(s || c.yearRange[1] * 365);
1267        if (!o)
1268            throw "Dateinput: invalid language: " + c.lang;
1269        if (b.attr("type") == "date") {
1270            var M = d("<input/>");
1271            d.each("name,readonly,disabled,value,required".split(","), function (a, e) {
1272                M.attr(e, b.attr(e))
1273            });
1274            b.replaceWith(M);
1275            b = M
1276        }
1277        b.addClass(f.input);
1278        var H = b.add(h);
1279        if (!k.length) {
1280            k = d("<div><div><a/><div/><a/></div><div><div/><div/></div></div>").hide().css({
1281                position: "absolute"
1282            }).attr("id", f.root);
1283            k.children().eq(0).attr("id", f.head).end().eq(1).attr("id", f.body).children().eq(0).attr("id", f.days).end().eq(1).attr("id", f.weeks).end().end().end().find("a").eq(0).attr("id", f.prev).end().eq(1).attr("id", f.next);
1284            L = k.find("#" + f.head).find("div").attr("id", f.title);
1285            if (c.selectors) {
1286                var z = d("<select/>").attr("id", f.month), A = d("<select/>").attr("id", f.year);
1287                L.append(z.add(A))
1288            }
1289            for (var $ = k.find("#" + f.days), N = 0; N < 7; N++)
1290                $.append(d("<span/>").text(o.shortDays[(N + c.firstDay) % 7]));
1291            b.after(k)
1292        }
1293        if (c.trigger)
1294            K = d("<a/>").attr("href", "#").addClass(f.trigger).click(function (a) {
1295                h.show();
1296                return a.preventDefault()
1297            }).insertAfter(b);
1298        var O = k.find("#" + f.weeks);
1299        A = k.find("#" + f.year);
1300        z = k.find("#" + f.month);
1301        d.extend(h, {
1302            show: function (a) {
1303                if (!(b.is("[readonly]") || u)) {
1304                    a = a || d.Event();
1305                    a.type = "onBeforeShow";
1306                    H.trigger(a);
1307                    if (!a.isDefaultPrevented()) {
1308                        d.each(W, function () {
1309                            this.hide()
1310                        });
1311                        u = true;
1312                        z.unbind("change").change(function () {
1313                            h.setValue(A.val(), d(this).val())
1314                        });
1315                        A.unbind("change").change(function () {
1316                            h.setValue(d(this).val(), z.val())
1317                        });
1318                        I = k.find("#" + f.prev).unbind("click").click(function () {
1319                            I.hasClass(f.disabled) || h.addMonth(-1);
1320                            return false
1321                        });
1322                        J = k.find("#" + f.next).unbind("click").click(function () {
1323                            J.hasClass(f.disabled) || h.addMonth();
1324                            return false
1325                        });
1326                        h.setValue(l);
1327                        var e = b.position();
1328                        k.css({
1329                            top: e.top + b.outerHeight({
1330                                margins: true
1331                            }) + c.offset[0],
1332                            left: e.left + c.offset[1]
1333                        });
1334                        if (c.speed)
1335                            k.show(c.speed, function () {
1336                                m(a)
1337                            });
1338                        else {
1339                            k.show();
1340                            m(a)
1341                        }
1342                        return h
1343                    }
1344                }
1345            },
1346            setValue: function (a, e, g) {
1347                var i;
1348                if (parseInt(e, 10) >= -1) {
1349                    a = y(a);
1350                    e = y(e);
1351                    g = y(g);
1352                    i = new Date(a, e, g)
1353                }
1354                else {
1355                    i = a || l;
1356                    a = i.getFullYear();
1357                    e = i.getMonth();
1358                    g = i.getDate()
1359                }
1360                if (e == -1) {
1361                    e = 11;
1362                    a--
1363                }
1364                else
1365                    if (e == 12) {
1366                        e = 0;
1367                        a++
1368                    }
1369                if (!u) {
1370                    j(i, c);
1371                    return h
1372                }
1373                E = e;
1374                D = a;
1375                i = new Date(a, e, 1 - c.firstDay);
1376                g = i.getDay();
1377                var p = R(a, e), q = R(a, e - 1), P;
1378                if (c.selectors) {
1379                    z.empty();
1380                    d.each(o.months, function (v, F) {
1381                        r < new Date(a, v + 1, -1) && s > new Date(a, v, 0) && z.append(d("<option/>").html(F).attr("value", v))
1382                    });
1383                    A.empty();
1384                    for (i = a + c.yearRange[0]; i < a + c.yearRange[1]; i++)
1385                        r < new Date(i + 1, -1, 0) && s > new Date(i, 0, 0) && A.append(d("<option/>").text(i));
1386                    z.val(e);
1387                    A.val(a)
1388                }
1389                else
1390                    L.html(o.months[e] +
1391                    " " +
1392                    a);
1393                O.empty();
1394                I.add(J).removeClass(f.disabled);
1395                for (var w = 0, n, x; w < 42; w++) {
1396                    n = d("<a/>");
1397                    if (w % 7 === 0) {
1398                        P = d("<div/>").addClass(f.week);
1399                        O.append(P)
1400                    }
1401                    if (w < g) {
1402                        n.addClass(f.off);
1403                        x = q - g + w + 1;
1404                        i = new Date(a, e - 1, x)
1405                    }
1406                    else
1407                        if (w >= g + p) {
1408                            n.addClass(f.off);
1409                            x = w - p - g + 1;
1410                            i = new Date(a, e + 1, x)
1411                        }
1412                        else {
1413                            x = w - g + 1;
1414                            i = new Date(a, e, x);
1415                            if (U(l, i))
1416                                n.attr("id", f.current).addClass(f.focus);
1417                            else
1418                                U(t, i) && n.attr("id", f.today)
1419                        }
1420                    r && i < r && n.add(I).addClass(f.disabled);
1421                    s && i > s && n.add(J).addClass(f.disabled);
1422                    n.attr("href", "#" + x).text(x).data("date", i);
1423                    P.append(n);
1424                    n.click(function (v) {
1425                        var F = d(this);
1426                        if (!F.hasClass(f.disabled)) {
1427                            d("#" + f.current).removeAttr("id");
1428                            F.attr("id", f.current);
1429                            j(F.data("date"), c, v)
1430                        }
1431                        return false
1432                    })
1433                }
1434                f.sunday && O.find(f.week).each(function () {
1435                    var v = c.firstDay ? 7 - c.firstDay : 0;
1436                    d(this).children().slice(v, v + 1).addClass(f.sunday)
1437                });
1438                return h
1439            },
1440            setMin: function (a, e) {
1441                r = C(a);
1442                e && l < r && h.setValue(r);
1443                return h
1444            },
1445            setMax: function (a, e) {
1446                s = C(a);
1447                e && l > s && h.setValue(s);
1448                return h
1449            },
1450            today: function () {
1451                return h.setValue(t)
1452            },
1453            addDay: function (a) {
1454                return this.setValue(D, E, G +
1455                (a ||
1456                1))
1457            },
1458            addMonth: function (a) {
1459                return this.setValue(D, E + (a || 1), G)
1460            },
1461            addYear: function (a) {
1462                return this.setValue(D + (a || 1), E, G)
1463            },
1464            hide: function (a) {
1465                if (u) {
1466                    a = a || d.Event();
1467                    a.type = "onHide";
1468                    H.trigger(a);
1469                    d(document).unbind("click.d").unbind("keydown.d");
1470                    if (a.isDefaultPrevented())
1471                        return;
1472                    k.hide();
1473                    u = false
1474                }
1475                return h
1476            },
1477            getConf: function () {
1478                return c
1479            },
1480            getInput: function () {
1481                return b
1482            },
1483            getCalendar: function () {
1484                return k
1485            },
1486            getValue: function (a) {
1487                return a ? T(l, a, c.lang) : l
1488            },
1489            isOpen: function () {
1490                return u
1491            }
1492        });
1493        d.each(["onBeforeShow", "onShow", "change", "onHide"], function (a, e) {
1494            d.isFunction(c[e]) && d(h).bind(e, c[e]);
1495            h[e] = function (g) {
1496                d(h).bind(e, g);
1497                return h
1498            }
1499        });
1500        b.bind("focus click", h.show).keydown(function (a) {
1501            var e = a.keyCode;
1502            if (!u && d(V).index(e) >= 0) {
1503                h.show(a);
1504                return a.preventDefault()
1505            }
1506            return a.shiftKey || a.ctrlKey || a.altKey || e == 9 ? true : a.preventDefault()
1507        });
1508        C(b.val()) && j(l, c)
1509    }
1510    d.tools = d.tools ||
1511    {
1512        version: "1.2.3"
1513    };
1514    var W = [], Q, V = [75, 76, 38, 39, 74, 72, 40, 37], B = {};
1515    Q = d.tools.dateinput = {
1516        conf: {
1517            format: "mm/dd/yy",
1518            selectors: false,
1519            yearRange: [-5, 5],
1520            lang: "en",
1521            offset: [0, 0],
1522            speed: 0,
1523            firstDay: 0,
1524            min: 0,
1525            max: 0,
1526            trigger: false,
1527            css: {
1528                prefix: "cal",
1529                input: "date",
1530                root: 0,
1531                head: 0,
1532                title: 0,
1533                prev: 0,
1534                next: 0,
1535                month: 0,
1536                year: 0,
1537                days: 0,
1538                body: 0,
1539                weeks: 0,
1540                today: 0,
1541                current: 0,
1542                week: 0,
1543                off: 0,
1544                sunday: 0,
1545                focus: 0,
1546                disabled: 0,
1547                trigger: 0
1548            }
1549        },
1550        localize: function (b, c) {
1551            d.each(c, function (j, m) {
1552                c[j] = m.split(",")
1553            });
1554            B[b] = c
1555        }
1556    };
1557    Q.localize("en", {
1558        months: "一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月",
1559        shortMonths: "一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月",
1560        days: "日,一,二,三,四,五,六",
1561        shortDays: "日,一,二,三,四,五,六"
1562    });
1563    var X = /d{1,4}|m{1,4}|yy(?:yy)?|"[^"]*"|'[^']*'/g, Y = d("<a/>");
1564    d.expr[":"].date = function (b) {
1565        var c = b.getAttribute("type");
1566        return c && c == "date" || !!d(b).data("dateinput")
1567    };
1568    d.fn.dateinput = function (b) {
1569        if (this.data("dateinput"))
1570            return this;
1571        b = d.extend(true, {}, Q.conf, b);
1572        d.each(b.css, function (j, m) {
1573            if (!m && j != "prefix")
1574                b.css[j] = (b.css.prefix || "") + (m || j)
1575        });
1576        var c;
1577        this.each(function () {
1578            var j = new Z(d(this), b);
1579            W.push(j);
1580            j = j.getInput().data("dateinput", j);
1581            c = c ? c.add(j) : j
1582        });
1583        return c ? c : this
1584    }
1585})(jQuery);
1586
1587
1588
1589/*--密码强度--*/
1590function isSecurity(v) {
1591    if (v.length < 6) {
1592        iss.reset(v.length);
1593        return
1594    }
1595    var a = -1;
1596    var b = (v.search(/[a-zA-Z]/) != -1) ? 1 : 0;
1597    var c = (v.search(/[0-9]/) != -1) ? 1 : 0;
1598    var d = (v.search(/[^A-Za-z0-9_]/) != -1) ? 1 : 0;
1599    var a = b + c + d;
1600    switch (a) {
1601        case 1:
1602            iss.level0();
1603            break;
1604        case 2:
1605            iss.level1();
1606            break;
1607        case 3:
1608            iss.level2();
1609            break;
1610        default:
1611            iss.reset(v.length)
1612    }
1613}
1614
1615var iss = {
1616    width: ["60", "80", "100", "10"],
1617    reset: function (a) {
1618        $("#BarBorder_TxtUserPassword").html("<span style='color:red'>  密码强度:弱</span>");
1619    },
1620    level0: function () {
1621        $("#BarBorder_TxtUserPassword").html("<span style='color:#FF3300'>  密码强度:一般</span>");
1622    },
1623    level1: function () {
1624        $("#BarBorder_TxtUserPassword").html("<span style='color:green'>  密码强度:强</span>");
1625    },
1626    level2: function () {
1627        $("#BarBorder_TxtUserPassword").html("<span style='color:green'>  密码强度:很强</span>");
1628    }
1629}
1630function Bardisplaynone() {
1631    $("#BarBorder_TxtUserPassword").hide();
1632}
1633
1634function Bardisplayshow() {
1635    $("#BarBorder_TxtUserPassword").empty();
1636    $("#ctl00_CphContent_ValrUserPassword").hide();
1637    document.getElementById("BarBorder_TxtUserPassword").style.display = "inline"
1638}
1639
1640String.prototype.endWith = function (a) {
1641    var b = new RegExp(a + "$");
1642    return b.test(this)
1643}
1644function batchconfirm(a, b) {
1645    var a = (arguments.length > 0) ? arguments[0] : "确定要进行此批量操作?";
1646    var b = (arguments.length > 1) ? arguments[1] : "请选择所要操作的记录!";
1647    var c = false;
1648    for (var i = 0; i < document.forms[0].length; i++) {
1649        var o = document.forms[0][i];
1650        if (o.type == "checkbox" && o.name.endWith("CheckBoxButton") && o.checked == true) {
1651            c = true;
1652            break
1653        }
1654    }
1655    if (!c) {
1656        alert(b);
1657        return false
1658    }
1659    else {
1660        if (!confirm(a)) {
1661            return false
1662        }
1663    }
1664}
1665
1666//列高度统一
1667function heightFix(column, column2, sign, offset) {
1668    var oCol = jQuery(column);
1669    var oCol2 = jQuery(column2);
1670    if (sign == undefined) {
1671        sign = "+";
1672    }
1673    if (offset == undefined) {
1674        offset = 0;
1675    }
1676    if (oCol.height() > oCol2.height()) {
1677        if (sign == "+") {
1678            oCol2.height(oCol.height() + offset);
1679        } else {
1680            oCol2.height(oCol.height() - offset);
1681        }
1682    }
1683}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.