function JE_EMAIL(txt){var x = new RegExp('^[^@]+@([a-z,A-Z,0-9,_,-]+[.]{1})+[a-z,A-Z,0-9]{2,5}$'); if (x.exec(txt.toLowerCase())==null) return 0; else return 1;} function show(id) {if (document.getElementById(id).style.display=='none') document.getElementById(id).style.display='block'; else document.getElementById(id).style.display='none';} function showk(id,dir) {show('kategorie-'+id); if (document.getElementById('kimg'+id).src.indexOf('eshopbaby-r-plus.gif')>-1) document.getElementById('kimg'+id).src=dir+'/eshopbaby-r-minus.gif'; else document.getElementById('kimg'+id).src=dir+'/eshopbaby-r-plus.gif';} function scrollit() {document.getElementById('message').style.top=document.body.scrollTop + top + 'px';} function regnews() {if(JE_EMAIL(document.getElementById('enov').value)==0) {alert('pro registraci novinek musí být e-mail zadán ve správném formátu'); return false;} else {return true;}} function myParseFloat(str){str=''+str+''; var value=str.match('[-]{0,1}(?:[1-9]+[0-9]*[,.]{0,1}[0-9]*)|(?:0[,.][0-9]*)'); if(value!=null && value.length>0){value[0]=value[0].replace(',','.'); value=parseFloat(value[0])*1; return value;}else{return 0;}} function doprava(id) { for(i=0;i0)?{"cenaBez":cenaVybranehoPodproduktuBez,"cenaS":cenaVybranehoPodproduktuBez*this.data.dph}:null), "kombinaceVlastnosti":((this.data.volitelnyParametr.length>0)?{"cenaBez":kombinaceVlastnostiCenaBez,"cenaS":kombinaceVlastnostiCenaBez*this.data.dph}:null) }; for(var i=0; i0){ for(var i=0; i/g,'>'); escapedName=escapedName.replace(/0){ try{document.getElementById(this.bind.kosikNode).style.display='none';}catch(e){} try{ var errorHTML='Chyba
    '+error.join('')+'
'; document.getElementById(this.bind.errorNode).innerHTML=errorHTML; document.getElementById(this.bind.errorNode).style.display='block'; }catch(e){} }else{ try{document.getElementById(this.bind.errorNode).style.display='none';}catch(e){} try{document.getElementById(this.bind.kosikNode).style.display='block';}catch(e){} } } } } function homeCreditCalculator(root,cenaS,pouzitvlastnosti) {if(pouzitvlastnosti){cenaS=produktDetail.calcCena().cenaS;}window.open(root+'/homecredit.php?price='+cenaS,'homeCreditCalculator','');} function pes_check(message) { if (!(JE_EMAIL(document.getElementById('haf_mail').value) && (document.getElementById('haf_cena3').checked||document.getElementById('haf_cena').checked && document.getElementById('haf_cena2').value!=''))) {alert(message);} else { if (isNaN(document.getElementById('haf_cena2').value) && document.getElementById('haf_cena2').value!='') alert('jako cenu musíte zadat číslo') else document.getElementById('idpesform').submit(); } } function viceinfo_check(message) { var err = new Array(); var err2 ='Pro získání více informací je nutné, aby:\n\n'; if (!(JE_EMAIL(document.getElementById('idinfoobratem').value)) && document.getElementById('infoobratem3').value=='') err[err.length]='e-mail nebo telefon byl zadán ve správném tvaru'; if (document.getElementById('infoobratem2').value=='') err[err.length]='pole s dotazem obsahovalo alespoň stručný popis vašeho problému nebo vyžadovaných informaci'; if (err.length>0) {for (i=0; i0) for (i=0; i0) { for (i=0; i