/*							var df=document.getElementById('calcForm');
							window.onload=function(){df.onsubmit=function() {return calculations();}}
*/
							
							//window.onload=function(){}

							function calculations() {
								var df=document.getElementById('calcForm');
								
                gt=parseFloat(df[0].value);
								tb=parseFloat(df[1].value);
								hr=parseFloat(df[2].value);
								rb=parseFloat(df[3].value);

								nm=gt*tb*hr*rb;
								dt=Math.round(nm);
								wt=Math.round(7*nm);
								mt=Math.round(30*nm);
                if (isNaN(dt)) {
                  document.getElementById('daydiv').innerHTML = 'Je potrebné vybrať zo ';
                  document.getElementById('weekdiv').innerHTML = 'zoznamu stávky, počet stolov, ';
                  document.getElementById('monthdiv').innerHTML='počet hodín a percento';
                }
                else {
  								document.getElementById('daydiv').innerHTML='Denný rakeback: <span><b>$'+ dt+'</b><\/span>';
  								document.getElementById('weekdiv').innerHTML='Týždenný rakeback: <span><b>$'+ wt+'</b><\/span>';
  								document.getElementById('monthdiv').innerHTML='Mesačný rakeback: <span><b>$'+ mt+'</b><\/span>';
                }
								return false;
							}
