Dew_Point = document.getElementById('Dew_Point'); Dew_Point.hint = "Radiosonde data reports how much the Dew Point is below the temperature"; Pressure_UImcSpinEdit.Hint = mcGetHint_mbar(Pressure_UImcSpinEdit.value); 
function mcGetHint_km(distance_km) { // return a hint string  used for fields where only one value is shown // conversion factors from google var str = round_2(distance_km) + ' km ' + round_2(distance_km * 3280.84) + ' ft ' + round_2(distance_km * 0.621371) + ' miles'; return str; } function mcGetHint_mbar(Pressure_mbar) { // return a hint string  used for fields where only one value is shown // conversion factors from google // 0.750061683 torr google // 0.75006375541921 Torr www.unitjuggler.com // 0.750061673821 torr www.convertunits.com // 14.695 948 775 5134 psi = 1 atm wikipedia // 14.50377 psi = 1 bar var str = round_2(Pressure_mbar) + ' mbar (hPa) ' + round_2(Pressure_mbar * 0.750061683) + ' torr (mmHg) ' + round_2(Pressure_mbar * 0.01450377) + ' psi'; return str; } function round_2(x){ return Math.round(x* 100)/100; } 
This is an example.
5 km 16404.2 ft 3.11 miles 
// if an input field is disabled, then its onmouseover will not be called // this routine fixes that window.onload = function() { UIHints = document.getElementById('UIHints'); } function mcShowHint(UIPart) { if (UIPart.Hint !== undefined){UIHints.value = UIPart.Hint;} else if (UIPart.hint !== undefined){UIHints.value = UIPart.hint;} else UIHints.value = ''; } 

