function loadValues(){
	
	calcCO2('auto');
	calcCO2('shortPlane');
	calcCO2('longPlane');
	calcCO2('oil');
	
}

function calcCO2(formName){
	
	var q = parseFloat(document.forms[formName].elements['q'].value);
	var co2perOne = document.forms[formName].elements['co2perOne'].value;


	if(q>0){

		var co2kg = q*co2perOne;
		var cost = co2kg*0.1; /* 0.1 = 100 CHF pro Kilo*/
		
		document.getElementById(formName+"_trees").innerHTML = Math.round(co2kg*1)/10+" ";
		document.getElementById(formName+"_costs").innerHTML = Math.round(cost*10)/10+" ";
		/* document.getElementById(formName+"_costs").innerHTML = Math.round(cost*25)/10+" "; */

	}
	else{

		document.getElementById(formName+"_trees").innerHTML = "__ ";
		document.getElementById(formName+"_costs").innerHTML = "__ ";
	}

}