function CopyInputTehnic(form) { form.nume_tehnic.value = form.nume_detinator.value; form.prenume_tehnic.value = form.prenume_detinator.value; form.cnp_tehnic.value = form.cnp_detinator.value; form.email_tehnic.value = form.email_detinator.value; form.telefon_tehnic.value = form.telefon_detinator.value; form.adresa_tehnic.value = form.adresa_detinator.value; form.tara_tehnic.value = form.tara_detinator.value; form.localitate_tehnic.value = form.localitate_detinator.value; form.judet_tehnic.value = form.judet_detinator.value; } if(document.all && !document.getElementById) { //IE4 support document.getElementById = function(id) { return document.all[id]; } } function toggle(box,theId,sloboz) { var el; if(document.getElementById) { var row = document.getElementById(theId); var f = row; while(f.tagName.toLowerCase() != 'form') { if(f.parentNode) f=f.parentNode; else if(f.parentElement) f=f.parentElement; //IE4 support if(f.tagName.toLowerCase() == 'body') { alert('ERROR: looped to find <'+'body'+'>'); return; } } for(var i=0;i'); return; } } if(box != el) { el.className = "off"; } } } row.className = (box.checked)?"on":"off"; } }