if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={}}YAHOO.namespace=function(){var F=arguments,G=null,I,J,H;for(I=0;I0)?D.dump(A[Q],N-1):B)}else{C.push(A[Q])}C.push(M)}if(C.length>1){C.pop()}C.push("]")}else{C.push("{");for(Q in A){if(D.hasOwnProperty(A,Q)){C.push(Q+P);if(D.isObject(A[Q])){C.push((N>0)?D.dump(A[Q],N-1):B)}else{C.push(A[Q])}C.push(M)}}if(C.length>1){C.pop()}C.push("}")}return C.join("")},substitute:function(B,f,Y){var b,c,d,V,U,C,W=[],e,a="dump",X=" ",A="{",T="}";for(;;){b=B.lastIndexOf(A);if(b<0){break}c=B.indexOf(T,b);if(b+1>=c){break}e=B.substring(b+1,c);V=e;C=null;d=V.indexOf(X);if(d>-1){C=V.substring(d+1);V=V.substring(0,d)}U=f[V];if(Y){U=Y(V,U,C)}if(D.isObject(U)){if(D.isArray(U)){U=D.dump(U,parseInt(C,10))}else{C=C||"";var Z=C.indexOf(a);if(Z>-1){C=C.substring(4)}if(U.toString===Object.prototype.toString||Z>-1){U=D.dump(U,parseInt(C,10))}else{U=U.toString()}}}else{if(!D.isString(U)&&!D.isNumber(U)){U="~-"+W.length+"-~";W[W.length]=e}}B=B.substring(0,b)+U+B.substring(c+1)}for(b=W.length-1;b>=0;b=b-1){B=B.replace(new RegExp("~-"+b+"-~"),"{"+W[b]+"}","g")}return B},trim:function(B){try{return B.replace(/^\s+|\s+$/g,"")}catch(A){return B}},merge:function(){var A={},C=arguments;for(var B=0,H=C.length;B=420){D.addEventListener("load",function(){A(E,G)})}else{var H=X[E];if(H.varName){var F=YAHOO.util.Get.POLL_FREQ;H.maxattempts=YAHOO.util.Get.TIMEOUT/F;H.attempts=0;H._cache=H.varName[0].split(".");H.timer=S.later(F,H,function(K){var N=this._cache,O=N.length,P=this.win,M;for(M=0;Mthis.maxattempts){var L="Over retry limit, giving up";H.timer.cancel();U(E,L)}else{}return}}H.timer.cancel();A(E,G)},null,true)}else{S.later(YAHOO.util.Get.POLL_FREQ,null,A,[E,G])}}}}else{D.onload=function(){A(E,G)}}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(A){S.later(0,null,h,A)},abort:function(B){var A=(S.isString(B))?B:B.tId;var C=X[A];if(C){C.aborted=true}},script:function(B,A){return b("script",B,A)},css:function(B,A){return b("css",B,A)}}}();YAHOO.register("get",YAHOO.util.Get,{version:"2.5.2",build:"1076"});(function(){var Y=YAHOO,util=Y.util,lang=Y.lang,env=Y.env,PROV="_provides",SUPER="_supersedes",REQ="expanded",AFTER="_after";var YUI={dupsAllowed:{yahoo:true,get:true},info:{base:"http://yui.yahooapis.com/2.5.2/build/",skin:{defaultSkin:"sam",base:"aaaaa/",path:"style.css",after:["reset","fonts","grids","base"],rollup:3},dupsAllowed:["yahoo","get"],moduleInfo:{animation:{type:"js",path:"animation/animation-min.js",requires:["dom","event"]},autocomplete:{type:"js",path:"autocomplete/autocomplete-min.js",requires:["dom","event"],optional:["connection","animation"],skinnable:true},base:{type:"css",path:"base/base-min.css",after:["reset","fonts","grids"]},button:{type:"js",path:"button/button-min.js",requires:["element"],optional:["menu"],skinnable:true},calendar:{type:"js",path:"calendar/calendar-min.js",requires:["event","dom"],skinnable:true},charts:{type:"js",path:"charts/charts-experimental-min.js",requires:["element","json","datasource"]},colorpicker:{type:"js",path:"colorpicker/colorpicker-min.js",requires:["slider","element"],optional:["animation"],skinnable:true},connection:{type:"js",path:"connection/connection-min.js",requires:["event"]},container:{type:"js",path:"container/container-min.js",requires:["dom","event"],optional:["dragdrop","animation","connection"],supersedes:["containercore"],skinnable:true},containercore:{type:"js",path:"container/container_core-min.js",requires:["dom","event"],pkg:"container"},cookie:{type:"js",path:"cookie/cookie-beta-min.js",requires:["yahoo"]},datasource:{type:"js",path:"datasource/datasource-beta-min.js",requires:["event"],optional:["connection"]},datatable:{type:"js",path:"datatable/datatable-beta-min.js",requires:["element","datasource"],optional:["calendar","dragdrop"],skinnable:true},dom:{type:"js",path:"dom/dom-min.js",requires:["yahoo"]},dragdrop:{type:"js",path:"dragdrop/dragdrop-min.js",requires:["dom","event"]},editor:{type:"js",path:"editor/editor-beta-min.js",requires:["menu","element","button"],optional:["animation","dragdrop"],supersedes:["simpleeditor"],skinnable:true},element:{type:"js",path:"element/element-beta-min.js",requires:["dom","event"]},event:{type:"js",path:"event/event-min.js",requires:["yahoo"]},fonts:{type:"css",path:"fonts/fonts-min.css"},get:{type:"js",path:"get/get-min.js",requires:["yahoo"]},grids:{type:"css",path:"grids/grids-min.css",requires:["fonts"],optional:["reset"]},history:{type:"js",path:"history/history-min.js",requires:["event"]},imagecropper:{type:"js",path:"imagecropper/imagecropper-beta-min.js",requires:["dom","event","dragdrop","element","resize"],skinnable:true},imageloader:{type:"js",path:"imageloader/imageloader-min.js",requires:["event","dom"]},json:{type:"js",path:"json/json-min.js",requires:["yahoo"]},layout:{type:"js",path:"layout/layout-beta-min.js",requires:["dom","event","element"],optional:["animation","dragdrop","resize","selector"],skinnable:true},logger:{type:"js",path:"logger/logger-min.js",requires:["event","dom"],optional:["dragdrop"],skinnable:true},menu:{type:"js",path:"menu/menu-min.js",requires:["containercore"],skinnable:true},profiler:{type:"js",path:"profiler/profiler-beta-min.js",requires:["yahoo"]},profilerviewer:{type:"js",path:"profilerviewer/profilerviewer-beta-min.js",requires:["profiler","yuiloader","element"],skinnable:true},reset:{type:"css",path:"reset/reset-min.css"},"reset-fonts-grids":{type:"css",path:"reset-fonts-grids/reset-fonts-grids.css",supersedes:["reset","fonts","grids","reset-fonts"],rollup:4},"reset-fonts":{type:"css",path:"reset-fonts/reset-fonts.css",supersedes:["reset","fonts"],rollup:2},resize:{type:"js",path:"resize/resize-beta-min.js",requires:["dom","event","dragdrop","element"],optional:["animation"],skinnable:true},selector:{type:"js",path:"selector/selector-beta-min.js",requires:["yahoo","dom"]},simpleeditor:{type:"js",path:"editor/simpleeditor-beta-min.js",requires:["element"],optional:["containercore","menu","button","animation","dragdrop"],skinnable:true,pkg:"editor"},slider:{type:"js",path:"slider/slider-min.js",requires:["dragdrop"],optional:["animation"]},tabview:{type:"js",path:"tabview/tabview-min.js",requires:["element"],optional:["connection"],skinnable:true},treeview:{type:"js",path:"treeview/treeview-min.js",requires:["event"],skinnable:true},uploader:{type:"js",path:"uploader/uploader-experimental.js",requires:["element"]},utilities:{type:"js",path:"utilities/utilities.js",supersedes:["yahoo","event","dragdrop","animation","dom","connection","element","yahoo-dom-event","get","yuiloader","yuiloader-dom-event"],rollup:8},yahoo:{type:"js",path:"yahoo/yahoo-min.js"},"yahoo-dom-event":{type:"js",path:"yahoo-dom-event/yahoo-dom-event.js",supersedes:["yahoo","event","dom"],rollup:3},yuiloader:{type:"js",path:"yuiloader/yuiloader-beta-min.js",supersedes:["yahoo","get"]},"yuiloader-dom-event":{type:"js",path:"yuiloader-dom-event/yuiloader-dom-event.js",supersedes:["yahoo","dom","event","get","yuiloader","yahoo-dom-event"],rollup:5},yuitest:{type:"js",path:"yuitest/yuitest-min.js",requires:["logger"],skinnable:true}}},ObjectUtil:{appendArray:function(o,a){if(a){for(var i=0;i=m.rollup);if(roll){break}}}}else{for(j=0;j=m.rollup);if(roll){break}}}}}if(roll){r[i]=true;rolled=true;this.getRequires(m)}}}if(!rolled){break}}},_reduce:function(){var i,j,s,m,r=this.required;for(i in r){if(i in this.loaded){delete r[i]}else{var skinDef=this.parseSkin(i);if(skinDef){if(!skinDef.module){var skin_pre=this.SKIN_PREFIX+skinDef.skin;for(j in r){m=this.moduleInfo[j];var ext=m&&m.ext;if(!ext&&j!==i&&j.indexOf(skin_pre)>-1){delete r[j]}}}}else{m=this.moduleInfo[i];s=m&&m.supersedes;if(s){for(j=0;j-1){return true}if(after&&YUI.ArrayUtil.indexOf(after,bb)>-1){return true}if(checkOptional&&optional&&YUI.ArrayUtil.indexOf(optional,bb)>-1){return true}var ss=info[bb]&&info[bb].supersedes;if(ss){for(ii=0;ii=this._stopCount){var v=this.varName||"YAHOO";var t="(function() {\n";var b="\nreturn "+v+";\n})();";var ref=eval(t+this._scriptText.join("\n")+b);this._pushEvents(ref);if(ref){this.onSuccess.call(this.scope,{reference:ref,data:this.data})}else{this.onFailure.call(this.scope,{msg:this.varName+" reference failure",data:this.data})}}},failure:function(o){this.onFailure.call(this.scope,{msg:"XHR failure",xhrResponse:o,data:this.data})},scope:this,argument:[i,url,s[i]]};this._xhr.push(util.Connect.asyncRequest("GET",url,xhrData))}},loadNext:function(mname){if(!this._loading){return}if(mname){if(mname!==this._loading){return}this.inserted[mname]=true;if(this.onProgress){this.onProgress.call(this.scope,{name:mname,data:this.data})}}var s=this.sorted,len=s.length,i,m;for(i=0;i=this.left&&B.right<=this.right&&B.top>=this.top&&B.bottom<=this.bottom)};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left))};YAHOO.util.Region.prototype.intersect=function(G){var I=Math.max(this.top,G.top);var H=Math.min(this.right,G.right);var F=Math.min(this.bottom,G.bottom);var J=Math.max(this.left,G.left);if(F>=I&&H>=J){return new YAHOO.util.Region(I,H,F,J)}else{return null}};YAHOO.util.Region.prototype.union=function(G){var I=Math.min(this.top,G.top);var H=Math.max(this.right,G.right);var F=Math.max(this.bottom,G.bottom);var J=Math.min(this.left,G.left);return new YAHOO.util.Region(I,H,F,J)};YAHOO.util.Region.prototype.toString=function(){return("Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}")};YAHOO.util.Region.getRegion=function(J){var H=YAHOO.util.Dom.getXY(J);var K=H[1];var I=H[0]+J.offsetWidth;var G=H[1]+J.offsetHeight;var L=H[0];return new YAHOO.util.Region(K,I,G,L)};YAHOO.util.Point=function(C,D){if(YAHOO.lang.isArray(C)){D=C[1];C=C[0]}this.x=this.right=this.left=this[0]=C;this.y=this.top=this.bottom=this[1]=D};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.5.2",build:"1076"});YAHOO.util.CustomEvent=function(H,J,I,F){this.type=H;this.scope=J||window;this.silent=I;this.signature=F||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var G="_YUICEOnSubscribe";if(H!==G){this.subscribeEvent=new YAHOO.util.CustomEvent(G,this,true)}this.lastError=null};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(F,E,D){if(!F){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(F,E,D)}this.subscribers.push(new YAHOO.util.Subscriber(F,E,D))},unsubscribe:function(J,H){if(!J){return this.unsubscribeAll()}var I=false;for(var L=0,G=this.subscribers.length;L0){P=V[0]}try{X=R.fn.call(S,P,R.obj)}catch(Y){this.lastError=Y;if(Q){throw Y}}}else{try{X=R.fn.call(S,this.type,V,R.obj)}catch(W){this.lastError=W;if(Q){throw W}}}if(false===X){if(!this.silent){}break}}}return(X!==false)},unsubscribeAll:function(){for(var B=this.subscribers.length-1;B>-1;B--){this._delete(B)}this.subscribers=[];return B},_delete:function(C){var D=this.subscribers[C];if(D){delete D.fn;delete D.obj}this.subscribers.splice(C,1)},toString:function(){return"CustomEvent: '"+this.type+"', scope: "+this.scope}};YAHOO.util.Subscriber=function(F,E,D){this.fn=F;this.obj=YAHOO.lang.isUndefined(E)?null:E;this.override=D};YAHOO.util.Subscriber.prototype.getScope=function(B){if(this.override){if(this.override===true){return this.obj}else{return this.override}}return B};YAHOO.util.Subscriber.prototype.contains=function(C,D){if(D){return(this.fn==C&&this.obj==D)}else{return(this.fn==C)}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", override: "+(this.override||"no")+" }"};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var Q=false;var P=[];var O=[];var R=[];var T=[];var L=0;var S=[];var M=[];var N=0;var K={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};return{POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){var B=this;var A=function(){B._tryPreloadAttach()};this._interval=setInterval(A,this.POLL_INTERVAL)}},onAvailable:function(D,G,C,E,F){var B=(YAHOO.lang.isString(D))?[D]:D;for(var A=0;A-1;H--){B=(this.removeListener(W[H],X,C)&&B)}return B}}if(!C||!C.call){return this.purgeElement(W,false,X)}if("unload"==X){for(H=O.length-1;H>-1;H--){A=O[H];if(A&&A[0]==W&&A[1]==X&&A[2]==C){O.splice(H,1);return true}}return false}var G=null;var F=arguments[3];if("undefined"===typeof F){F=this._getCacheIndex(W,X,C)}if(F>=0){G=P[F]}if(!W||!G){return false}if(this.useLegacyEvent(W,X)){var I=this.getLegacyIndex(W,X);var J=T[I];if(J){for(H=0,E=J.length;H0&&S.length>0)}var E=[];var C=function(J,I){var V=J;if(I.override){if(I.override===true){V=I.obj}else{V=I.override}}I.fn.call(V,I.obj)};var A,B,F,G,H=[];for(A=0,B=S.length;A-1;A--){F=S[A];if(!F||!F.id){S.splice(A,1)}}this.startInterval()}else{clearInterval(this._interval);this._interval=null}this.locked=false},purgeElement:function(F,E,C){var H=(YAHOO.lang.isString(F))?this.getEl(F):F;var D=this.getListeners(H,C),G,B;if(D){for(G=D.length-1;G>-1;G--){var A=D[G];this.removeListener(H,A.type,A.fn)}}if(E&&H&&H.childNodes){for(G=0,B=H.childNodes.length;G-1;G--){H=P[G];if(H){I.removeListener(H[I.EL],H[I.TYPE],H[I.FN],G)}}H=null}R=null;I._simpleRemove(window,"unload",I._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var B=document.documentElement,A=document.body;if(B&&(B.scrollTop||B.scrollLeft)){return[B.scrollTop,B.scrollLeft]}else{if(A){return[A.scrollTop,A.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(D,C,A,B){D.addEventListener(C,A,(B))}}else{if(window.attachEvent){return function(D,C,A,B){D.attachEvent("on"+C,A)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(D,C,A,B){D.removeEventListener(C,A,(B))}}else{if(window.detachEvent){return function(A,C,B){A.detachEvent("on"+C,B)}}else{return function(){}}}}()}}();(function(){var A=YAHOO.util.Event;A.on=A.addListener;if(A.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var B=document.createElement("p");A._dri=setInterval(function(){try{B.doScroll("left");clearInterval(A._dri);A._dri=null;A._ready();B=null}catch(C){}},A.POLL_INTERVAL)}else{if(A.webkit&&A.webkit<525){A._dri=setInterval(function(){var C=document.readyState;if("loaded"==C||"complete"==C){clearInterval(A._dri);A._dri=null;A._ready()}},A.POLL_INTERVAL)}else{A._simpleAdd(document,"DOMContentLoaded",A._ready)}}A._simpleAdd(window,"load",A._load);A._simpleAdd(window,"unload",A._unload);A._tryPreloadAttach()})()}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(G,K,H,I){this.__yui_events=this.__yui_events||{};var J=this.__yui_events[G];if(J){J.subscribe(K,H,I)}else{this.__yui_subscribers=this.__yui_subscribers||{};var L=this.__yui_subscribers;if(!L[G]){L[G]=[]}L[G].push({fn:K,obj:H,override:I})}},unsubscribe:function(M,K,I){this.__yui_events=this.__yui_events||{};var H=this.__yui_events;if(M){var J=H[M];if(J){return J.unsubscribe(K,I)}}else{var N=true;for(var L in H){if(YAHOO.lang.hasOwnProperty(H,L)){N=N&&H[L].unsubscribe(K,I)}}return N}return false},unsubscribeAll:function(B){return this.unsubscribe(B)},createEvent:function(P,J){this.__yui_events=this.__yui_events||{};var M=J||{};var N=this.__yui_events;if(N[P]){}else{var O=M.scope||this;var R=(M.silent);var L=new YAHOO.util.CustomEvent(P,O,R,YAHOO.util.CustomEvent.FLAT);N[P]=L;if(M.onSubscribeCallback){L.subscribeEvent.subscribe(M.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var Q=this.__yui_subscribers[P];if(Q){for(var K=0;K=200&&L<300||L===1223){M=this.createResponseObject(J,N);if(I&&I.success){if(!I.scope){I.success(M);YAHOO.log("Success callback. HTTP code is "+L,"info","Connection")}else{I.success.apply(I.scope,[M]);YAHOO.log("Success callback with scope. HTTP code is "+L,"info","Connection")}}this.successEvent.fire(M);if(J.successEvent){J.successEvent.fire(M)}}else{switch(L){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:M=this.createExceptionObject(J.tId,N,(H?H:false));if(I&&I.failure){if(!I.scope){I.failure(M);YAHOO.log("Failure callback. Exception detected. Status code is "+L,"warn","Connection")}else{I.failure.apply(I.scope,[M]);YAHOO.log("Failure callback with scope. Exception detected. Status code is "+L,"warn","Connection")}}break;default:M=this.createResponseObject(J,N);if(I&&I.failure){if(!I.scope){I.failure(M);YAHOO.log("Failure callback. HTTP status code is "+L,"warn","Connection")}else{I.failure.apply(I.scope,[M]);YAHOO.log("Failure callback with scope. HTTP status code is "+L,"warn","Connection")}}}this.failureEvent.fire(M);if(J.failureEvent){J.failureEvent.fire(M)}}this.releaseObject(J);M=null},createResponseObject:function(M,P){var J={};var N={};try{var K=M.conn.getAllResponseHeaders();var Q=K.split("\n");for(var R=0;R');if(typeof D=="boolean"){E.src="javascript:false"}}else{E=document.createElement("iframe");E.id=F;E.name=F}E.style.position="absolute";E.style.top="-1000px";E.style.left="-1000px";document.body.appendChild(E);YAHOO.log("File upload iframe created. Id is:"+F,"info","Connection")},appendPostData:function(F){var H=[];var J=F.split("&");for(var I=0;I0){for(var Z=0;Z0)?A:0}D.Dom.setStyle(this.getEl(),F,A+B)},getAttribute:function(L){var J=this.getEl();var B=D.Dom.getStyle(J,L);if(B!=="auto"&&!this.patterns.offsetUnit.test(B)){return parseFloat(B)}var K=this.patterns.offsetAttribute.exec(L)||[];var A=!!(K[3]);var I=!!(K[2]);if(I||(D.Dom.getStyle(J,"position")=="absolute"&&A)){B=J["offset"+K[0].charAt(0).toUpperCase()+K[0].substr(1)]}else{B=0}return B},getDefaultUnit:function(A){if(this.patterns.defaultUnit.test(A)){return"px"}return""},setRuntimeAttribute:function(M){var A;var L;var K=this.attributes;this.runtimeAttributes[M]={};var B=function(E){return(typeof E!=="undefined")};if(!B(K[M]["to"])&&!B(K[M]["by"])){return false}A=(B(K[M]["from"]))?K[M]["from"]:this.getAttribute(M);if(B(K[M]["to"])){L=K[M]["to"]}else{if(B(K[M]["by"])){if(A.constructor==Array){L=[];for(var J=0,N=A.length;J0&&isFinite(A)){if(E.currentFrame+A>=B){A=B-(C+1)}E.currentFrame+=A}}};YAHOO.util.Bezier=new function(){this.getPosition=function(I,J){var H=I.length;var K=[];for(var L=0;L0&&!(E[0]instanceof Array)){E=[E]}else{var F=[];for(D=0,B=E.length;D0){this.runtimeAttributes[A]=this.runtimeAttributes[A].concat(E)}this.runtimeAttributes[A][this.runtimeAttributes[A].length]=R}else{H.setRuntimeAttribute.call(this,A)}};var L=function(C,A){var B=I.Dom.getXY(this.getEl());C=[C[0]-B[0]+A[0],C[1]-B[1]+A[1]];return C};var J=function(A){return(typeof A!=="undefined")};I.Motion=G})();(function(){var F=function(C,D,B,A){if(C){F.superclass.constructor.call(this,C,D,B,A)}};F.NAME="Scroll";var H=YAHOO.util;YAHOO.extend(F,H.ColorAnim);var G=F.superclass;var E=F.prototype;E.doMethod=function(D,A,C){var B=null;if(D=="scroll"){B=[this.method(this.currentFrame,A[0],C[0]-A[0],this.totalFrames),this.method(this.currentFrame,A[1],C[1]-A[1],this.totalFrames)]}else{B=G.doMethod.call(this,D,A,C)}return B};E.getAttribute=function(C){var A=null;var B=this.getEl();if(C=="scroll"){A=[B.scrollLeft,B.scrollTop]}else{A=G.getAttribute.call(this,C)}return A};E.setAttribute=function(D,A,B){var C=this.getEl();if(D=="scroll"){C.scrollLeft=A[0];C.scrollTop=A[1]}else{G.setAttribute.call(this,D,A,B)}};H.Scroll=F})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.5.2",build:"1076"});YAHOO.namespace("lang");YAHOO.lang.JSON={_ESCAPES:/\\["\\\/bfnrtu]/g,_VALUES:/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,_BRACKETS:/(?:^|:|,)(?:\s*\[)+/g,_INVALID:/^[\],:{}\s]*$/,_SPECIAL_CHARS:/["\\\x00-\x1f\x7f-\x9f]/g,_PARSE_DATE:/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/,_CHARS:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},_applyFilter:function(E,F){var D=function(C,H){var B,A;if(H&&typeof H==="object"){for(B in H){if(YAHOO.lang.hasOwnProperty(H,B)){A=D(B,H[B]);if(A===undefined){delete H[B]}else{H[B]=A}}}}return F(C,H)};if(YAHOO.lang.isFunction(F)){D("",E)}return E},isValid:function(B){if(!YAHOO.lang.isString(B)){return false}return this._INVALID.test(B.replace(this._ESCAPES,"@").replace(this._VALUES,"]").replace(this._BRACKETS,""))},dateToString:function(D){function C(A){return A<10?"0"+A:A}return'"'+D.getUTCFullYear()+"-"+C(D.getUTCMonth()+1)+"-"+C(D.getUTCDate())+"T"+C(D.getUTCHours())+":"+C(D.getUTCMinutes())+":"+C(D.getUTCSeconds())+'Z"'},stringToDate:function(D){if(this._PARSE_DATE.test(D)){var C=new Date();C.setUTCFullYear(RegExp.$1,(RegExp.$2|0)-1,RegExp.$3);C.setUTCHours(RegExp.$4,RegExp.$5,RegExp.$6);return C}},parse:function(s,filter){if(this.isValid(s)){return this._applyFilter(eval("("+s+")"),filter)}throw new SyntaxError("parseJSON")},stringify:function(N,S,W){var X=YAHOO.lang,U=X.JSON,J=U._CHARS,P=this._SPECIAL_CHARS,O=[];var T=function(B){if(!J[B]){var A=B.charCodeAt();J[B]="\\u00"+Math.floor(A/16).toString(16)+(A%16).toString(16)}return J[B]};var Q=function(A){return'"'+A.replace(P,T)+'"'};var R=U.dateToString;var V=function(L,D,F){var A=typeof L,H,G,I,K,C,B,E;if(A==="string"){return Q(L)}if(A==="boolean"||L instanceof Boolean){return String(L)}if(A==="number"||L instanceof Number){return isFinite(L)?String(L):"null"}if(L instanceof Date){return R(L)}if(X.isArray(L)){for(H=O.length-1;H>=0;--H){if(O[H]===L){return"null"}}O[O.length]=L;E=[];if(F>0){for(H=L.length-1;H>=0;--H){E[H]=V(L[H],D,F-1)||"null"}}O.pop();return"["+E.join(",")+"]"}if(A==="object"){if(!L){return"null"}for(H=O.length-1;H>=0;--H){if(O[H]===L){return"null"}}O[O.length]=L;E=[];if(F>0){if(D){for(H=0,I=0,G=D.length;H=0?W:1/0;return V(N,S,W)}};YAHOO.register("json",YAHOO.lang.JSON,{version:"2.5.2",build:"1076"});(function(){var Y=function(){};var n=YAHOO.util;var X=/^(?:([-]?\d*)(n){1}|(odd|even)$)*([-+]?\d*)$/;Y.prototype={document:window.document,attrAliases:{"for":"htmlFor"},shorthand:{"\\#(-?[_a-z]+[-\\w]*)":"[id=$1]","\\.(-?[_a-z]+[-\\w]*)":"[class~=$1]"},operators:{"=":function(A,B){return A===B},"!=":function(A,B){return A!==B},"~=":function(A,B){var C=" ";return(C+A+C).indexOf((C+B+C))>-1},"|=":function(A,B){return l("^"+B+"[-]?").test(A)},"^=":function(A,B){return A.indexOf(B)===0},"$=":function(A,B){return A.lastIndexOf(B)===A.length-B.length},"*=":function(A,B){return A.indexOf(B)>-1},"":function(A,B){return A}},pseudos:{root:function(A){return A===A.ownerDocument.documentElement},"nth-child":function(A,B){return a(A,B)},"nth-last-child":function(A,B){return a(A,B,null,true)},"nth-of-type":function(A,B){return a(A,B,A.tagName)},"nth-last-of-type":function(A,B){return a(A,B,A.tagName,true)},"first-child":function(A){return m(A.parentNode)[0]===A},"last-child":function(B){var A=m(B.parentNode);return A[A.length-1]===B},"first-of-type":function(A,B){return m(A.parentNode,A.tagName.toLowerCase())[0]},"last-of-type":function(C,B){var A=m(C.parentNode,C.tagName.toLowerCase());return A[A.length-1]},"only-child":function(B){var A=m(B.parentNode);return A.length===1&&A[0]===B},"only-of-type":function(A){return m(A.parentNode,A.tagName.toLowerCase()).length===1},empty:function(A){return A.childNodes.length===0},not:function(A,B){return!Y.test(A,B)},contains:function(A,B){var C=A.innerText||A.textContent||"";return C.indexOf(B)>-1},checked:function(A){return A.checked===true}},test:function(B,D){B=Y.document.getElementById(B)||B;if(!B){return false}var E=D?D.split(","):[];if(E.length){for(var C=0,A=E.length;C1){var F;for(var L=0,K=B.length;L":function(B,A){return W(B.parentNode,null,A.previous)},"+":function(B,C){var A=B.previousSibling;while(A&&A.nodeType!==1){A=A.previousSibling}if(A&&W(A,null,C.previous)){return true}return false},"~":function(B,C){var A=B.previousSibling;while(A){if(A.nodeType===1&&W(A,null,C.previous)){return true}A=A.previousSibling}return false}};var m=function(){if(document.documentElement.children){return function(B,A){return(A)?B.children.tags(A):B.children||[]}}else{return function(C,F){if(C._children){return C._children}var D=[],B=C.childNodes;for(var E=0,A=B.length;E=0&&I[B]===C){return true}}}else{for(var B=I.length-J,A=I.length;B>=0;B-=H){if(B+~]|\s)\s*/};var p=function(B){var E={},A=[],G,C=false,F;B=r(B);do{C=false;for(var D in o){if(!YAHOO.lang.hasOwnProperty(o,D)){continue}if(D!="tag"&&D!="combinator"){E[D]=E[D]||[]}if(F=o[D].exec(B)){C=true;if(D!="tag"&&D!="combinator"){if(D==="attributes"&&F[1]==="id"){E.id=F[3]}E[D].push(F.slice(1))}else{E[D]=F[1]}B=B.replace(F[0],"");if(D==="combinator"||!B.length){E.attributes=i(E.attributes);E.pseudos=E.pseudos||[];E.tag=E.tag?E.tag.toUpperCase():"*";A.push(E);E={previous:E}}}}}while(C);return A};var i=function(D){var C=Y.attrAliases;D=D||[];for(var B=0,A=D.length;B=0;i--){if(this[i]===obj) return i;} return-1;};} if(!Array.prototype.forEach){Array.prototype.forEach=function(f,obj){var l=this.length;for(var i=0;i]+>/gi,'');return div.childNodes[0]?div.childNodes[0].nodeValue:'';},stripTags:function(str){return str.replace(/<\/?[^>]+>/gi,'');},toArray:function(list,start){var array=[];for(var i=start||0;i-1,_isIE=!_isOpera&&ua.indexOf('msie')!=-1,_isIE6=!_isOpera&&ua.indexOf('msie 6')!=-1,_isIE7=!_isOpera&&ua.indexOf('msie 7')!=-1;TB.bom={isOpera:_isOpera,isSafari:_isSafari,isGecko:_isGecko,isIE:_isIE,isIE6:_isIE6,isIE7:_isIE7,getCookie:function(name){var value=document.cookie.match('(?:^|;)\\s*'+name+'=([^;]*)');return value?unescape(value[1]):'';},setCookie:function(name,value,expire,domain,path){value=escape(value);value+=(domain)?'; domain='+domain:'';value+=(path)?"; path="+path:'';if(expire){var date=new Date();date.setTime(date.getTime()+(expire*86400000));value+="; expires="+date.toGMTString();} document.cookie=name+"="+value;},removeCookie:function(name){this.setCookie(name,'',-1);},pickDocumentDomain:function(){var host=arguments[1]||location.hostname;var da=host.split('.'),len=da.length;var deep=arguments[0]||(len<3?0:1);if(deep>=len||len-deep<2) deep=len-2;return da.slice(deep).join('.');},addBookmark:function(title,url){if(window.sidebar){window.sidebar.addPanel(title,url,"");}else if(document.external){window.external.AddFavorite(url,title);}else{}}}})();TB.dom={insertAfter:function(node,refNode){return $D.insertAfter(node,refNode);},getAncestorByTagName:function(el,tag){return $D.getAncestorByTagName(el,tag);},getAncestorByClassName:function(el,cls){return $D.getAncestorByClassName(el,cls);},getNextSibling:function(node){return $D.getNextSibling(node);},getPreviousSibling:function(node){return $D.getPreviousSibling(node);},getFieldLabelHtml:function(el,parent){var input=$(el),labels=(parent||input.parentNode).getElementsByTagName('label');for(var i=0;idh){t=dh-ph+st-2;if(t<0){t=0;}}} this.popup.style.position='absolute';this.popup.style.top=t+'px';this.popup.style.left=l+'px';if(this.config.effect){if(this.config.effect=='fade'){$D.setStyle(this.popup,'opacity',0);this.popup.style.display='block';var anim=new Y.Anim(this.popup,{opacity:{to:1}},0.4);anim.animate();}}else{this.popup.style.display='block';} onShowEvent.fire();},hide:function(){$D.setStyle(this.popup,'display','none');onHideEvent.fire();},delayHide:function(){var self=this;this._popupHideTimeId=setTimeout(function(){self.hide();},this.config.delay*1000);}});$D.setStyle(popup,'display','none');return handle;}} TB.widget.SimpleScroll=new function(){var Y=YAHOO.util;var defConfig={delay:2,speed:20,startDelay:2,direction:'vertical',disableAutoPlay:false,distance:'auto',scrollItemCount:1} this.decorate=function(container,config){container=$(container);config=TB.applyIf(config||{},defConfig);var step=2;if(config.speed<20){step=5;} if(config.lineHeight){config.distance=config.lineHeight;} var scrollTimeId=null,startTimeId=null,startDelayTimeId=null;var isHorizontal=(config.direction.toLowerCase()=='horizontal')||(config.direction.toLowerCase()=='h');var handle={};handle._distance=0;handle.scrollable=true;handle.distance=config.distance;handle._distance=0;handle.suspend=false;handle.paused=false;var _onScrollEvent=new Y.CustomEvent("_onScroll",handle,false,Y.CustomEvent.FLAT);_onScrollEvent.subscribe(function(){var curLi=container.getElementsByTagName('li')[0];if(!curLi){this.scrollable=false;return;} this.distance=(config.distance=='auto')?curLi[isHorizontal?'offsetWidth':'offsetHeight']:config.distance;with(container){if(isHorizontal) this.scrollable=(scrollWidth-scrollLeft-offsetWidth)>=this.distance;else this.scrollable=(scrollHeight-scrollTop-offsetHeight)>=this.distance;}});var onScrollEvent=new Y.CustomEvent("onScroll",handle,false,Y.CustomEvent.FLAT);if(config.onScroll){onScrollEvent.subscribe(config.onScroll);}else{onScrollEvent.subscribe(function(){for(var i=0;i0) onScrollEvent.unsubscribeAll();onScrollEvent.subscribe(func);},pause:function(){this.paused=true;clearTimeout(startTimeId);startTimeId=null;},play:function(){this.paused=false;if(startDelayTimeId){clearTimeout(startDelayTimeId);} if(!startTimeId){startTimeId=setTimeout(start,config.delay*1000);}}});handle.onScroll=handle.subscribeOnScroll;_onScrollEvent.fire();if(!config.disableAutoPlay){startDelayTimeId=setTimeout(function(){handle.play();},config.startDelay*1000);} return handle;}};(function(){var Y=YAHOO.util;TB.widget.Slide=function(container,config){this.init(container,config);} TB.widget.Slide.defConfig={slidesClass:'Slides',triggersClass:'SlideTriggers',currentClass:'Current',eventType:'click',autoPlayTimeout:5,disableAutoPlay:false};TB.widget.Slide.prototype={init:function(container,config){this.container=$(container);this.config=TB.applyIf(config||{},TB.widget.Slide.defConfig);try{this.slidesUL=$D.getElementsByClassName(this.config.slidesClass,'ul',this.container)[0];if(!this.slidesUL){this.slidesUL=$D.getFirstChild(this.container,function(node){return node.tagName.toLowerCase==='ul';});} this.slides=$D.getChildren(this.slidesUL);if(this.slides.length==0){throw new Error();}}catch(e){throw new Error("can't find slides!");} this.delayTimeId=null;this.autoPlayTimeId=null;this.curSlide=-1;this.sliding=false;this.pause=false;this.onSlide=new Y.CustomEvent("onSlide",this,false,Y.CustomEvent.FLAT);if(YAHOO.lang.isFunction(this.config.onSlide)){this.onSlide.subscribe(this.config.onSlide,this,true);} this.beforeSlide=new Y.CustomEvent("beforeSlide",this,false,Y.CustomEvent.FLAT);if(YAHOO.lang.isFunction(this.config.beforeSlide)){this.beforeSlide.subscribe(this.config.beforeSlide,this,true);} $D.addClass(this.container,'tb-slide');$D.addClass(this.slidesUL,'tb-slide-list');$D.setStyle(this.slidesUL,'height',(this.config.slideHeight||this.container.offsetHeight)+'px');this.initSlides();this.initTriggers();if(this.slides.length>0) this.play(1);if(!this.config.disableAutoPlay){this.autoPlay();} if(YAHOO.lang.isFunction(this.config.onInit)){this.config.onInit.call(this);}},initTriggers:function(){var ul=document.createElement('ul');this.container.appendChild(ul);for(var i=0;i=0?this.curSlide:0;if(flag&&this.autoPlayTimeId) clearInterval(this.autoPlayTimeId);var triggersLis=this.triggersUL.getElementsByTagName('li');triggersLis[curSlide].className='';triggersLis[n].className=this.config.currentClass;this.beforeSlide.fire(n);this.slide(n);this.curSlide=n;if(flag&&!this.config.disableAutoPlay) this.autoPlay();},slide:function(n){var curSlide=this.curSlide>=0?this.curSlide:0;this.sliding=true;$D.setStyle(this.slides[curSlide],'display','none');$D.setStyle(this.slides[n],'display','block');this.sliding=false;this.onSlide.fire(n);},autoPlay:function(){var self=this;var callback=function(){if(!self.pause&&!self.sliding){var n=(self.curSlide+1)%self.slides.length+1;self.play(n,false);}} this.autoPlayTimeId=setInterval(callback,this.config.autoPlayTimeout*1000);}} TB.widget.ScrollSlide=function(container,config){this.init(container,config);} YAHOO.extend(TB.widget.ScrollSlide,TB.widget.Slide,{initSlides:function(){TB.widget.ScrollSlide.superclass.initSlides.call(this);$D.setStyle(this.slides,'display','');},slide:function(n){var curSlide=this.curSlide>=0?this.curSlide:0;var args={scroll:{by:[0,this.slidesUL.offsetHeight*(n-curSlide)]}};var anim=new Y.Scroll(this.slidesUL,args,.5,Y.Easing.easeOutStrong);anim.onComplete.subscribe(function(){this.sliding=false;this.onSlide.fire(n);},this,true);anim.animate();this.sliding=true;}});TB.widget.FadeSlide=function(container,config){this.init(container,config);} YAHOO.extend(TB.widget.FadeSlide,TB.widget.Slide,{initSlides:function(){TB.widget.FadeSlide.superclass.initSlides.call(this);$D.setStyle(this.slides,'position','absolute');$D.setStyle(this.slides,'top',this.config.slideOffsetY||0);$D.setStyle(this.slides,'left',this.config.slideOffsetX||0);$D.setStyle(this.slides,'z-index',1);},slide:function(n){if(this.curSlide==-1){$D.setStyle(this.slides[n],'display','block');this.onSlide.fire(n);}else{var curSlideLi=this.slides[this.curSlide];$D.setStyle(curSlideLi,'display','block');$D.setStyle(curSlideLi,'z-index',10);var fade=new Y.Anim(curSlideLi,{opacity:{to:0}},.5,Y.Easing.easeNone);fade.onComplete.subscribe(function(){$D.setStyle(curSlideLi,'z-index',1);$D.setStyle(curSlideLi,'display','none');$D.setStyle(curSlideLi,'opacity',1);this.sliding=false;this.onSlide.fire(n);},this,true);$D.setStyle(this.slides[n],'display','block');fade.animate();this.sliding=true;}}});})();TB.widget.SimpleSlide=new function(){this.decorate=function(container,config){if(!container)return;config=config||{};if(config.effect=='scroll'){if(YAHOO.env.ua.gecko){if(YAHOO.util.Dom.get(container).getElementsByTagName('iframe').length>0){return new TB.widget.Slide(container,config);}} return new TB.widget.ScrollSlide(container,config);} else if(config.effect=='fade'){return new TB.widget.FadeSlide(container,config);} else{return new TB.widget.Slide(container,config);}}} TB.widget.SimpleTab=new function(){var Y=YAHOO.util;var defConfig={eventType:'click',currentClass:'Current',tabClass:'',autoSwitchToFirst:true,stopEvent:true,delay:0.1};var getImmediateDescendants=function(p){var ret=[];if(!p)return ret;for(var i=0,c=p.childNodes;i0;i--){ratingContainer.removeChild(lis[i]);} onRateEvent.fire(ret);} handle.rate=function(score){var indicator=TB.util.Indicator.attach(ratingContainer,{message:$M('pleaseWait')});indicator.show();ratingContainer.style.display='none';var postData=config.scoreParamName+'='+score;if(config.rateParams) postData+='&'+config.rateParams;YAHOO.util.Connect.asyncRequest('POST',config.rateUrl,{success:function(req){indicator.hide();ratingContainer.style.display='';var ret=eval('('+req.responseText+')');if(ret.Error){alert(ret.Error.Message);return;}else{handle.update(ret);}},failure:function(req){indicator.hide();ratingContainer.style.display='';TB.trace($M('ajaxError'));}},postData);} handle.onRate=function(callback){if(YAHOO.lang.isFunction(callback)) onRateEvent.subscribe(callback);} var triggers=ratingContainer.getElementsByTagName('a');for(var i=0;iDAY){if(config.formatStyle=='short'){pattern='{d}'+$M('day')+'{hh}'+$M('hour');nu=Math.floor(lt%DAY%HOUR)||HOUR;}} else if(lt>HOUR){if(config.formatStyle=='short'){pattern='{hh}'+$M('hour')+'{mm}'+$M('minute');nu=Math.floor(lt%HOUR%MINUTE)||MINUTE;}else if(config.formatStyle=='long'&&config.hideZero){pattern='{hh}'+$M('hour')+'{mm}'+$M('minute')+'{ss}'+$M('second');}} else if(lt>0){if(config.formatStyle=='short'||(config.formatStyle=='long'&&config.hideZero)){pattern='{mm}'+$M('minute')+'{ss}'+$M('second');}} container.innerHTML=TB.common.formatMessage(pattern,values,genTimeFilter(lt));if(config.updatable&&nu>0) setTimeout(updateTimer,nu*1000);} handle.init=function(){this.update();onStartEvent.fire();} handle.init();return handle;}} TB.util.Indicator=new function(){var defConfig={message:'loading',useShim:false,useIFrame:false,centerIndicator:true} var prepareShim=function(target,useIFrame){var shim=document.createElement('div');shim.className='tb-indic-shim';$D.setStyle(shim,'display','none');target.parentNode.insertBefore(shim,target);if(useIFrame){var shimFrame=document.createElement('iframe');shimFrame.setAttribute("frameBorder",0);shimFrame.className='tb-indic-shim-iframe';target.parentNode.insertBefore(shimFrame,target);} return shim;} this.attach=function(target,config){target=$(target);config=TB.applyIf(config||{},defConfig);var indicator=document.createElement('div');indicator.className='tb-indic';$D.setStyle(indicator,'display','none');$D.setStyle(indicator,'position','static');indicator.innerHTML=''+$M(config.message)+'';if(config.useShim){var shim=prepareShim(target,config.useIFrame);shim.appendChild(indicator);}else{target.parentNode.insertBefore(indicator,target);} var handle={};handle.show=function(xy){if(config.useShim){var region=$D.getRegion(target);var shim=indicator.parentNode;$D.setStyle(shim,'display','block');$D.setXY(shim,[region[0],region[1]]);$D.setStyle(shim,'width',(region.right-region.left)+'px');$D.setStyle(shim,'height',(region.bottom-region.top)+'px');if(config.useIFrame){var shimFrame=shim.nextSibling;$D.setStyle(shimFrame,'width',(region.right-region.left)+'px');$D.setStyle(shimFrame,'height',(region.bottom-region.top)+'px');$D.setStyle(shimFrame,'display','block');} $D.setStyle(indicator,'display','block');$D.setStyle(indicator,'position','absolute');if(config.centerIndicator){$D.setStyle(indicator,'top','50%');$D.setStyle(indicator,'left','50%');indicator.style.marginTop=-(indicator.offsetHeight/2)+'px';indicator.style.marginLeft=-(indicator.offsetWidth/2)+'px';}}else{$D.setStyle(indicator,'display','');if(xy){$D.setStyle(indicator,'position','absolute');$D.setXY(indicator,xy);}}};handle.hide=function(){if(config.useShim){var shim=indicator.parentNode;$D.setStyle(indicator,'display','none');$D.setStyle(shim,'display','none');if(config.useIFrame) $D.setStyle(indicator.parentNode.nextSibling,'display','none');try{if(config.useIFrame) shim.parentNode.removeChild(shim.nextSibling);shim.parentNode.removeChild(shim);}catch(e){}}else{$D.setStyle(indicator,'display','none');try{indicator.parentNode.removeChild(indicator);}catch(e){}}};return handle;}} TB.util.Pagination=new function(){var PAGE_SEPARATOR='...';var defConfig={pageUrl:'',prevPageClass:'PrevPage',noPrevClass:'NoPrev',prevPageText:'prevPageText',nextPageClass:'NextPage',nextPageText:'nextPageText',noNextClass:'NoNext',currPageClass:'CurrPage',pageParamName:'page',appendParams:'',pageBarMode:'bound',showIndicator:true,cachePageData:false} var cancelHandler=function(ev){$E.stopEvent(ev);} var pageHandler=function(ev,args){$E.stopEvent(ev);var target=$E.getTarget(ev);args[1].gotoPage(args[0]);} var buildBoundPageList=function(pageIndex,pageCount){var l=[];var leftStart=1;var leftEnd=2;var mStart=pageIndex-2;var mEnd=pageIndex+2;var rStart=pageCount-1;var rEnd=pageCount;if(mStart<=leftEnd){leftStart=0;leftEnd=0;mStart=1;} if(mEnd>=rStart){rStart=0;rEnd=0;mEnd=pageCount;} if(leftEnd>leftStart){for(var i=leftStart;i<=leftEnd;++i){l[l.length]=""+i;} if((leftEnd+1)rStart){if((mEnd+1)1;} handle.disablePageBar=function(){$D.addClass(pageBarContainer,'Disabled');$E.purgeElement(pageBarContainer,true,'click');var els=TB.common.toArray(pageBarContainer.getElementsByTagName('a'));els.forEach(function(el,i){$E.on(el,'click',cancelHandler);el.disabled=1;});} handle.onPageLoad=function(callback){if(YAHOO.lang.isFunction(callback)) pageLoadEvent.subscribe(callback);} handle.setAppendParams=function(params){config.appendParams=params;} return handle;}} TB.util.QueryData=function(){this.data=[];this.addField=function(input){for(var i=0;i1;},toggleCheckAll:function(){var allChecked=checkboxes.every(getChecked);checkboxes.forEach(allChecked?setUnchecked:setChecked);if(checkboxes.length==0){checkAllBoxes.forEach(setUnchecked);}else{checkAllBoxes.forEach(allChecked?setUnchecked:setChecked);} handle._checkedBoxCount=(allChecked)?0:checkboxes.length;checkboxes.forEach(function(o){onCheckEvent.fire(o);});},toggleChecked:function(checkbox){checkbox.checked=!checkbox.checked;doCheck();onCheckEvent.fire(checkbox);},getCheckedBoxes:function(){return checkboxes.filter(getChecked);}});$E.on(checkboxes,'click',clickHandler);if(config.onCheck&&YAHOO.lang.isFunction(config.onCheck)) onCheckEvent.subscribe(config.onCheck,handle,true);if(checkAllBoxes.length>0){$E.on(checkAllBoxes,'click',handle.toggleCheckAll);} if(config.checkOnInit){doCheck();var checkOnInit=function(){checkboxes.forEach(function(o){onCheckEvent.fire(o);});} setTimeout(checkOnInit,10);} return handle;}} TB.form.TagAssistor=new function(){var defConfig={separator:' ',selectedClass:'Selected'} var tagExists=function(tagArr,tagEl){return tagArr.indexOf(TB.common.trim(tagEl.innerHTML))!=-1;} var value2TagArray=function(textField,separator){var val=textField.value.replace(/\s+/g,' ').trim();if(val.length>0) return val.split(separator);else return[];} this.attach=function(textField,tagsContainer,config){textField=$(textField);tagsContainer=$(tagsContainer);config=TB.applyIf(config||{},defConfig);var triggers=TB.common.toArray(tagsContainer.getElementsByTagName('a'));var clickHandler=function(ev){var tagArray=value2TagArray(textField,config.separator);var target=$E.getTarget(ev);if(tagExists(tagArray,target)){tagArray.remove(TB.common.trim(target.innerHTML));}else{tagArray.push(TB.common.trim(target.innerHTML));} updateClass(tagArray);textField.value=tagArray.join(config.separator);} var updateClass=function(tagArray){triggers.forEach(function(o,i){if(tagExists(tagArray,o)){$D.addClass(o,config.selectedClass);}else{$D.removeClass(o,config.selectedClass);}})} var handle={};handle.init=function(){var tagArray=value2TagArray(textField,config.separator);triggers.forEach(function(o,i){if(tagExists(tagArray,o)){$D.addClass(o,config.selectedClass);} $E.on(o,'click',clickHandler);});$E.on(textField,'keyup',function(ev){var tagArray=value2TagArray(textField,config.separator);updateClass(tagArray);});} handle.init();}} var bluntAjaxDebug=true;function bluntAjax(url){var callback=false;var parameters='';var method='POST';var div=false;var pass=false;var aLength=arguments.length if(arguments.length>1){for(i=1;i=12) dn="PM" if(hours>12){hours=hours-12} if(hours==0) hours=12 if(minutes<=9) minutes="0"+minutes if(seconds<=9) seconds="0"+seconds var cdate=""+dayarray[day]+", "+daym+" "+montharray[month]+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn +"" if(document.all) document.all.clock.innerHTML=cdate else if(document.getElementById) document.getElementById("clock").innerHTML=cdate else document.write(cdate)} if(!document.all&&!document.getElementById) getthedate() function timedisplay(){if(document.all||document.getElementById) setInterval("getthedate()",1000)} function formHandler(form){var URL=document.form.site.options[document.form.site.selectedIndex].value;window.location.href=URL;} function gonow(theURL) {window.location.href=theURL;} function formHandler(form){var URL=document.form.site.options[document.form.site.selectedIndex].value;window.location.href=URL;} function IsNumeric(sText) {var ValidChars="0123456789.";var IsNumber=true;var Char;for(i=0;i127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128);} else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128);}} return utftext;},decode:function(utftext){var string="";var i=0;var c=c1=c2=0;while(i191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;} else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}} return string;}} function ddtabcontent(tabinterfaceid){this.tabinterfaceid=tabinterfaceid this.tabs=document.getElementById(tabinterfaceid).getElementsByTagName("a") this.enabletabpersistence=true this.hottabspositions=[] this.currentTabIndex=0 this.subcontentids=[] this.revcontentids=[] this.selectedClassTarget="link"} ddtabcontent.getCookie=function(Name){var re=new RegExp(Name+"=[^;]+","i");if(document.cookie.match(re)) return document.cookie.match(re)[0].split("=")[1] return""} ddtabcontent.setCookie=function(name,value){document.cookie=name+"="+value+";path=/"} ddtabcontent.prototype={expandit:function(tabid_or_position){this.cancelautorun() var tabref="" try{if(typeof tabid_or_position=="string"&&document.getElementById(tabid_or_position).getAttribute("rel")) tabref=document.getElementById(tabid_or_position) else if(parseInt(tabid_or_position)!=NaN&&this.tabs[tabid_or_position].getAttribute("rel")) tabref=this.tabs[tabid_or_position]} catch(err){alert("Invalid Tab ID or position entered!")} if(tabref!="") this.expandtab(tabref)},cycleit:function(dir,autorun){if(dir=="next"){var currentTabIndex=(this.currentTabIndex0)?this.currentTabIndex-1:this.hottabspositions.length-1} if(typeof autorun=="undefined") this.cancelautorun() this.expandtab(this.tabs[this.hottabspositions[currentTabIndex]])},setpersist:function(bool){this.enabletabpersistence=bool},setselectedClassTarget:function(objstr){this.selectedClassTarget=objstr||"link"},getselectedClassTarget:function(tabref){return(this.selectedClassTarget==("linkparent".toLowerCase()))?tabref.parentNode:tabref},urlparamselect:function(tabinterfaceid){var result=window.location.search.match(new RegExp(tabinterfaceid+"=(\\d+)","i")) return(result==null)?null:parseInt(RegExp.$1)},expandtab:function(tabref){var subcontentid=tabref.getAttribute("rel") var associatedrevids=(tabref.getAttribute("rev"))?","+tabref.getAttribute("rev").replace(/\s+/,"")+",":"" this.expandsubcontent(subcontentid) this.expandrevcontent(associatedrevids) for(var i=0;i500&&this.hottabspositions.length>1){this.autoruntimer=setInterval(function(){tabinstance.autorun()},this.automodeperiod)}}} if(typeof dd_domreadycheck=="undefined") var dd_domreadycheck=false var ddlevelsmenu={enableshim:false,arrowpointers:{downarrow:["",12,9],rightarrow:["ddlevelsfiles/arrow-right.gif",12,12],showarrow:{toplevel:false,sublevel:true}},hideinterval:200,effects:{enableswipe:true,enablefade:true,duration:200},httpsiframesrc:"",topmenuids:[],topitems:{},subuls:{},lastactivesubul:{},topitemsindex:-1,ulindex:-1,hidetimers:{},shimadded:false,nonFF:!/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent),getoffset:function(what,offsettype){return(what.offsetParent)?what[offsettype]+this.getoffset(what.offsetParent,offsettype):what[offsettype]},getoffsetof:function(el){el._offsets={left:this.getoffset(el,"offsetLeft"),top:this.getoffset(el,"offsetTop")}},getwindowsize:function(){this.docwidth=window.innerWidth?window.innerWidth-10:this.standardbody.clientWidth-10 this.docheight=window.innerHeight?window.innerHeight-15:this.standardbody.clientHeight-18},gettopitemsdimensions:function(){for(var m=0;m0){this.shimmy.topshim.style.left=scrollX+"px" this.shimmy.topshim.style.top=scrollY+"px" this.shimmy.topshim.style.width="99%" this.shimmy.topshim.style.height=topgap+"px"} if(bottomgap>0){this.shimmy.bottomshim.style.left=scrollX+"px" this.shimmy.bottomshim.style.top=header._offsets.top+header._dimensions.h+"px" this.shimmy.bottomshim.style.width="99%" this.shimmy.bottomshim.style.height=bottomgap+"px"}}},hideshim:function(){this.shimmy.topshim.style.width=this.shimmy.bottomshim.style.width=0 this.shimmy.topshim.style.height=this.shimmy.bottomshim.style.height=0},buildmenu:function(mainmenuid,header,submenu,submenupos,istoplevel,dir){header._master=mainmenuid header._pos=submenupos header._istoplevel=istoplevel if(istoplevel){this.addEvent(header,function(e){ddlevelsmenu.hidemenu(ddlevelsmenu.subuls[this._master][parseInt(this._pos)])},"click")} this.subuls[mainmenuid][submenupos]=submenu header._dimensions={w:header.offsetWidth,h:header.offsetHeight,submenuw:submenu.offsetWidth,submenuh:submenu.offsetHeight} this.getoffsetof(header) submenu.style.left=0 submenu.style.top=0 submenu.style.visibility="hidden" this.addEvent(header,function(e){if(!ddlevelsmenu.isContained(this,e)){var submenu=ddlevelsmenu.subuls[this._master][parseInt(this._pos)] if(this._istoplevel){ddlevelsmenu.css(this,"selected","add") clearTimeout(ddlevelsmenu.hidetimers[this._master][this._pos])} ddlevelsmenu.getoffsetof(header) var scrollX=window.pageXOffset?window.pageXOffset:ddlevelsmenu.standardbody.scrollLeft var scrollY=window.pageYOffset?window.pageYOffset:ddlevelsmenu.standardbody.scrollTop var submenurightedge=this._offsets.left+this._dimensions.submenuw+(this._istoplevel&&dir=="topbar"?0:this._dimensions.w) var submenubottomedge=this._offsets.top+this._dimensions.submenuh var menuleft=(this._istoplevel?this._offsets.left+(dir=="sidebar"?this._dimensions.w:0):this._dimensions.w) if(submenurightedge-scrollX>ddlevelsmenu.docwidth){menuleft+=-this._dimensions.submenuw+(this._istoplevel&&dir=="topbar"?this._dimensions.w:-this._dimensions.w)} submenu.style.left=menuleft+"px" var menutop=(this._istoplevel?this._offsets.top+(dir=="sidebar"?0:this._dimensions.h):this.offsetTop) if(submenubottomedge-scrollY>ddlevelsmenu.docheight){if(this._dimensions.submenuh0) this.addEvent(window,function(){functionref()},"load");},init:function(mainmenuid,dir){this.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body this.topitemsindex=-1 this.ulindex=-1 this.topmenuids.push(mainmenuid) this.topitems[mainmenuid]=[] this.subuls[mainmenuid]=[] this.hidetimers[mainmenuid]=[] if(this.enableshim&&!this.shimadded){this.shimmy={} this.shimmy.topshim=this.addshimmy(document.body) this.shimmy.bottomshim=this.addshimmy(document.body) this.shimadded=true} var menubar=document.getElementById(mainmenuid) var alllinks=menubar.getElementsByTagName("a") this.getwindowsize() for(var i=0;i Fetching slider Contents. Please wait...',bustajaxcache:true,enablepersist:true,settingcaches:{},jumpTo:function(fcsid,pagenumber){this.turnpage(this.settingcaches[fcsid],pagenumber)},ajaxconnect:function(setting){var page_request=false if(window.ActiveXObject){try{page_request=new ActiveXObject("Msxml2.XMLHTTP")} catch(e){try{page_request=new ActiveXObject("Microsoft.XMLHTTP")} catch(e){}}} else if(window.XMLHttpRequest) page_request=new XMLHttpRequest() else return false var pageurl=setting.contentsource[1] page_request.onreadystatechange=function(){featuredcontentslider.ajaxpopulate(page_request,setting)} document.getElementById(setting.id).innerHTML=this.ajaxloadingmsg var bustcache=(!this.bustajaxcache)?"":(pageurl.indexOf("?")!=-1)?"&"+new Date().getTime():"?"+new Date().getTime() page_request.open('GET',pageurl+bustcache,true) page_request.send(null)},ajaxpopulate:function(page_request,setting){if(page_request.readyState==4&&(page_request.status==200||window.location.href.indexOf("http")==-1)){document.getElementById(setting.id).innerHTML=page_request.responseText this.buildpaginate(setting)}},buildcontentdivs:function(setting){var alldivs=document.getElementById(setting.id).getElementsByTagName("div") for(var i=0;i'+nextprev[0]+' ':'')+phtml+(nextprev[1]!=''?'':'') pdiv.innerHTML=phtml} var pdivlinks=pdiv.getElementsByTagName("a") var toclinkscount=0 for(var i=0;isetting.contentdivs.length-1){pdivlinks[i].style.display="none" continue} pdivlinks[i].setAttribute("rel",++toclinkscount) pdivlinks[i][setting.revealtype]=function(){featuredcontentslider.turnpage(setting,this.getAttribute("rel")) return false} setting.toclinks.push(pdivlinks[i])} else if(this.css(pdivlinks[i],"prev","check")||this.css(pdivlinks[i],"next","check")){pdivlinks[i].onclick=function(){featuredcontentslider.turnpage(setting,this.className) return false}}} this.turnpage(setting,setting.currentpage,true) if(setting.autorotate[0]){pdiv[setting.revealtype]=function(){featuredcontentslider.cleartimer(setting,window["fcsautorun"+setting.id])} sliderdiv["onclick"]=function(){featuredcontentslider.cleartimer(setting,window["fcsautorun"+setting.id])} setting.autorotate[1]=setting.autorotate[1]+(1/setting.enablefade[1]*50) this.autorotate(setting)}},urlparamselect:function(fcsid){var result=window.location.search.match(new RegExp(fcsid+"=(\\d+)","i")) return(result==null)?null:parseInt(RegExp.$1)},turnpage:function(setting,thepage,autocall){var currentpage=setting.currentpage var totalpages=setting.contentdivs.length var turntopage=(/prev/i.test(thepage))?currentpage-1:(/next/i.test(thepage))?currentpage+1:parseInt(thepage) turntopage=(turntopage<1)?totalpages:(turntopage>totalpages)?1:turntopage if(turntopage==setting.currentpage&&typeof autocall=="undefined") return setting.currentpage=turntopage setting.contentdivs[turntopage-1].style.zIndex=++setting.topzindex this.cleartimer(setting,window["fcsfade"+setting.id]) setting.cacheprevpage=setting.prevpage if(setting.enablefade[0]==true){setting.curopacity=0 this.fadeup(setting)} if(setting.enablefade[0]==false){setting.contentdivs[setting.prevpage-1].style.display="none" setting.onChange(setting.prevpage,setting.currentpage)} setting.contentdivs[turntopage-1].style.visibility="visible" setting.contentdivs[turntopage-1].style.display="block" if(setting.prevpage<=setting.toclinks.length) this.css(setting.toclinks[setting.prevpage-1],"selected","remove") if(turntopage<=setting.toclinks.length) this.css(setting.toclinks[turntopage-1],"selected","add") setting.prevpage=turntopage if(this.enablepersist) this.setCookie("fcspersist"+setting.id,turntopage)},setopacity:function(setting,value){var targetobject=setting.contentdivs[setting.currentpage-1] if(targetobject.filters&&targetobject.filters[0]){if(typeof targetobject.filters[0].opacity=="number") targetobject.filters[0].opacity=value*100 else targetobject.style.filter="alpha(opacity="+value*100+")"} else if(typeof targetobject.style.MozOpacity!="undefined") targetobject.style.MozOpacity=value else if(typeof targetobject.style.opacity!="undefined") targetobject.style.opacity=value setting.curopacity=value},fadeup:function(setting){if(setting.curopacity<1){this.setopacity(setting,setting.curopacity+setting.enablefade[1]) window["fcsfade"+setting.id]=setTimeout(function(){featuredcontentslider.fadeup(setting)},50)} else{if(setting.cacheprevpage!=setting.currentpage) setting.contentdivs[setting.cacheprevpage-1].style.display="none" setting.onChange(setting.cacheprevpage,setting.currentpage)}},cleartimer:function(setting,timervar){if(typeof timervar!="undefined"){clearTimeout(timervar) clearInterval(timervar) if(setting.cacheprevpage!=setting.currentpage){setting.contentdivs[setting.cacheprevpage-1].style.display="none"}}},css:function(el,targetclass,action){var needle=new RegExp("(^|\\s+)"+targetclass+"($|\\s+)","ig") if(action=="check") return needle.test(el.className) else if(action=="remove") el.className=el.className.replace(needle,"") else if(action=="add") el.className+=" "+targetclass},autorotate:function(setting){window["fcsautorun"+setting.id]=setInterval(function(){featuredcontentslider.turnpage(setting,"next")},setting.autorotate[1])},getCookie:function(Name){var re=new RegExp(Name+"=[^;]+","i");if(document.cookie.match(re)) return document.cookie.match(re)[0].split("=")[1] return null},setCookie:function(name,value){document.cookie=name+"="+value},init:function(setting){var persistedpage=this.getCookie("fcspersist"+setting.id)||1 var urlselectedpage=this.urlparamselect(setting.id) this.settingcaches[setting.id]=setting setting.contentdivs=[] setting.toclinks=[] setting.topzindex=0 setting.currentpage=urlselectedpage||((this.enablepersist)?persistedpage:1) setting.prevpage=setting.currentpage setting.revealtype="on"+(setting.revealtype||"click") setting.curopacity=0 setting.onChange=setting.onChange||function(){} if(setting.contentsource[0]=="inline") this.buildpaginate(setting) if(setting.contentsource[0]=="ajax") this.ajaxconnect(setting)}} function Banner(objName){this.obj=objName;this.aNodes=[];this.currentBanner=0;};Banner.prototype.add=function(bannerType,bannerPath,bannerDuration,height,width,hyperlink){this.aNodes[this.aNodes.length]=new Node(this.obj+"_"+this.aNodes.length,bannerType,bannerPath,bannerDuration,height,width,hyperlink);};function Node(name,bannerType,bannerPath,bannerDuration,height,width,hyperlink){this.name=name;this.bannerType=bannerType;this.bannerPath=bannerPath;this.bannerDuration=bannerDuration;this.height=height this.width=width;this.hyperlink=hyperlink;};Banner.prototype.toString=function(){var str="" for(var iCtr=0;iCtr\n';if(this.aNodes[iCtr].hyperlink!=""){str=str+'';} if(this.aNodes[iCtr].bannerType=="FLASH"){str=str+'' str=str+'' str=str+'' str=str+'' str=str+'' str=str+'' str=str+''}else if(this.aNodes[iCtr].bannerType=="IMAGE"){str=str+'';} if(this.aNodes[iCtr].hyperlink!=""){str=str+'';} str+='';} return str;};Banner.prototype.start=function(){this.changeBanner();var thisBannerObj=this.obj;setTimeout(thisBannerObj+".start()",this.aNodes[this.currentBanner].bannerDuration*1000);} Banner.prototype.changeBanner=function(){var thisBanner;var prevBanner=-1;if(this.currentBanner1){if(thisBanner>0){prevBanner=thisBanner-1;}else{prevBanner=this.aNodes.length-1;}} if(this.currentBanner=0){document.getElementById(this.aNodes[prevBanner].name).className="m_banner_hide";} document.getElementById(this.aNodes[thisBanner].name).className="m_banner_show";} function quick_search(){simcheck=search_hp.sim.value;if(IsNumeric(simcheck)&&simcheck.length>2&&simcheck.length<11) {fileName='http://www.sieuthisimthe.com/ajax.html?do=quick_result&sim='+simcheck;bluntAjax(fileName,'quick_search_result');}} function tracuu_dtban() {sodtvnpt=tracuudtonline.sothuebao.value;thanhpho=tracuudtonline.thanhpho.value;sodautien=sodtvnpt.substr(0,1);if(!IsNumeric(sodtvnpt)||sodtvnpt.length<5) {alert('Vui lòng nhập đúng số thuê bao.') tracuudtonline.sothuebao.focus();return false;} else if(sodautien!=3) {alert('Chỉ có thể kiểm tra thuê bao của VNPT. Chúng tôi chưa hỗ trợ các mạng khác') tracuudtonline.sothuebao.focus();return false;} else {fileName='http://www.sieuthisimthe.com/ajax.html?do=check_vnpt&sim='+sodtvnpt+'&city='+thanhpho;bluntAjax(fileName,'fixed_phone');}} function changepage(last_url) {if(last_url!="") {display_sim_list='http://www.sieuthisimthe.com/ajax.html?do=display_sim_list&'+last_url;bluntAjax(display_sim_list,'bangsim');display_page='http://www.sieuthisimthe.com/ajax.html?do=display_page&'+last_url;bluntAjax(display_page,'showpages');display_current_path='http://www.sieuthisimthe.com/ajax.html?do=display_path&'+last_url;bluntAjax(display_current_path,'current_path');}} function display_sim_by_cat(catname) {if(catname!="") {sim_by_cat='http://www.sieuthisimthe.com/ajax.html?do=sim_by_cat&'+catname;bluntAjax(sim_by_cat,'sim_by_cat_listing');sim_by_cat_pages='http://www.sieuthisimthe.com/ajax.html?do=show_page_by_cat&'+catname;bluntAjax(sim_by_cat_pages,'show_page_by_cat');}} function display_sim_sinhvien(catname) {if(catname!="") {simsinhvien='http://www.sieuthisimthe.com/ajax.html?do=display_sim_sinhvien&'+catname;bluntAjax(simsinhvien,'sim_by_cat_listing');simsinhvien_page='http://www.sieuthisimthe.com/ajax.html?do=show_page_by_cat&'+catname;bluntAjax(simsinhvien_page,'show_page_by_cat');}} function display_sim_by_network(network) {if(network!="") {sim_by_network='http://www.sieuthisimthe.com/ajax.html?do=sim_by_network&'+network;bluntAjax(sim_by_network,'sim_by_network_listing');sim_by_network_pages='http://www.sieuthisimthe.com/ajax.html?do=show_page_by_network&'+network;bluntAjax(sim_by_network_pages,'show_page_by_network');}} function changepage_by_cat(last_url) {if(last_url!="") {listing_sim_by_cat_hp='http://www.sieuthisimthe.com/ajax.html?do=display_sim_by_cat&'+last_url;bluntAjax(listing_sim_by_cat_hp,'sim_by_cat_listing');sim_by_cat_pages='http://www.sieuthisimthe.com/ajax.html?do=show_page_by_cat&'+last_url;bluntAjax(sim_by_cat_pages,'show_page_by_cat');}} function changepage_by_network(last_url) {if(last_url!="") {listing_sim_by_network_hp='http://www.sieuthisimthe.com/ajax.html?do=display_sim_by_network&'+last_url;bluntAjax(listing_sim_by_network_hp,'sim_by_network_listing');sim_by_network_pages='http://www.sieuthisimthe.com/ajax.html?do=show_page_by_network&'+last_url;bluntAjax(sim_by_network_pages,'show_page_by_network');}} function changepage_by_price(last_url) {if(last_url!="") {listing_sim_by_price_hp='http://www.sieuthisimthe.com/ajax.html?do=display_sim_by_price&'+last_url;bluntAjax(listing_sim_by_price_hp,'sim_by_price_listing');sim_by_price_pages='http://www.sieuthisimthe.com/ajax.html?do=show_page_by_price&'+last_url;bluntAjax(sim_by_price_pages,'show_page_by_price');}} function changepage_by_freesim(last_url) {if(last_url!="") {listing_sim_by_free='http://www.sieuthisimthe.com/ajax.html?do=search_sim_free&'+last_url;bluntAjax(listing_sim_by_free,'mobigold-table');}} function quick_search_free(){simcheck=search_free.sim.value;if(IsNumeric(simcheck)&&simcheck.length>2&&simcheck.length<11) {quick_free_search_result='http://www.sieuthisimthe.com/ajax.html?do=search_sim_free&sim='+simcheck;bluntAjax(quick_free_search_result,'mobigold-table');} else {alert('Vui lòng nhập ít nhất 3 chữ số để tìm kiếm') search_free.sim.focus();return false;}} function tracuuphongthuy() {sodt=phongthuy.sodienthoai.value;namsinh=phongthuy.namsinh.value;if(sodt.length<6||namsinh.length!=4) {alert('Số điện thoại có thể là 6 số đuôi, hoặc số đầy đủ') phongthuy.sodienthoai.focus();return false;} else {display_fengshui='http://www.sieuthisimthe.com/ajax.html?do=fengshui&sodt='+sodt+'&namsinh='+namsinh;bluntAjax(display_fengshui,'fengshui_result');}} function book_this_sim() {simcard=bookingsim.sim.value;hoten1=bookingsim.hoten.value;diachi1=bookingsim.diachi.value;thanhpho1=bookingsim.thanhpho.value;dienthoai1=bookingsim.dienthoai.value;dtban1=bookingsim.dtban.value;noidung1=bookingsim.noidung.value;yeucau1=bookingsim.yeucau.value;code1=bookingsim.code.value;scode1=bookingsim.scode.value;giaban1=bookingsim.giaban.value;if(simcard!=""&&hoten1!=""&&diachi1!=""&&thanhpho1!=""&&dienthoai1!=""&&code1!="") {post_param='do=book_sim&sim='+simcard+'&hoten='+hoten1+'&diachi='+diachi1+'&thanhpho='+thanhpho1+'&dienthoai='+dienthoai1+'&dtban='+dtban1+'&noidung='+noidung1+'&yeucau='+yeucau1+'&code='+code1+'&giaban='+giaban1+'&scode='+scode1;booking_this_sim='http://www.sieuthisimthe.com/ajax.html';bluntAjax(booking_this_sim,post_param,'POST','booking_sim_result');} return false;}