  function calcul() {
	    var kurzeura = 26;
	    var finprice = "";
	    var numcars = 0;
	    var numc1 = 0;
        var numc2 = 0;
	    var numc3 = 0;
		var numc4 = 0;
		var numc5 = 0;
		var numc6 = 0;
		var numc7 = 0;
		var numc8 = 0;
		var nump1 = 0;
        var nump2 = 0;
	    var nump3 = 0;
		var nump4 = 0;
		var nump5 = 0;
		var nump6 = 0;
		var nump7 = 0;
	    var curdoc = document.getElementById("order_form");
	    var howmuch = curdoc.pocetcestujicich.value;

            
			document.getElementById("depa_den").disabled="disabled";
			document.getElementById("depa_mesic").disabled="disabled";
			document.getElementById("depa_rok").disabled="disabled";
			document.getElementById("depa_hodina").disabled="disabled";
			document.getElementById("depa_minuta").disabled="disabled";
	   
	    if (document.getElementById("dir1").checked == true) {
			nump1 = 370;
			nump2 = 550;
			nump3 = 450;
			nump4 = 575;
			nump5 = 1800;
			nump6 = 1275;
			nump7 = 3400;
	    }
	     else if (document.getElementById("dir2").checked == true) {
            nump1 = 730;
			nump2 = 1100;
			nump3 = 875;
			nump4 = 1000;
			nump5 = 3250;
			nump6 = 2350;
			nump7 = 6300;                   
                
            document.getElementById("depa_den").disabled="";
			document.getElementById("depa_mesic").disabled="";
			document.getElementById("depa_rok").disabled="";
			document.getElementById("depa_hodina").disabled="";
			document.getElementById("depa_minuta").disabled="";
	    }
		
	    if ((howmuch > 0) && (howmuch < 50)) {
	    if (howmuch > 0 && howmuch < 5) {
				numc1 = 1;
			}
			else if ((howmuch > 4) && (howmuch < 9)) {
			    numc2 = 1;
			}
		
	       else if ((howmuch > 8) && (howmuch < 13)) {
                numc3 = 2;
	     	}
		
	   	   else if ((howmuch > 12) && (howmuch < 17)) {
			    numc4 = 2;
		    }
	       else if ((howmuch > 16) && (howmuch < 21)) {
		        numc5 = 1;

	    	}
	       else if ((howmuch > 20) && (howmuch < 29)) {
		     	numc6 = 2;	
	    	}
			
	else if ((howmuch > 28) && (howmuch < 50)) {
			    numc7 = 1;

						
		}
		}
            numcars = numc1 + numc2 + numc3 + numc4 + numc5 + numc6 + numc7;
	    
 
	    curdoc.pocetaut.value = numcars;
	    
		
		celkovaCena();
		
	}
	
