
Immagine tratta da Wikipedia
Distance to the Horizon
!-- // Hide script from non-supportive browsers
function compute(obj)
{
val = obj.height.value;
val1= obj.height1.value;
val2= obj.height2.value;
//
obj.nautical.value = 2.04 * (Math.sqrt(val))
obj.statute.value = (2.04 * (Math.sqrt(val))*1.852)
...