function wmMnu(obj,a){ obj.className="wmnu"+((a==0)?"":"1"); tobj=null fObj(obj,"a"); if(tobj) tobj.className="wmnulnk"+((a==0)?"":"1"); tobj=null; fObj(obj,"img"); if(tobj) tobj.src="/images/sep"+((a==0)?"1":"s")+".gif"; } function wsMnu(obj,a){ obj.className="smnu"+((a==0)?"":"1"); tobj=null fObj(obj,"a"); if(tobj) tobj.className="smnulnk"+((a==0)?"":"1"); tobj=null; fObj(obj,"img"); if(tobj) tobj.src="/images/tick"+((a==0)?"1":"s")+".gif"; } function txtset(e){ } function verifyLogin(){ el("_log_frm").action=(checkEMail(el("_log_code").value))?"/area-particulares.html":"/area-profesionales.html"; return checkForm({"_log_code":"Code","_log_passwd":"Password"},{}); } function checkActiveIZ(o,n){ if(!(b=el("IZbut1"))) return; if(isNaN(o)) b.disabled=(checkActiveSel("hom","hom",o,n)==0); else b.disabled=(n==0); } var prvimg; function showPreview(n){ o=el("PRV_"+n); o.style.visibility="hidden"; prvimg=new Image; prvimg.src=el("IMG_"+n).value; adjustPreview(n); } function adjustPreview(n){ o=el("PRV_"+n); if(prvimg.complete==false) return setTimeout("adjustPreview("+n+")",10); w=86; h=parseInt((w*prvimg.height)/prvimg.width); if(document.all) o.filters.blendTrans.apply(); if(h>70){ h=70; w=parseInt((h*prvimg.width)/prvimg.height); } o.src=prvimg.src; o.style.width=w+"px"; o.style.height=h+"px"; o.style.visibility="visible"; if(document.all) o.filters.blendTrans.play(); } function setCountryhcz(o,y,z,v,c){ setCountry(o,y,z,v,c); addhczs("hcz","",{},0); } function setZonehcz(o,y){ setZone(o,y); addhczs("hcz","",{},0); } function setCity(c){ el("IFR_hcity").src="/file/hczs/"+c; } function addhczs(s,d,f,n){ o=el("td_hcz"); if(n>1){ o.innerHTML=''; addOptions(s,d,f,n); }else o.innerHTML=''; } function frmCPage(frm,p){ if((o=el("action"))) o.value="page_change"; el("pag").value=p; el(frm).submit(); } var ctabp="tp_gd"; function tabAct(o,a){ if(o.className=="tabsel") return; switch(a){ case 0: el(ctabp).className="tabnrm"; o.className="tabsel"; el("tb_"+ctabp.substring(3)).style.display="none"; el("tb_"+o.id.substring(3)).style.display=""; ctabp=o.id; break; case 1: o.className="tabovr"; break; case 2: o.className="tabnrm"; break; } } var tini; var tini; function frmFSend(frm,url){ tini=new Date().valueOf(); el("pbbar").style.width="0px"; el("pbbar").innerHTML=""; el("pbinf").innerHTML=" "; el("pbtbl").style.visibility="visible"; el(frm).submit(); updFSend(url); } function updFSend(url){ s=sAjax(url+"uplvrf"); m=parseInt(s.substring(0,1)); if(m==1){ s=s.substring(1).split("*"); d=parseInt((new Date().valueOf()-tini)/1000); t=parseInt((parseInt(s[1])*d)/Math.max(1,s[0])); k=(parseInt(s[0])/1024)/d; k=parseInt(k*100)/100; if(document.all) pbbar.filters[0].apply(); el("pbbar").style.width=(parseInt(s[4])*4)+"px"; el("pbbar").innerHTML=s[4]+"%"; if(document.all) pbbar.filters[0].play(); el("pbinf").innerHTML=''+s[2]+" / "+s[3]+''+n2ms(d)+" / "+n2ms(t)+" - "+n2ms(t-d)+" ["+k+" Kb/s]"; }if(m==2){ el("pbtbl").style.visibility="hidden"; window.location=url+"uplend"; }else setTimeout("updFSend(\""+url+"\")",950); } function n2ms(n){ n=parseInt(n); m=parseInt(n/60); s=n-(m*60); m="0"+m; s="0"+s; m=m.substring(m.length-2); s=s.substring(s.length-2); return m+":"+s; }