var Prototype={Version:"1.6.0.2",Browser:{IE:!!(window.attachEvent&&!window.opera),Opera:!!window.opera,Gecko:navigator.userAgent.indexOf("Gecko")>-1&&navigator.userAgent.indexOf("KHTML")==-1,MobileSafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/)},BrowserFeatures:{XPath:!!document.evaluate},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",emptyFunction:function(){},K:function(A){return A}};var Class={create:function(){var E=null,D=$A(arguments);if(Object.isFunction(D[0])){E=D.shift()}function A(){this.initialize.apply(this,arguments)}Object.extend(A,Class.Methods);A.superclass=E;A.subclasses=[];if(E){var B=function(){};B.prototype=E.prototype;A.prototype=new B;E.subclasses.push(A)}for(var C=0;C<D.length;C++){A.addMethods(D[C])}if(!A.prototype.initialize){A.prototype.initialize=Prototype.emptyFunction}A.prototype.constructor=A;return A}};Class.Methods={addMethods:function(G){var C=this.superclass&&this.superclass.prototype;var B=Object.keys(G);if(!Object.keys({toString:true}).length){B.push("toString","valueOf")}for(var A=0,D=B.length;A<D;A++){var F=B[A],E=G[F];if(C&&Object.isFunction(E)&&E.argumentNames()[0]=="$super"){var H=E,E=Object.extend((function(I){return function(){return C[I].apply(this,arguments)}})(F).wrap(H),{valueOf:function(){return H},toString:function(){return H.toString()}})}this.prototype[F]=E}return this}};Object.extend=function(A,C){for(var B in C){A[B]=C[B]}return A};document._getElementsByXPath=function(F,A){var C=[];var E=document.evaluate(F,$(A)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var B=0,D=E.snapshotLength;B<D;B++){C.push(E.snapshotItem(B))}return C};if(!window.Element){var Element=new Object()}Element.extend=function(E){if(!E){return }if(_nativeExtensions||E.nodeType==3){return E}if(!E._extended&&E.tagName&&E!=window){var C=Object.clone(Element.Methods),B=Element.extend.cache;for(var H in C){var G=C[H];if(typeof G=="function"&&!(H in E)){E[H]=B.findOrStore(G)}}var A={},F=Element.Methods.ByTag;var C=Object.clone(A),D=E.tagName,H,G;if(F[D]){Object.extend(C,F[D])}for(H in C){G=C[H];if(Object.isFunction(G)&&!(H in E)){E[H]=G.methodize()}}}return E};Element.getCheckBoxGroup=function(A){return document.getElementsByName(A)};Element.extend.cache={findOrStore:function(A){return this[A]=this[A]||function(){return A.apply(null,[this].concat($A(arguments)))}}};Element.Methods={visible:function(A){return $(A).style.display!="none"},hide:function(A){$(A).style.display="none";return A},show:function(A){$(A).style.display="";return A},remove:function(A){A=$(A);A.parentNode.removeChild(A);return A},getElementsByClassName:function(A,B){A=$(A);return document.getElementsByClassName(B,A)},scrollTo:function(A){A=$(A);var B=A.cumulativeOffset();window.scrollTo(B[0],B[1]);return A},cumulativeOffset:function(A){A=$(A);return Position.cumulativeOffset(A)},hasClassName:function(A,B){if(!(A=$(A))){return }var C=A.className;if(C.length==0){return false}if(C==B||C.match(new RegExp("(^|\\s)"+B+"(\\s|$)"))){return true}return false},recursivelyCollect:function(A,C){A=$(A);var B=[];while(A=A[C]){if(A.nodeType==1){B.push(Element.extend(A))}}return B},ancestors:function(A){return $(A).recursivelyCollect("parentNode")},descendants:function(A){return $A($(A).getElementsByTagName("*")).each(Element.extend)},firstDescendant:function(A){A=$(A).firstChild;while(A&&A.nodeType!=1){A=A.nextSibling}return $(A)},up:function(B,D,A){B=$(B);if(arguments.length==1){return $(B.parentNode)}var C=B.ancestors();return D?B.findElement(C,D,A):C[A||0]},findElements:function(C,A,G){C=$(C);var F=[];Object.isNumber(G)?index=G:F=G.split(".");var B=F[0]||"",H=F[1]||"";if(B.empty()&&H.empty()){return A[index]}var I=[];for(var D=0;D<A.length;D++){var E=A[D];if(E.tagName.toLowerCase()==B){if(H.empty()){I.push(E)}else{if(E.className==H){I.push(E)}}}}return I},findElement:function(C,D,E,B){var A=C.findElements(D,E);return $(A[B||0])},down:function(B,C,A){B=$(B);if(arguments.length==1){return B.firstDescendant()}var D=B.descendants();return C?B.findElement(D,C,A):D[A||0]},hasAttribute:function(A,B){A=$(A);return(A.getAttribute(B)==null||(typeof A.getAttribute(B)=="undefined"))},nextElementSibling:function(A){A=$(A);while(A=A.nextSibling){if(A.nodeType==1){return $(A)}}return null},previousElementSibling:function(A){A=$(A);while(A=A.previousSibling){if(A.nodeType==1){return $(A)}}return null}};Element.Methods.ByTag={};Object.extend(Element,Element.Methods);Element._returnOffset=function(B,C){var A=[B,C];A.left=B;A.top=C;return A};var Position={cumulativeOffset:function(B){var A=0,C=0;do{A+=B.offsetTop||0;C+=B.offsetLeft||0;B=B.offsetParent}while(B);return Element._returnOffset(C,A)},positionedOffset:function(B){var A=0,C=0;do{A+=B.offsetTop||0;C+=B.offsetLeft||0;B=B.offsetParent}while(B);return Element._returnOffset(C,A)},offsetParent:function(A){if(A.offsetParent){return A.offsetParent}if(A==document.body){return A}while((A=A.parentNode)&&A!=document.body){if(Element.getStyle(A,"position")!="static"){return A}}return document.body}};document.getElementsByClassName=function(D,A){if(Prototype.BrowserFeatures.XPath){var G=".//*[contains(concat(' ', @class, ' '), ' "+D+" ')]";return document._getElementsByXPath(G,A)}else{var C=($(A)||document.body).getElementsByTagName("*");var F=[],H;for(var B=0,E=C.length;B<E;B++){H=C[B];if(Element.hasClassName(H,D)){F.push(Element.extend(H))}}return F}};Object.extend(Object,{keys:function(A){var B=[];for(var C in A){B.push(C)}return B},values:function(B){var A=[];for(var C in B){A.push(B[C])}return A},clone:function(A){return Object.extend({},A)},isElement:function(A){return A&&A.nodeType==1},isArray:function(A){return A!=null&&typeof A=="object"&&"splice" in A&&"join" in A},isFunction:function(A){return typeof A=="function"},isString:function(A){return typeof A=="string"},isNumber:function(A){return typeof A=="number"},isUndefined:function(A){return typeof A=="undefined"}});Object.extend(Function.prototype,{argumentNames:function(){var A=this.toString().match(/^[\s\(]*function[^(]*\((.*?)\)/)[1].split(",").invoke("strip");return A.length==1&&!A[0]?[]:A},bind:function(){var A=this,C=$A(arguments),B=C.shift();return function(){return A.apply(B,C.concat($A(arguments)))}},bindAsEventListener:function(){var A=this,C=$A(arguments),B=C.shift();return function(D){return A.apply(B,[(D||window.event)].concat(C).concat($A(arguments)))}},methodize:function(){if(this._methodized){return this._methodized}var A=this;return this._methodized=function(){return A.apply(null,[this].concat($A(arguments)))}}});Object.extend(Number.prototype,{succ:function(){return this+1},dec:function(){return this-1}});Object.extend(Date.prototype,{format:function(B){var C={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};if(/(y+)/.test(B)){B=B.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))}for(var A in C){if(new RegExp("("+A+")").test(B)){B=B.replace(RegExp.$1,RegExp.$1.length==1?C[A]:("00"+C[A]).substr((""+C[A]).length))}}return B}});var $break=new Object();var $continue=new Object();var Enumerable={each:function(B){var A=0;try{this._each(function(D){try{B(D,A++)}catch(E){if(E!=$continue){throw E}}})}catch(C){if(C!=$break){throw C}}return this},inject:function(A,C,B){C=C.bind(B);this.each(function(E,D){A=C(A,E,D)});return A},collect:function(C,B){C=C?C.bind(B):Prototype.K;var A=[];this.each(function(E,D){A.push(C(E,D))});return A},include:function(A){var B=false;this.each(function(C){if(C==A){B=true;throw $break}});return B},pluck:function(B){var A=[];this.each(function(C){A.push(C[B])});return A},invoke:function(B){var A=$A(arguments).slice(1);return this.map(function(C){return C[B].apply(C,A)})}};Object.extend(Enumerable,{map:Enumerable.collect});var $A=Array.from=function(D){if(!D){return[]}if(D.toArray){return D.toArray()}else{var B=[];for(var A=0,C=D.length;A<C;A++){B.push(D[A])}return B}};Object.extend(Array.prototype,Enumerable);if(!Array.prototype._reverse){Array.prototype._reverse=Array.prototype.reverse}Object.extend(Array.prototype,{_each:function(B){for(var A=0,C=this.length;A<C;A++){B(this[A])}},indexOf:function(A){for(var B=0,C=this.length;B<C;B++){if(this[B]==A){return B}}return -1},reverse:function(A){return(A!==false?this:this.toArray())._reverse()},without:function(B){if(Object.isElement(B)){return this.include(B)?this.remove(this.indexOf(B)):this}if(Object.isString(B)){var A=this;this.each(function(D,C){if(D.className.include(B)){A=A.remove(C)}});return A}return this},remove:function(A){if(A<0){return this}else{return this.slice(0,A).concat(this.slice(A+1,this.length))}},clone:function(){return[].concat(this)}});Array.prototype.toArray=Array.prototype.clone;if(Prototype.Browser.Opera){Array.prototype.concat=function(){var E=[];for(var B=0,C=this.length;B<C;B++){E.push(this[B])}for(var B=0,C=arguments.length;B<C;B++){if(arguments[B].constructor==Array){for(var A=0,D=arguments[B].length;A<D;A++){E.push(arguments[B][A])}}else{E.push(arguments[B])}}return E}}function $(B){if(arguments.length>1){for(var A=0,D=[],C=arguments.length;A<C;A++){D.push($(arguments[A]))}return D}if(typeof B=="string"){B=document.getElementById(B)}return Element.extend(B)}var _nativeExtensions=false;var Try={these:function(){var C;for(var B=0,D=arguments.length;B<D;B++){var A=arguments[B];try{C=A();break}catch(E){}}return C}};var Form={};Form.Methods={getElements:function(A){return $A($(A).getElementsByTagName("*")).inject([],function(B,C){if(Form.Element.Serializers[C.tagName.toLowerCase()]){B.push(Element.extend(C))}return B})}};Form.Element={};Form.Element.Methods={getValue:function(A){A=$(A);var B=A.tagName.toLowerCase();return Form.Element.Serializers[B](A)},setValue:function(A,B){A=$(A);var C=A.tagName.toLowerCase();Form.Element.Serializers[C](A,B);return A},activate:function(A){A=$(A);try{A.focus();if(A.select&&(A.tagName.toLowerCase()!="input"||!["button","reset","submit"].include(A.type))){A.select()}}catch(B){}return A}};var Field=Form.Element;var $F=Form.Element.Methods.getValue;Form.Element.Serializers={input:function(A,B){switch(A.type.toLowerCase()){case"checkbox":case"radio":return Form.Element.Serializers.inputSelector(A,B);default:return Form.Element.Serializers.textarea(A,B)}},inputSelector:function(A,B){if(Object.isUndefined(B)){return A.checked?A.value:null}else{A.checked=!!B}},textarea:function(A,B){if(Object.isUndefined(B)){return A.value}else{A.value=B}},select:function(D,A){if(Object.isUndefined(A)){return this[D.type=="select-one"?"selectOne":"selectMany"](D)}else{var C,F,G=!Object.isArray(A);for(var B=0,E=D.length;B<E;B++){C=D.options[B];F=this.optionValue(C);if(G){if(F==A){C.selected=true;return }}else{C.selected=A.include(F)}}}},selectOne:function(B){var A=B.selectedIndex;return A>=0?this.optionValue(B.options[A]):null},selectMany:function(D){var A,E=D.length;if(!E){return null}for(var C=0,A=[];C<E;C++){var B=D.options[C];if(B.selected){A.push(this.optionValue(B))}}return A},optionValue:function(A){return Element.extend(A).hasAttribute("value")?A.value:A.text}};if(!window.Event){var Event={}}Object.extend(Event,{KEY_RETURN:13,cache:{}});Object.extend(Event,(function(){var B=Event.cache;function C(J){if(J._prototypeEventID){return J._prototypeEventID[0]}arguments.callee.id=arguments.callee.id||1;return J._prototypeEventID=[++arguments.callee.id]}function G(J){if(J&&J.include(":")){return"dataavailable"}return J}function A(J){return B[J]=B[J]||{}}function F(L,J){var K=A(L);return K[J]=K[J]||[]}function H(K,J,L){var O=C(K);var N=F(O,J);if(N.pluck("handler").include(L)){return false}var M=function(P){if(!Event||!Event.extend||(P.eventName&&P.eventName!=J)){return false}Event.extend(P);L.call(K,P)};M.handler=L;N.push(M);return M}function I(M,J,K){var L=F(M,J);return L.find(function(N){return N.handler==K})}function D(M,J,K){var L=A(M);if(!L[J]){return false}L[J]=L[J].without(I(M,J,K))}function E(){for(var K in B){for(var J in B[K]){B[K][J]=null}}}if(window.attachEvent){window.attachEvent("onunload",E)}return{observe:function(L,J,M){L=$(L);var K=G(J);var N=H(L,J,M);if(!N){return L}if(L.addEventListener){L.addEventListener(K,N,false)}else{L.attachEvent("on"+K,N)}return L},stopObserving:function(L,J,M){L=$(L);var O=C(L),K=G(J);if(!M&&J){F(O,J).each(function(P){L.stopObserving(J,P.handler)});return L}else{if(!J){Object.keys(A(O)).each(function(P){L.stopObserving(P)});return L}}var N=I(O,J,M);if(!N){return L}if(L.removeEventListener){L.removeEventListener(K,N,false)}else{L.detachEvent("on"+K,N)}D(O,J,M);return L}}})());Event.Methods=(function(){return{element:function(B){var A=$(Event.extend(B).target);return A.nodeType==3?A.parentNode:A},pointer:function(A){return{x:A.pageX||(A.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)),y:A.pageY||(A.clientY+(document.documentElement.scrollTop||document.body.scrollTop))}},pointerX:function(A){return Event.pointer(A).x},pointerY:function(A){return Event.pointer(A).y}}})();Event.extend=(function(){var A=Object.keys(Event.Methods).inject({},function(B,C){B[C]=Event.Methods[C].methodize();return B});if(Prototype.Browser.IE){return function(B){if(!B){return false}if(B._extendedByPrototype){return B}B._extendedByPrototype=Prototype.emptyFunction;var C=Event.pointer(B);Object.extend(B,{target:B.srcElement,pageX:C.x,pageY:C.y});return Object.extend(B,A)}}else{Event.prototype=Event.prototype||document.createEvent("HTMLEvents").__proto__;Object.extend(Event.prototype,A);return Prototype.K}})();Object.extend(Event,Event.Methods);Object.extend(String.prototype,{len:function(){return this.replace(/[^\x00-\xff]/g,"aa").length},sub:function(D,A){var C="";for(var B=0;B<this.length;B++){C+=this.charAt(B).match("[^\x00-\xff]")?this.charAt(B)+"<":this.charAt(B)}return C.substring(D,A).replace(/</g,"")},truncate:function(B,A){B=B||30;A=Object.isUndefined(A)?"...":A;return this.len()>B?this.sub(0,B-A.length)+A:String(this)},trim:function(){return this.replace(/\s+$/,"")},strip:function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")},toArray:function(){return this.split("")},include:function(A){return this.indexOf(A)>-1},escapeHTML:function(){return this.replace(/\</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"").replace(/'/g,"").replace(/(^\s*)|(\s*$)/g,"")},unescapeHTML:function(){return this.replace(/<br>/g,"\n")},isEmail:function(){return/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(this)},isPass:function(){return/^\w+$/.test(this)&&this.length>5&&this.length<17},isMobile:function(){return/^((\(\d{3}\))|(\d{3}\-))?1(3|5|8)\d{9}$/.test(this)},isPhone:function(){return/^((\(\d{3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}$/.test(this)},isZipcode:function(){return/^[0-9]\d{5}$/.test(this)},isNumber:function(){return/(^[0-9]+$)|(^[0-9]+)(.[0-9]+$)/.test(this)},empty:function(){return this.strip()==""},betweenTime:function(G){var C=this;var F=G.substring(5,G.lastIndexOf("-"));var B=G.substring(G.length,G.lastIndexOf("-")+1);var I=G.substring(0,G.indexOf("-"));var H=C.substring(5,C.lastIndexOf("-"));var D=C.substring(C.length,C.lastIndexOf("-")+1);var E=C.substring(0,C.indexOf("-"));var A=((Date.parse(F+"/"+B+"/"+I)-Date.parse(H+"/"+D+"/"+E))/86400000);return A},isMoney:function(D){var A=false;if(this.isNumber()){var B=this.indexOf(".")+1;var C=this.substring(B);if(C.length==D){A=true}}return A}});Object.extend(Form,Form.Methods);Object.extend(Form.Element,Form.Element.Methods);Object.extend(Element.Methods.ByTag,{FORM:Object.clone(Form.Methods),INPUT:Object.clone(Form.Element.Methods),SELECT:Object.clone(Form.Element.Methods),TEXTAREA:Object.clone(Form.Element.Methods)});var HashMap=Class.create({initialize:function(){this.elements=new Array()},size:function(){return this.elements.length},put:function(B,A){this.elements.push({key:B,value:A})},remove:function(B){var D=false;try{for(var A=0;A<this.elements.length;A++){if(this.elements[A].key==B){this.elements.splice(A,1);return true}}}catch(C){D=false}return D},containsKey:function(B){var D=false;try{for(var A=0;A<this.elements.length;A++){if(this.elements[A].key==B){D=true}}}catch(C){D=false}return D},get:function(A){try{for(i=0;i<this.elements.length;i++){if(this.elements[i].key==A){return this.elements[i].value}}}catch(B){return null}}});var Validate=Class.create({initialize:function(A,B){this.form=$(A);this.param=B?B:new HashMap()},getElements:function(){var A=[];var D=this.form.getElements();for(var C=0;C<D.length;C++){var B=$(D[C]);if(B.get("validate")&&B.get("validate")=="true"){A.push(B)}}return A},validate:function(){var E=this.getElements();var A=true;for(var C=0;C<E.length;C++){var B=E[C];var D=B.get("dataType");switch(D){case"number":A=this.isNumber(B);break;case"password":A=this.isPassword(B);break;case"email":A=this.isEmail(B);break;case"mobile":A=this.isMobile(B);break;case"phone":A=this.isPhone(B);break;case"notempty":A=this.isEmpty(B);break;case"betweentime":A=this.betweenTime(B);break;case"money":A=this.isMoney(B);break;case"select":A=this.isSelected(B);break;case"zipcode":A=this.isZipcode(B);break;default:break}if(!A){break}}return A},getLength:function(B){var A=[];var C=B.get("dataLength").split(",");A.min=parseInt(C[0]);A.max=parseInt(C[1]);return A},validateLength:function(C){if(!C.get("dataLength")){return true}var E=C.getValue();var D=this.getLength(C);var B=D.min;var A=D.max;if(!(E.len()>=B&&E.len()<=A)){return false}return true},excuteCallback:function(A){var B=this.param.get(A);if(B!=null){if(Object.isFunction(B)){B()}else{if(Object.isString(B)){alert(B)}}return true}return false},isSelected:function(A){A=$(A);var B=A.value;if(B=="0"){alert(A.get("msg"));return false}return true},isNumber:function(A){A=$(A);var B=A.getValue();if(!B.isNumber()||B.indexOf(".")!=-1){alert(A.get("msg"));return false}return true},isEmpty:function(A){A=$(A);var B=A.value;if(!B.empty()&&B==A.get("msg")){alert(A.get("msg"));return false}else{if(B.empty()||(!this.validateLength(A))){alert(A.get("msg"));return false}}return true},isPassword:function(element){element=$(element);var value=element.getValue();if(element.get("confirm")){var pass=eval("document."+this.form.get("name")+"."+element.get("confirm")+".value");if(value!=pass){alert(element.get("msg"));return false}}if(!(value.isPass()&&this.validateLength(element))){alert(element.get("msg"));return false}return true},isEmail:function(A){A=$(A);var B=A.getValue();if(!(B.isEmail()&&this.validateLength(A))){if(!this.excuteCallback("email")){alert(A.get("msg"))}return false}return true},isZipcode:function(A){A=$(A);var B=A.getValue();if(!B.isZipcode()){alert(A.get("msg"));return false}return true},isMobile:function(A){A=$(A);var B=A.getValue();if(!(B.isMobile()&&this.validateLength(A))){alert(A.get("msg"));return false}return true},isPhone:function(A){A=$(A);var B=A.getValue();if(!(B.isPhone()&&this.validateLength(A))){alert(A.get("msg"));return false}return true},betweenTime:function(element){element=$(element);var DateTwo=element.getValue();var DateOne=eval("document."+this.form.get("name")+"."+element.get("confirm")+".value");if(DateTwo.empty()||DateTwo.betweenTime(DateOne)>0){alert(element.get("msg"));return false}return true},isMoney:function(A){A=$(A);var B=A.getValue();var C=parseInt(A.get("dataLength"));if(!B.isMoney(C)){alert(A.get("msg"));return false}return true}});var bubble=function(B){var A=window.event||B;A.cancelBubble=true;return A};var _noselect=function(A){document.body.style.MozUserSelect=(A==1)?"none":"";document.onselectstart=function(){return(A==1)?false:true}};Object.extend(Element.Methods,{get:function(A,B){return A.getAttribute(B)},set:function(B,A,C){B.setAttribute(A,C)},screenCenter:function(B,D){var E=B.offsetHeight;var A=B.offsetWidth;B.hide();var C=B.style;C.position="absolute";C.top=((document.body.clientHeight-E)/2+document.body.scrollTop)+"px";C.left=(document.body.clientWidth-A)/2+document.body.scrollLeft+"px";C.zIndex=1001;B.show()},bottomFrm:function(B){var A=$(document.createElement("iframe"));var C=A.style;C.position="absolute";C.zIndex=1000;C.top=B.style.top;C.left=B.style.left;C.width=B.offsetWidth+"px";C.height=B.offsetHeight+"px";C.background="#FFF";C.opacity=0;C.filter="alpha(opacity=0)";document.body.appendChild(A);return A},frameDialog:function(B){var A=$(document.createElement("iframe"));A.style.position="absolute";A.style.zIndex=1000;A.style.left="0px";A.style.top=document.body.scrollTop;A.style.width="99%";A.style.height="99%";A.style.background="#FFF";A.style.opacity=0;A.style.filter="alpha(opacity=0)";document.body.appendChild(A);return A},gradient:function(D,C){D=$(D);var A=function(E){D.style.filter="alpha(opacity="+E+")";D.style.opacity=E/100;if(C&&E==10){D.hide()}};if(C){for(var B=100;B>=0;B--){window.setTimeout(A.bind(this,B),(B/100)*5)}}else{D.style.filter="alpha(opacity="+1+")";D.style.opacity=0.1;D.show();for(var B=1;B<=100;B++){window.setTimeout(A.bind(this,B),B*5)}}}});function copyToClipBoard(H){var F="";if(!H){var B=document.title;F+=B;F+="\n";F+=this.location.href}else{F=H}if(window.clipboardData){window.clipboardData.setData("Text",F)}else{if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(G){return }var C=Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);if(!C){return }var A=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(!A){return }A.addDataFlavor("text/unicode");var E=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);E.data=F;A.setTransferData("text/unicode",E,F.length*2);var D=Components.interfaces.nsIClipboard;C.setData(A,null,D.kGlobalClipboard)}}alert("")}var Cook=new Object();Cook={set:function(B,D,A){if(A){var C=new Date();C.setTime(C.getTime()+(A*1000))}document.cookie=B+"="+escape(D)+(A?";expires="+C.toGMTString():"")+";path=/"},get:function(A){var B=document.cookie;var D=B.indexOf(A+"=");if(D!=-1){D+=A.length.succ();var C=B.indexOf(";",D);if(C==-1){C=B.length}return unescape(B.substring(D,C))}return""}};var clearmdown=function(){Try.these(function(){document.onmousedown()},function(){return })};var clearkdown=function(){Try.these(function(){document.onkeydown()},function(){return })};var _cansel=function(A){A.onselectstart=function(){window.event.cancelBubble=true};A.onmouseover=function(){_noselect(2)};A.onmouseout=function(){_noselect(1)}};var checkboxGroup={select:function(A){this.selectler("select",true,A)},unselect:function(A){this.selectler("select",false,A)},getSelectItem:function(A){return this.selectler("get",false,A)},selectler:function(C,D,F){var A=Element.getCheckBoxGroup(F);var E=new Array();for(var B=0;B<A.length;B++){if(C=="select"){A[B].checked=D}else{if(C=="get"&&A[B].checked){E.push(A[B])}}}return E}};function radioGroup(D){var C=Element.getCheckBoxGroup(D);var B=null;for(var A=0;A<C.length;A++){if(C[A].checked){B=C[A];break}}return $(B)}function selectGroup(C){C=$(C);var E=C.value;var D=null;var A=C.getElementsByTagName("option");for(var B=0;B<A.length;B++){if(A[B].value==E){D=$(A[B]);break}}return D}var Request=Class.create({initialize:function(B,A){this.options={method:"post",asynchronous:true,contentType:"application/x-www-form-urlencoded",encoding:"UTF-8",parameters:"",callback:Prototype.emptyFunction};this.url=B;Object.extend(this.options,A||{})},XMLHttpRequest:function(){var D;if(window.ActiveXObject){var A=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(var C=0;C<A.length;C++){try{D=new ActiveXObject(A[C]);break}catch(B){}}}else{if(window.XMLHttpRequest){D=new XMLHttpRequest()}}return D},send:function(){var B=this.XMLHttpRequest();this.method=this.options.method;var C=this.options.parameters;var A=false;if(this.method.toLowerCase()=="get"){this.url=this.url+"?"+C}else{A=true}if(B){var D=this.options.callback.bind(this);B.open(this.method.toUpperCase(),this.url,this.options.asynchronous);B.setRequestHeader("Content-Type",this.options.contentType);B.onreadystatechange=function(){if(B.readyState==4&&B.status==200){D(B.responseText||B.responseXML)}};B.send(A?C:null)}}});function evalJson(json){try{return eval("("+json+")")}catch(e){}}function evalJs(js){try{return eval(js||"")}catch(e){}}function filter(D){var C=[];C[0]="他妈的";C[1]="富摩";C[2]="管理员";C[3]="8mmo.com";var A=false;for(var B=0;B<C.length;B++){if(D.indexOf(C[B])!=-1){A=true;break}}return A}function clearContent(A,C){A=$(A);var B=A.value;if(B==C){A.value=""}};
