      var total; 
      var precio = 0.07;//0.09;
   
  function Calcular(){
      
      llam = document.foDatos.nrllam.value;
      min = document.foDatos.nrmin.value;
       total =llam*0.15+min*precio;
      document.getElementById('total').innerHTML = round(total, 2) + "€";
      document.getElementById('total2').innerHTML = round(total, 2) + "€";
      div = document.getElementById('totalsimul'); 
      div.style.display = '';   
 }   
  function round(number,X) {
    // rounds number to X decimal places, defaults to 2
    X = (!X ? 2 : X);
    return Math.round(number*Math.pow(10,X))/Math.pow(10,X);
  }    
          


/*function mostrardiv() {

div = document.getElementById('totalsimul');

div.style.display = '';
document.getElementById('total').innerHtml = total;
}
 */
  function cerrar() {

    div = document.getElementById('totalsimul');
    div.style.display='none';
  }



          
          
          
          
          
          
          
        
