function zmenaDat () { zmenNaInteger ( "objednano" ); var fTotal = 0; fTotal += sectiTabulkuPrirazka ( "cena", "prirazkap", "objednano", "celkemkc" ); document.forms["FORM_XML"].total.value = formatNum(fTotal); return; } function kontrolaFormulare() { lang = 'CZ'; switch ( kontrolaZadaniHodnoty( 'FORM_XML', 'objednano', lang )) { case 0: return false; case -1: vypisNezadaniHodnoty( 'Objednáno', lang ); return false; } return true; } function zmenNaInteger ( strPocet ) { var oPocet = eval ( "document.forms.FORM_XML." + strPocet ); if (!oPocet) return; var nPocet = 0; if (!oPocet.length) { nPocet = parseInt ( oPocet.value.replace ( ',', '.' ) ); if ( isNaN ( nPocet )) oPocet.value = ''; else { if (nPocet.toString() != oPocet.value) oPocet.value = nPocet.toString(); } return; } for ( i = 0; i < oPocet.length; i++ ) { nPocet = parseInt ( oPocet[i].value.replace ( ',', '.' ) ); if ( isNaN ( nPocet )) oPocet[i].value = ''; else { if (nPocet.toString() != oPocet[i].value) oPocet[i].value = nPocet.toString(); } } return; }