function show(what) { el = document.getElementById(what); if (el) { el.style.display = ''; } } function hide(what) { el = document.getElementById(what); if (el) { el.style.display='none'; } } function showdiv(what) { el = document.getElementById(what); if (el) { el.style.display = 'inline'; } } function showDivNewReg() { var f = document.formRegNew; if(f.fyzickaPravnicka[2].checked) { // pravnicka show("org"); show("ico"); show("vat"); hide("czident"); hide("czidentvalue"); } if(f.fyzickaPravnicka[1].checked) { // fyzicka podnikajici show("org"); show("ico"); show("vat"); show("czident"); show("czidentvalue"); } if(f.fyzickaPravnicka[0].checked) { // soukromá hide("org"); hide("ico"); hide("vat"); show("czident"); show("czidentvalue"); } /* TODO if(f.deliveryType.value=="0") { // dorucovaci showdiv("delivery"); } else { hide("delivery"); } */ } function showDivDns(formname) { var f = eval('document.'+formname); if(f.dnsType[0].checked) { // nase showdiv("reg"); hide("id"); hide("new"); } if(f.dnsType[1].checked) { // identifikator showdiv("id"); hide("reg"); hide("new"); } if(f.dnsType[2].checked) { // vlastni showdiv("new"); hide("reg"); hide("id"); } } function formback(formname,url) { var f = eval('document.'+formname); f.action = url; f.submit(); } function oldgo2domain(id) { var url = 'domain/'+id+'.php'; document.domainForm.action = url; return; } function go2(path) { var url = path; document.domainForm.action = url; if(document.domainForm.onsubmit()) { document.domainForm.submit(); } return true; } // varianta s moznosti nevyplneni pole domena function go2var(path) { var url = path; document.domainForm.action = url; document.domainForm.submit(); return true; } function update_confirm_set_email(formname) { var form = eval('document.'+formname); var mail; //zjistim ktery radio je zaskrtnuty var checkedButton = "" for(i = 0; i < form.contact.length; i++) { if (form.contact[i].checked == true) { checkedButton=form.contact[i].value } } // kdyz neni zaskrtnute nic dame default if(!checkedButton) { form.contact[1].checked = true; checkedButton=form.contact[1].value; } mail = checkedButton.split('|||'); if(form.type.value == 'email' || form.type.value == 'electro') { form.email.value = mail[1]; form.email.disabled = true; } else { form.email.value = ''; form.email.disabled = false; } } function selectedContact(formname, method) { var f = eval('document.'+formname); var method = (method == null) ? "email,fax" : method; // default var methods=method.split(","); var l = methods.length; var option=new Array(); for ( i=0; i0) { tempArray[Count]=tempString.substr(0,tempString.indexOf(delimiter)); tempString=tempString.substr(tempString.indexOf(delimiter)+1,tempString.length-tempString.indexOf(delimiter)+1); Count=Count+1 } tempArray[Count]=tempString; return tempArray; } */ function openwin(url,wdt,hgt) { window.open(url,'','scrollbars=1,resizable=1,width='+wdt+',height='+hgt); } function popupdokument(mylink, windowname) { if (! window.focus) return true; var href; if (typeof(mylink) == 'string') href=mylink; else href=mylink.href; var fs = window.open(href, windowname, 'titlebar=0,location=0,toolbar=0,scrollbars=1,directories=0,status=0,resizable=1,width=480,height=600'); fs.focus(); return false; } function switch_brand(tarifId) { tarify_deactivate(); var identifikator = 'tarif' + tarifId.toString(); var identifikatorDescr = 'typDescr' + tarifId.toString(); //window.alert (identifikatorDescr); if (document.form.formBrand[tarifId-1].checked) { document.getElementById(identifikator).style.border = '5px solid #FF6600'; document.getElementById(identifikatorDescr).style.display = 'block'; } return 1; } function tarify_deactivate() { for (i=1; i <= 5; i++) { var identifikator = 'tarif' + i.toString(); var identifikatorDescr = 'typDescr' + i.toString(); document.getElementById(identifikator).style.border = '5px solid #B2E234'; document.getElementById(identifikatorDescr).style.display = 'none'; } //window.alert (identifikator); return 1; } function switchImg(tarifId) { document.form.formBrand[tarifId-1].checked = true; switch_brand(tarifId); } function show_link(a) { window.status=a; return true; } function hide_link() { window.status=' '; } function deleteClick(text, deleteLink) { if (window.confirm( text )) { document.location.href = deleteLink; } } function goToGet(url) { document.location.href = url; } // names = form field names comma delimited function formFieldEnableDisable(names, cked) { var names=names.split(","); var l = names.length; for ( i=0; i