         function Calculate( price, count, total )
         {
                  var i1 = price.value,i2 = count.value
                  total.value = parseFloat(price.value) * parseFloat(count.value);
                  if ( count.value == '' || total.value=='NaN') total.value = 0;
         }



        function NewWindow(page)
        {
                var width,height;
                width = 780;
                height = 540;
                OpenWin = window.open(page,"",'top=10,left=10,width='+width+',height='+height+', scrollbars=yes, menubar=no, toolbar=yes, location=no, status=no, resizable=yes');
        }



							function PrevodMenovychJednotek(theForm, Direction, kurzFIR, kurzSEC) {
								Nazev = new Array ("FIR", "SEC")
								Pocet = new Array (1, 1, 100 )
								Kurz = new Array (kurzFIR, kurzSEC )
								if (isNaN(theForm.Suma1.value)) {return false;}
								if (Direction == 0){
									var i = theForm.Mena1.selectedIndex
									var pInt = (theForm.Suma1.value / Pocet[i]) * Kurz[i]
									theForm.Suma2.value = (Math.round(pInt * 1000)) / 1000
									theForm.Mena2.selectedIndex = 0
									theForm.Direction.value = 0;
								}else{
									var i = theForm.Mena2.selectedIndex
									var pInt = (theForm.Suma1.value / Kurz[i]) * Pocet[i]
									theForm.Suma2.value = (Math.round(pInt * 1000)) / 1000
									theForm.Mena1.selectedIndex = 0
									theForm.Direction.value = 1;
								}
								return false
								}
function openWindow(str) {

        window.open(str,'Webcam','scrollbars=no,resizable=yes,width=375,height=320,status=no,location=no,toolbar=no');

}

function openMapaWindow(str) {

        window.open(str,'Webmap','scrollbars=yes,resizable=yes,width=800,height=600,status=no,location=no,toolbar=no');

}

