function calcula(){
	var valueCentimeter = document.Calculo.Centimetros.value;
	var valueMonth = document.Calculo.Meses.value;
	var valueLenght;
	var valueTotalLenght;
	valueMonth = valueMonth * 1;
	valueMonth +="";
	valueCentimeter = valueCentimeter * 1;
	valueLenght = -0.327 + (0.562 * valueMonth);
	valueTotalLenght = valueCentimeter + valueLenght;
	valueTotalLenght +="";
	var calculo1=Math.round(valueTotalLenght*100)/100;
	calculo1 +="";
  var calculo2=Math.round(valueLenght*100)/100;
  calculo2 +="";

  texto ='<center><form action="" name="resultados"><center>';

  texto = texto + '<span class="calcule">Ihr Penis vergr&ouml;ssert sich um<br>';
  texto = texto + calculo2;
	texto = texto + ' cms in ';
	texto = texto + valueMonth;
	texto = texto + ' Monaten</span></center>';
	texto = texto + '</form>';
	texto = texto + '<br><input class="cajas2" onClick="javascript:newCalculo()" value="Nochmals berechnen" type="button">';
	texto = texto + '</center>';
	
	document.getElementById('CapaCalculo').innerHTML="";
	document.getElementById('CapaCalculo').innerHTML=texto;
	
	

}

function newCalculo(){
	
	texto = '<form name="Calculo" action="" method="get">';
	texto = texto + '<input name="Centimeter" value="" type="hidden">';
	texto = texto + '<input name="Month" value="" type="hidden">';
	texto = texto + '<input name="TotalLenght" value="" type="hidden">';
	texto = texto + '<input name="Estimated" value="" type="hidden">';
	texto = texto + '<center><span class="calcule">L&auml;nge steif:</span>';
	texto = texto + '<select name="Centimetros" class="combos">';
	texto = texto + '<option value="6">6 cm</option>';
  texto = texto + '  <option value="7">7 cm</option>';
	texto = texto + '	<option value="8">8 cm</option>';
	texto = texto + '	<option value="9">9 cm</option>';
	texto = texto + '	<option value="10">10 cm</option>';
	texto = texto + '	<option value="11">11 cm</option>';
	texto = texto + '	<option value="12">12 cm</option>';
	texto = texto + '  <option value="13">13 cm</option>';
	texto = texto + '	<option value="14">14 cm</option>';
  texto = texto + '  <option value="15">15 cm</option>';
  texto = texto + '  <option value="16">16 cm</option>';
	texto = texto + '	<option value="17">17 cm</option>';
	texto = texto + '	<option value="18">18 cm</option>';
	texto = texto + '	<option value="19">19 cm</option>		';			                    
  texto = texto + '  <option value="20">20 cm</option>	';				                     
  texto = texto + ' </select><br>						     ';             
  texto = texto + '  <span class="calcule">Anwendungsdauer:</span>	';					                  
  texto = texto + '  <select name="Meses" class="combos">				';		                   
  texto = texto + '   <option value="2" selected>2 Monate</option>		';				                   
  texto = texto + '   <option value="3">3 Monate</option>  	';					                   
  texto = texto + '  <option value="4">4 Monate</option>		';				                   
  texto = texto + '  <option value="5">5 Monate</option>		';				                   
  texto = texto + '   <option value="6">6 Monate</option>	';				            						                   
  texto = texto + '   <option value="7">7 Monate</option>	';					                   
  texto = texto + '   <option value="8">8 Monate</option>	';					                   
  texto = texto + '   <option value="9">9 Monate</option>		';				                   
  texto = texto + '   <option value="10">10 Monate</option>	';					                   
  texto = texto + '   <option value="11">11 Monate</option>	';					                   
  texto = texto + '   <option value="12">12 Monate</option>	';				                    
  texto = texto + '   </select>		';	                        
  texto = texto + '   </p>	';					                  
  texto = texto + '   <p>	';					                  
  texto = texto + '   <input class="cajas2" onClick="calcula()" value="Berechnen " type="button">';			                        
  texto = texto + '   </p>';                          
  texto = texto + '   </center></form>';
	document.getElementById('CapaCalculo').innerHTML="";
	document.getElementById('CapaCalculo').innerHTML=texto;

}

