function tipicalc() {
   var d = document.calc.d.value;
   document.calc.l.value = Math.round(Math.pow(d*d-(d/2)*(d/2),0.5));
   document.calc.A.value = format((d/100)*(d/100)*3.141/2);
   //document.calc.Ad.value = 2*d/100+" x "+d/100;
   document.calc.npoles.value = Math.round(((document.calc.d.value/100*3.141/2/.67)-0)/2)*2;
   var l; var lw = document.calc.wlane.value; var off = 0; var tot = 0; var out = "";
   for(l=1; (l-1)*lw<document.calc.d.value; l++) {
      var b = (l-1)*lw;
      w = Math.sqrt(d*d-b*b)*2;
      w = format(w/100);
      tot += w;
      if(l>1) out += "\n";
      out = out+"Lane #"+l+" = "+w+" x "+format(lw/100)+" m";
   }
   document.calc.lanes.value = out;
   if((l-1)*lw!=d) {
      document.calc.laneslo.value = w+" x "+format(((l-1)*lw-d)/100);
   } else {
      document.calc.laneslo.value = "none";
   }
   document.calc.Alanestot.value = format(tot)+" x "+format(lw/100);

return;
}

function format(a) {
   return Math.round(a*100)/100;
}

