function DesMista(ihod){s = new String(ihod); if ((s.indexOf(".")>-1)&&((s.length - s.indexOf("."))<3)) {s+='0';} return(s)}function PrepocetCelkem(){var Soucet=0; var SoucetBez=0; for (var i=0; i<(parent.pkos.length); i++)  {//Soucet += (Math.round(parent.pkos[i][1] * PoleCen[parent.pkos[i][0]] * 100)/100);  Soucet += (Math.round(parent.pkos[i][1] * PoleCen[parent.pkos[i][0]*2] * 100)/100);  SoucetBez += (Math.round(parent.pkos[i][1] * PoleCen[parent.pkos[i][0]*2-1] * 100)/100); } Soucet = Math.round(Soucet * 100)/100; SoucetBez = Math.round(SoucetBez * 100)/100; if (navigator.appName == "Microsoft Internet Explorer") {document.all.CelkemSoucet.innerText=DesMista(Soucet);  if (1==0)  {document.all.CelkemSoucetBez.innerText=DesMista(SoucetBez);} } else {document.formsoucet["CelkemSoucet"].value=DesMista(Soucet);  if (1==0)  {document.formsoucet["CelkemSoucetBez"].value=DesMista(SoucetBez);} }}function NulujCelkem(){if (navigator.appName == "Microsoft Internet Explorer") {document.all['CelkemSoucet'].innerText = DesMista(0.0);  if (1==0)  {document.all['CelkemSoucetBez'].innerText = DesMista(0.0);} } else {document.formsoucet["CelkemSoucet"].value = DesMista(0.0);  if (1==0)  {document.formsoucet["CelkemSoucetBez"].value = DesMista(0.0);} }}function ZobrazCelkem(){document.write('<TD WIDTH="20%" ALIGN=RIGHT><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" HEIGHT="100%" VALIGN=MIDDLE>');//s dani document.write('<TR><TD ALIGN=LEFT>' + parent.ZF(2) + '<B>Celkom</B>&nbsp;' + parent.KF() + '</TD>'  + '<TD ALIGN=RIGHT>'); if (navigator.appName == "Microsoft Internet Explorer") {document.write(parent.ZF(2) + '<B><FONT id=CelkemSoucet>0.00</FONT></B>');} else {document.write(parent.ZF(3) + '<B><INPUT NAME="CelkemSoucet" TYPE="text" VALUE="0.00" SIZE="5" MAXLENGTH="6"></B></TD>');} document.write('<TD ALIGN=LEFT>'+parent.KF() + parent.ZF(2) + '<B>&nbsp;EUR</B>' + parent.KF() + '</TD></TR>'); //bez dane if (1==0) {  document.write('<TR><TD ALIGN=LEFT>' + parent.ZF(1) + 'Bez DPH&nbsp;' + parent.KF() + '</TD>'   + '<TD ALIGN=RIGHT>');  if (navigator.appName == "Microsoft Internet Explorer")  {document.write(parent.ZF(1) + '<FONT id=CelkemSoucetBez>0.00</FONT>');}  else  {document.write(parent.ZF(2) + '<INPUT NAME="CelkemSoucetBez" TYPE="text" VALUE="0.00" SIZE="5" MAXLENGTH="6"></TD>');}  document.write('<TD ALIGN=LEFT>'+parent.KF() + parent.ZF(1) + '&nbsp;EUR' + parent.KF() + '</TD></TR>'); } document.write('</TABLE></TD>');}function ZobrazHorniListu(){document.write('<FORM NAME="formsoucet">' +'<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" HEIGHT="100%" VALIGN=TOP>' +'<TR VALIGN=MIDDLE><TD WIDTH="20%" ALIGN=MIDDLE>' +'<IMG SRC="img/logo.png" border="0" ALT="Logo I.TRAN., s.r.o.">' +'</TD>'); document.write('<TD WIDTH="55%" ALIGN=RIGHT>' + parent.ZF(2) + '<B>' +'<A HREF="JavaScript:Vyhledat()"' +'onMouseOver="window.status=\'Kliknutím otvoríte vyhľadávaciu stránku.\';return true" onMouseOut="window.status=\'\'">' +'Hľadať</A>' +'&nbsp;&nbsp;&nbsp;' +'<A HREF="objednat.htm" target="hlavni"' +'onMouseOver="window.status=\'Kliknutím otvoríte stránku pre odoslanie objednávky.\';return true" onMouseOut="window.status=\'\'">' +'Objednávka</A>' +'&nbsp;&nbsp;&nbsp;' +'<A HREF="kos.htm" target="hlavni"' +'onMouseOver="window.status=\'Kliknutím si prezriete obsah košíka.\';return true" onMouseOut="window.status=\'\'">' +'Prezrieť košík</A>' +'&nbsp;&nbsp;&nbsp;' +'</B>' + parent.KF() +'</TD>'); ZobrazCelkem(); document.write('<TD WIDTH="5%">&nbsp;</TD></TR></TABLE></FORM>');}function Vyhledat(){parent.hltext = ""; parent.hlavni.location="hledat.htm";}
