if(!String.prototype.replace){String.prototype.replace=function(o,n){return this.split(o).join(n)}} if(!String.prototype.repeat){String.prototype.repeat=function(c){o='';for(i=0;i');return parseInt(d.z2.v.value)} function go(u){location.href=u;d.open('text/url');d.write(u);d.close();} function dial(){go('client:redialphone');go('client:logoshown')} function nbsp(c){nout='';for(i=0;i'} out+='' if(bgm){ if(bgm.indexOf('.')<0){bgm += '.mid'} if(bgm.indexOf('/')<0){bgm = cch+'Music/' + bgm} out+='') } d.write('') } if(!msg){msg=''} out+='' if(!nl){out+=''} out+=tab(msg); out+='
' return out; } function tab(msg){ bgimg=gTC('bgimg') shimg=gTC('shimg') bgclr=gTC('bg') gclr=gTC('g') if(msg){ msg=msg.replace(' ',' ') if(!shimg && bgimg=='Pattern.gif'){msg += nbsp(5)} tout='' }else{ tout='' } return tout } function ta(r,s,n,b,c,x,u){ bgclr=gTC('bg') tclr=gTC('t') if(u){x+=' usestyle';d.write('')} d.write(''); if(u){d.write('')} } function as(bg,h,w,g,b,lc,rc,lo,ro,s){ if(s){ if(!lc){lc=gTC('t')} if(!rc){rc=gTC('bg')} }else{ if(!lc){lc=gTC('bg')} if(!rc){rc=gTC('t')} } if(th==1){bgclr='333333'} if(!bg){bg='191919'} if(!h){h=32} if(!w){w=320} if(!g){g=0} if(!lo){lo=0} if(!ro){ro=0} if(!b){b=1} d.write('') } function butt(v,n,w,t,x){ if(th>0&&th!=4&&th!=7&&th!=10){sh=true} bclr=gTC('b') bbif=gTC('bbif') if(sh){d.write('')} d.write('') if(!t)t='submit' d.write('') if(sh){d.write('')} } function csa(m,i,b1t,b1a,b2t,b2a) { u='client:showalert?message='+escape(m); if(i)u+='&image='+escape(i); if(b1t)u+='&buttonlabel1='+escape(b1t); if(b1t&&!b1a){b1a='client:donothing'} if(b1a)u+='&buttonaction1='+escape(b1a); if(b2t)u+='&buttonlabel2='+escape(b2t); if(b2t&&!b2a){b2a='client:donothing'} if(b2a)u+='&buttonaction2='+escape(b2a); return u; } function redir(){ r=history.previous if(r==htm+'Themes.html'||r==htm+'PhoneCallWaitThresh.html'||r==htm+'BGM.html'||r==htm+'NVRAM.html'||r.indexOf('wtv-')==0){go(r)} } function goHTV(){return go('wtv-home:/home')} function gsa(m,i,b1t,b1a,b2t,b2a){go(csa(m,i,b1t,b1a,b2t,b2a))} function head(msg,fs,bgm,lp,nl){d.write(headr(msg,fs,bgm,lp,nl))} function dhh(tit) {if(tit==1){head('Partition Map','','','',true)}} function vh(){d.write(headr('VFat Hax'))}