var CommonObject = {
    $: function(s) {
        return (typeof s == 'object') ? s: document.getElementById(s);
    },
    ie: /msie/.test(window.navigator.userAgent.toLowerCase()),
    moz: /gecko/.test(window.navigator.userAgent.toLowerCase()),
    opera: /opera/.test(window.navigator.userAgent.toLowerCase()),
    addEvent: function(l, i, I) {
        if (l.attachEvent) {
            l.attachEvent("on" + i, I)
        } else {
            l.addEventListener(i, I, false)
        }
    },
    delEvent: function(l, i, I) {
        if (l.detachEvent) {
            l.detachEvent("on" + i, I)
        } else {
            l.removeEventListener(i, I, false)
        }
    },
    readCookie: function(O) {
        var o = "",
        l = O + "=";
        if (document.cookie.length > 0) {
            var i = document.cookie.indexOf(l);
            if (i != -1) {
                i += l.length;
                var I = document.cookie.indexOf(";", i);
                if (I == -1) I = document.cookie.length;
                o = unescape(document.cookie.substring(i, I))
            }
        };
        return o
    },
    writeCookie: function(i, l, o, c) {
        var O = "",
        I = "";
        if (o != null) {
            O = new Date((new Date).getTime() + o * 3600000);
            O = "; expires=" + O.toGMTString()
        };
        if (c != null) {
            I = ";domain=" + c
        };
        document.cookie = i + "=" + escape(l) + O + I
    },
    getElementsByClass: function(node, searchClass, tag) {
        var classElements = new Array();
        var els = node.getElementsByTagName(tag);
        var elsLen = els.length;
        var pattern = new RegExp("\\b" + searchClass + "\\b");
        for (i = 0, j = 0; i < elsLen; i++) {
            if (pattern.test(els[i].className)) {
                classElements[j] = els[i];
                j++;
            }
        }
        return classElements;
    }
};
var v = 0;
var tab = 0;
CommonObject.Focus = {
    GetInfo: function(Img, ImgElements, Menu, MenuElements, Title, TitleElements) {
        this.ImgConter = CommonObject.$(Img).getElementsByTagName(ImgElements);
        this.MenuConter = CommonObject.$(Menu).getElementsByTagName(MenuElements);
        if (Title !== "") {
            this.TitleConter = CommonObject.$(Title).getElementsByTagName(TitleElements);
        }
        if (typeof CommonObject.$(Img) == 'object') {
            if (Title !== "") {
                CommonObject.Focus.Creat(this.ImgConter, this.MenuConter, Img, Title, this.TitleConter);
                CommonObject.Focus.setauto(this.ImgConter, this.MenuConter, Img, Title, this.TitleConter);
            } else {
                CommonObject.Focus.Creat(this.ImgConter, this.MenuConter, Img, '', '');
                CommonObject.Focus.setauto(this.ImgConter, this.MenuConter, Img, '', '');
            }
        }
    },
    Creat: function(ImgConter, MenuConter, Img, Title, TitleConter) {
        for (var i = 0; i < MenuConter.length; i++) {
            if (Title !== "") {
                var col = new CommonObject.Focus.Play(i, ImgConter, MenuConter, Img, Title, TitleConter);
                MenuConter[i].onclick = col.clickFunc;
                ImgConter[i].onmouseover = function() {
                    clearInterval(roll)
                };
                MenuConter[i].onmouseover = function() {
                    clearInterval(roll)
                };
                MenuConter[i].onmouseout = ImgConter[i].onmouseout = function() {
                    CommonObject.Focus.setauto(ImgConter, MenuConter, Img, Title, TitleConter)
                };
            } else {
                var col = new CommonObject.Focus.Play(i, ImgConter, MenuConter, Img, '', '');
                MenuConter[i].onclick = col.clickFunc;
                ImgConter[i].onmouseover = function() {
                    clearInterval(roll)
                };
                MenuConter[i].onmouseover = function() {
                    clearInterval(roll)
                };
                MenuConter[i].onmouseout = ImgConter[i].onmouseout = function() {
                    CommonObject.Focus.setauto(ImgConter, MenuConter, Img, '', '')
                };
            }
        }
    },
    Play: function(n, I, M, Img, TN, T) {
        this.clickFunc = function() {
            v = n;
            for (var k = 0; k < M.length; k++) {
                M[k].className = "nos";
                if (TN !== "") {
                    T[k].className = "nos";
                }
                try {
                    if (CommonObject.ie) {
                        CommonObject.$(Img).filters[0].Apply();
                        I[k].className = "undis";
                        CommonObject.$(Img).filters[0].play();
                        if (TN !== "") {
                            CommonObject.$(TN).filters[0].Apply();
                            T[k].className = "undis";
                            CommonObject.$(TN).filters[0].play();
                        }
                    } else {
                        I[k].className = "undis";
                        if (TN !== "") {
                            T[k].className = "undis";
                        }
                    }
                } catch(e) {}
            }
            M[v].className = "s";
            I[v].className = "dis";
            if (TN !== "") {
                T[v].className = "dis";
            }
        }
    },
    setauto: function(ImgConter, MenuConter, Img, Title, TitleConter) {
        roll = setInterval(function() {
            v++;
            if (v > ImgConter.length - 1) v = 0;
            if (Title !== "") {
                var QQ = new CommonObject.Focus.Play(v, ImgConter, MenuConter, Img, Title, TitleConter);
            } else {
                var QQ = new CommonObject.Focus.Play(v, ImgConter, MenuConter, Img, '', '');
            }
            QQ.clickFunc();
        },
        3000);
    }
};
CommonObject.Tab = {
    GetInfo: function(List, ListElements, Cot, CotElements, IsAuto, HandName) {
        this.ListCoent = CommonObject.$(List).getElementsByTagName(ListElements);
        this.CotCoent = CommonObject.$(Cot).getElementsByTagName(CotElements);
		//alert("this.ListCoent.length=" + this.ListCoent.length + ",this.CotCoent=" + this.CotCoent.length);
        this.HandName = HandName;
        if (IsAuto) {
            CommonObject.Tab.setAuto(List, this.ListCoent, Cot, this.CotCoent);
            CommonObject.Tab.Creat(List, this.ListCoent, Cot, this.CotCoent, this.HandName);
        } else {
            CommonObject.Tab.Creat(List, this.ListCoent, Cot, this.CotCoent, this.HandName);
        };
    },
    Creat: function(List, ListElements, Cot, CotElements, HandName) {
        for (var i = 0; i < ListElements.length; i++) {
            var col = new CommonObject.Tab.Play(i, List, ListElements, Cot, CotElements);
            CommonObject.addEvent(ListElements[i], HandName, col.clickFunc);
            if (typeof(Tabroll) !== "undefined") {
                ListElements[i].onmouseover = function() {
                    clearInterval(Tabroll)
                };
                ListElements[i].onmouseout = function() {
                    CommonObject.Tab.setAuto(List, ListElements, Cot, CotElements)
                };
            }
        }
    },
    Play: function(n, List, ListElements, Cot, CotElements) {
        this.clickFunc = function() {
            tab = n;
            for (var k = 0; k < ListElements.length; k++) {
                ListElements[k].className    = "";
                CotElements[k].style.display = "none";
            }
            ListElements[n].className    = "on";
            CotElements[n].style.display = "";
        }
    },
    setAuto: function(List, ListElements, Cot, CotElements) {
        Tabroll = setInterval(function() {
            tab++;
            if (tab > ListElements.length - 1) tab = 0;
            var objAuto = new CommonObject.Tab.Play(tab, List, ListElements, Cot, CotElements);
            objAuto.clickFunc();
        },
        3000);
    }
};
function CommonScroll(scrollContId, arrLeftId, arrRightId, dotListId) {
    this.scrollContId = scrollContId;
    this.arrLeftId = arrLeftId;
    this.arrRightId = arrRightId;
    this.dotListId = dotListId;
    this.dotClassName = "dotItem";
    this.dotOnClassName = "dotItemOn";
    this.dotObjArr = [];
    this.pageWidth = 0;
    this.frameWidth = 0;
    this.speed = 10;
    this.space = 10;
    this.pageIndex = 0;
    this.autoPlay = true;
    this.autoPlayTime = 5;
    var _autoTimeObj, _scrollTimeObj, _state = "ready";
    this.stripDiv = document.createElement("DIV");
    this.listDiv01 = document.createElement("DIV");
    this.listDiv02 = document.createElement("DIV");
    if (!CommonScroll.childs) {
        CommonScroll.childs = []
    };
    this.ID = CommonScroll.childs.length;
    CommonScroll.childs.push(this);
    this.initialize = function() {
        if (!this.scrollContId) {
            throw new Error("必须指定scrollContId.");
            return
        };
        this.scrollContDiv = CommonObject.$(this.scrollContId);
        if (!this.scrollContDiv) {
            throw new Error("scrollContId不是正确的对象.(scrollContId = \"" + this.scrollContId + "\")");
            return
        };
        this.scrollContDiv.style.width = this.frameWidth + "px";
        this.scrollContDiv.style.overflow = "hidden";
        this.listDiv01.innerHTML = this.listDiv02.innerHTML = this.scrollContDiv.innerHTML;
        this.scrollContDiv.innerHTML = "";
        this.scrollContDiv.appendChild(this.stripDiv);
        this.stripDiv.appendChild(this.listDiv01);
        this.stripDiv.appendChild(this.listDiv02);
        this.stripDiv.style.overflow = "hidden";
        this.stripDiv.style.zoom = "1";
        this.stripDiv.style.width = "32766px";
        this.listDiv01.style.cssFloat = "left";
        this.listDiv02.style.cssFloat = "left";
        CommonObject.addEvent(this.scrollContDiv, "mouseover", Function("CommonScroll.childs[" + this.ID + "].stop()"));
        CommonObject.addEvent(this.scrollContDiv, "mouseout", Function("CommonScroll.childs[" + this.ID + "].play()"));
        if (this.arrLeftId) {
            this.arrLeftObj = CommonObject.$(this.arrLeftId);
            if (this.arrLeftObj) {
                CommonObject.addEvent(this.arrLeftObj, "mousedown", Function("CommonScroll.childs[" + this.ID + "].rightMouseDown()"));
                CommonObject.addEvent(this.arrLeftObj, "mouseup", Function("CommonScroll.childs[" + this.ID + "].rightEnd()"));
                CommonObject.addEvent(this.arrLeftObj, "mouseout", Function("CommonScroll.childs[" + this.ID + "].rightEnd()"))
            }
        };
        if (this.arrRightId) {
            this.arrRightObj = CommonObject.$(this.arrRightId);
            if (this.arrRightObj) {
                CommonObject.addEvent(this.arrRightObj, "mousedown", Function("CommonScroll.childs[" + this.ID + "].leftMouseDown()"));
                CommonObject.addEvent(this.arrRightObj, "mouseup", Function("CommonScroll.childs[" + this.ID + "].leftEnd()"));
                CommonObject.addEvent(this.arrRightObj, "mouseout", Function("CommonScroll.childs[" + this.ID + "].leftEnd()"))
            }
        };
        if (this.dotListId) {
            this.dotListObj = CommonObject.$(this.dotListId);
            if (this.dotListObj) {
                var pages = Math.round(this.listDiv01.offsetWidth / this.frameWidth + 0.4),
                i,
                tempObj;
                for (i = 0; i < pages; i++) {
                    tempObj = document.createElement("span");
                    this.dotListObj.appendChild(tempObj);
                    this.dotObjArr.push(tempObj);
                    if (i == this.pageIndex) {
                        tempObj.className = this.dotClassName
                    } else {
                        tempObj.className = this.dotOnClassName
                    };
                    tempObj.title = "第" + (i + 1) + "页";
                    CommonObject.addEvent(tempObj, "click", Function("CommonScroll.childs[" + this.ID + "].pageTo(" + i + ")"))
                }
            }
        };
        if (this.autoPlay) {
            this.play()
        }
    };
    this.leftMouseDown = function() {
        if (_state != "ready") {
            return
        };
        _state = "floating";
        _scrollTimeObj = setInterval("CommonScroll.childs[" + this.ID + "].moveLeft()", this.speed)
    };
    this.rightMouseDown = function() {
        if (_state != "ready") {
            return
        };
        _state = "floating";
        _scrollTimeObj = setInterval("CommonScroll.childs[" + this.ID + "].moveRight()", this.speed)
    };
    this.moveLeft = function() {
        if (this.scrollContDiv.scrollLeft + this.space >= this.listDiv01.scrollWidth) {
            this.scrollContDiv.scrollLeft = this.scrollContDiv.scrollLeft + this.space - this.listDiv01.scrollWidth
        } else {
            this.scrollContDiv.scrollLeft += this.space
        };
        this.accountPageIndex()
    };
    this.moveRight = function() {
        if (this.scrollContDiv.scrollLeft - this.space <= 0) {
            this.scrollContDiv.scrollLeft = this.listDiv01.scrollWidth + this.scrollContDiv.scrollLeft - this.space
        } else {
            this.scrollContDiv.scrollLeft -= this.space
        };
        this.accountPageIndex()
    };
    this.leftEnd = function() {
        if (_state != "floating") {
            return
        };
        _state = "stoping";
        clearInterval(_scrollTimeObj);
        var fill = this.pageWidth - this.scrollContDiv.scrollLeft % this.pageWidth;
        this.move(fill)
    };
    this.rightEnd = function() {
        if (_state != "floating") {
            return
        };
        _state = "stoping";
        clearInterval(_scrollTimeObj);
        var fill = -this.scrollContDiv.scrollLeft % this.pageWidth;
        this.move(fill)
    };
    this.move = function(num, quick) {
        var thisMove = num / 5;
        if (!quick) {
            if (thisMove > this.space) {
                thisMove = this.space
            };
            if (thisMove < -this.space) {
                thisMove = -this.space
            }
        };
        if (Math.abs(thisMove) < 1 && thisMove != 0) {
            thisMove = thisMove >= 0 ? 1 : -1
        } else {
            thisMove = Math.round(thisMove)
        };
        var temp = this.scrollContDiv.scrollLeft + thisMove;
        if (thisMove > 0) {
            if (this.scrollContDiv.scrollLeft + thisMove >= this.listDiv01.scrollWidth) {
                this.scrollContDiv.scrollLeft = this.scrollContDiv.scrollLeft + thisMove - this.listDiv01.scrollWidth
            } else {
                this.scrollContDiv.scrollLeft += thisMove
            }
        } else {
            if (this.scrollContDiv.scrollLeft - thisMove <= 0) {
                this.scrollContDiv.scrollLeft = this.listDiv01.scrollWidth + this.scrollContDiv.scrollLeft - thisMove
            } else {
                this.scrollContDiv.scrollLeft += thisMove
            }
        };
        num -= thisMove;
        if (Math.abs(num) == 0) {
            _state = "ready";
            if (this.autoPlay) {
                this.play()
            };
            this.accountPageIndex();
            return
        } else {
            this.accountPageIndex();
            setTimeout("CommonScroll.childs[" + this.ID + "].move(" + num + "," + quick + ")", this.speed)
        }
    };
    this.next = function() {
        if (_state != "ready") {
            return
        };
        _state = "stoping";
        this.move(this.pageWidth, true)
    };
    this.play = function() {
        if (!this.autoPlay) {
            return
        };
        clearInterval(_autoTimeObj);
        _autoTimeObj = setInterval("CommonScroll.childs[" + this.ID + "].next()", this.autoPlayTime * 1000)
    };
    this.stop = function() {
        clearInterval(_autoTimeObj)
    };
    this.pageTo = function(num) {
        if (_state != "ready") {
            return
        };
        _state = "stoping";
        var fill = num * this.frameWidth - this.scrollContDiv.scrollLeft;
        this.move(fill, true)
    };
    this.accountPageIndex = function() {
        this.pageIndex = Math.round(this.scrollContDiv.scrollLeft / this.frameWidth);
        if (this.pageIndex > Math.round(this.listDiv01.offsetWidth / this.frameWidth + 0.4) - 1) {
            this.pageIndex = 0
        };
        var i;
        for (i = 0; i < this.dotObjArr.length; i++) {
            if (i == this.pageIndex) {
                this.dotObjArr[i].className = this.dotClassName
            } else {
                this.dotObjArr[i].className = this.dotOnClassName
            }
        }
    }
};
function MarqueeText() {
    this.ID = CommonObject.$(arguments[0]);
    if (!this.ID) {
        this.ID = -1;
        return;
    }
    this.Direction = this.Width = this.Height = this.DelayTime = this.WaitTime = this.Correct = this.CTL = this.StartID = this.Stop = this.MouseOver = 0;
    this.Step = 1;
    this.Timer = 30;
    this.DirectionArray = {
        "top": 0,
        "bottom": 1,
        "left": 2,
        "right": 3
    };
    if (typeof arguments[1] == "number") this.Direction = arguments[1];
    if (typeof arguments[2] == "number") this.Step = arguments[2];
    if (typeof arguments[3] == "number") this.Width = arguments[3];
    if (typeof arguments[4] == "number") this.Height = arguments[4];
    if (typeof arguments[5] == "number") this.Timer = arguments[5];
    if (typeof arguments[6] == "number") this.DelayTime = arguments[6];
    if (typeof arguments[7] == "number") this.WaitTime = arguments[7];
    if (typeof arguments[8] == "number") this.ScrollStep = arguments[8];
    if (typeof arguments[9] == "string") this.hand1 = arguments[9];
    if (typeof arguments[10] == "string") this.hand2 = arguments[10];
    this.ID.style.overflow = this.ID.style.overflowX = this.ID.style.overflowY = "hidden";
    this.ID.noWrap = true;
    this.IsNotOpera = (navigator.userAgent.toLowerCase().indexOf("opera") == -1);
    if (arguments.length >= 7) this.Start();
};
MarqueeText.prototype.Start = function() {
    if (this.ID == -1) return;
    if (this.WaitTime < 800) this.WaitTime = 800;
    if (this.Timer < 20) this.Timer = 20;
    if (this.Width == 0) this.Width = parseInt(this.ID.style.width);
    if (this.Height == 0) this.Height = parseInt(this.ID.style.height);
    if (typeof this.Direction == "string") this.Direction = this.DirectionArray[this.Direction.toString().toLowerCase()];
    this.HalfWidth = Math.round(this.Width / 2);
    this.BakStep = this.Step;
    this.ID.style.width = this.Width;
    this.ID.style.height = this.Height;
    if (typeof this.ScrollStep != "number") this.ScrollStep = this.Direction > 1 ? this.Width: this.Height;
    var msobj = this;
    var timer = this.Timer;
    var delaytime = this.DelayTime;
    var waittime = this.WaitTime;
    var had1 = CommonObject.$(this.hand1);
    var had2 = CommonObject.$(this.hand2);
    if (this.Direction == 0 || this.Direction == 1) {
        if (had1 && had2) {
            if (this.Direction == 0 || this.Direction == 1) {
                had1.onclick = function() {
                    msobj.ID.scrollTop = 0;
                    msobj.Stop = 1;
                    clearInterval(msobj.TimerID);
                    msobj.Direction = 0;
                    msobj.Continue();
                };
                had2.onclick = function() {
                    msobj.ID.scrollTop = msobj.Height;
                    msobj.Stop = 1;
                    clearInterval(msobj.TimerID);
                    msobj.Direction = 1;
                    msobj.Continue();
                };
            }
        }
    }
    msobj.StartID = function() {
        msobj.Scroll()
    };
    msobj.Continue = function() {
        if (msobj.MouseOver == 1) {
            setTimeout(msobj.Continue, delaytime);
        } else {
            clearInterval(msobj.TimerID);
            msobj.CTL = msobj.Stop = 0;
            msobj.TimerID = setInterval(msobj.StartID, timer);
        }
    };
    msobj.Pause = function() {
        msobj.Stop = 1;
        clearInterval(msobj.TimerID);
        setTimeout(msobj.Continue, delaytime);
    };
    msobj.Begin = function() {
        msobj.ClientScroll = msobj.Direction > 1 ? msobj.ID.scrollWidth: msobj.ID.scrollHeight;
        if ((msobj.Direction <= 1 && msobj.ClientScroll < msobj.Height) || (msobj.Direction > 1 && msobj.ClientScroll < msobj.Width)) return;
        msobj.ID.innerHTML += msobj.ID.innerHTML;
        msobj.TimerID = setInterval(msobj.StartID, timer);
        if (msobj.ScrollStep < 0) return;
        msobj.ID.onmousemove = function(event) {
            if (msobj.ScrollStep == 0 && msobj.Direction > 1) {
                var event = event || window.event;
                if (window.event) {
                    if (msobj.IsNotOpera) {
                        msobj.EventLeft = event.srcElement.id == msobj.ID.id ? event.offsetX - msobj.ID.scrollLeft: event.srcElement.offsetLeft - msobj.ID.scrollLeft + event.offsetX;
                    } else {
                        msobj.ScrollStep = null;
                        return;
                    }
                } else {
                    msobj.EventLeft = event.layerX - msobj.ID.scrollLeft;
                }
                msobj.Direction = msobj.EventLeft > msobj.HalfWidth ? 3 : 2;
                msobj.AbsCenter = Math.abs(msobj.HalfWidth - msobj.EventLeft);
                msobj.Step = Math.round(msobj.AbsCenter * (msobj.BakStep * 2) / msobj.HalfWidth);
            }
        };
        msobj.ID.onmouseover = function() {
            if (msobj.ScrollStep == 0) return;
            msobj.MouseOver = 1;
            clearInterval(msobj.TimerID);
        };
        msobj.ID.onmouseout = function() {
            if (msobj.ScrollStep == 0) {
                if (msobj.Step == 0) msobj.Step = 1;
                return;
            };
            msobj.MouseOver = 0;
            if (msobj.Stop == 0) {
                clearInterval(msobj.TimerID);
                msobj.TimerID = setInterval(msobj.StartID, timer);
            }
        };
    };
    setTimeout(msobj.Begin, waittime);
};
MarqueeText.prototype.Scroll = function() {
    switch (this.Direction) {
    case 0:
        this.CTL += this.Step;
        if (this.CTL >= this.ScrollStep && this.DelayTime > 0) {
            this.ID.scrollTop += this.ScrollStep + this.Step - this.CTL;
            this.Pause();
            return;
        } else {
            if (this.ID.scrollTop >= this.ClientScroll) {
                this.ID.scrollTop -= this.ClientScroll;
            }
            this.ID.scrollTop += this.Step;
        }
        break;
    case 1:
        this.CTL += this.Step;
        if (this.CTL >= this.ScrollStep && this.DelayTime > 0) {
            this.ID.scrollTop -= this.ScrollStep + this.Step - this.CTL;
            this.Pause();
            return;
        } else {
            if (this.ID.scrollTop <= 0) {
                this.ID.scrollTop += this.ClientScroll;
            }
            this.ID.scrollTop -= this.Step;
        }
        break;
    case 2:
        this.CTL += this.Step;
        if (this.CTL >= this.ScrollStep && this.DelayTime > 0) {
            this.ID.scrollLeft += this.ScrollStep + this.Step - this.CTL;
            this.Pause();
            return;
        } else {
            if (this.ID.scrollLeft >= this.ClientScroll) {
                this.ID.scrollLeft -= this.ClientScroll;
            }
            this.ID.scrollLeft += this.Step;
        }
        break;
    case 3:
        this.CTL += this.Step;
        if (this.CTL >= this.ScrollStep && this.DelayTime > 0) {
            this.ID.scrollLeft -= this.ScrollStep + this.Step - this.CTL;
            this.Pause();
            return;
        } else {
            if (this.ID.scrollLeft <= 0) {
                this.ID.scrollLeft += this.ClientScroll;
            }
            this.ID.scrollLeft -= this.Step;
        }
        break;
    }
};
CommonObject.OutLookBar = {
    GetInfo: function(ElementsClassName, ElementsTag) {
        this.Elemets = CommonObject.getElementsByClass(document, ElementsClassName, ElementsTag);
        CommonObject.OutLookBar.Creat(this.Elemets);
    },
    Creat: function(Elemets) {
        for (var i = 0; i < Elemets.length; i++) {
            if (i == 0) {
                Elemets[i].onclick = function() {
                    CommonObject.OutLookBar.Change(Elemets, 0);
                }
            } else {
                Elemets[i].childNodes[1].style.display = "none"; (function() {
                    var o = i;
                    Elemets[o].onclick = function() {
                        CommonObject.OutLookBar.Change(Elemets, o);
                    }
                })()
            }
        }
    },
    Change: function(Elemets, n) {
        var way = 1;
        for (var i = 0; i < Elemets.length; i++) {
            Elemets[i].childNodes[1].style.display = "none";
        }
        Elemets[n].childNodes[1].style.display = "block";
        if (way) n++;
        else n--;
        if (n > Elemets.length) {
            n = Elemets.length - 1;
            way = 0;
        } else if (n == 0) {
            n = 1;
            way = 1;
        }
    }
};

function jsonParse(text){
	var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
	var j;
	if (cx.test(text)) {
		text = text.replace(cx, function (a) {
			return '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
		});
	}
	if (/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']').replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
		j = eval('(' + text + ')');
		return j;
	}
	alert('数据格式错误，无法解析');
}

function wsttrim(s) {
	return s.replace(/(^\s*)|(\s*$)/g, "").replace(/\t/g, "").replace(/\n/g, "").replace(/\r\n/g, "");
}
