0) return \'\'+val+\'\'; return \'(\'+label+\')\';}function sv(name,decorate){ var val = document.getElementById(name).options[document.getElementById(name).selectedIndex].value; if (decorate) return \'\'+val+\'\'; return val;}function updateReport(){ document.getElementById(\'report\').innerHTML=\'Oceanic Position Report\"\'+v(\'callsign\',\'Callsign\')+\' is position \'+v(\'position\',\'Position\')+\' at time \'+v(\'time\',\'Time\')+\', flight level \'+v(\'flightLevel\',\'Flight Level\')+\', estimating \'+v(\'next\',\'Next Position\')+\' at \'+v(\'nextETA\',\'Next Position ETA\')+\', \'+v(\'then\',\'Then\')+\' next\'+(document.getElementById(\'sectionMach\').checked?\'. Mach \'+v(\'machSpeed\',\'Mach Speed\')+\', groundspeed \'+v(\'groundSpeed\',\'Ground Speed\'):\'\')+(document.getElementById(\'sectionWx\').checked?\'. Temperature \'+v(\'temperature\',\'Temperature\')+\', wind \'+(document.getElementById(\'windSpeed\').value!=0?v(\'windDirection\',\'Wind Direction\')+\' degrees \'+v(\'windSpeed\',\'Wind Speed\')+\' knots\':\'calm\')+(sv(\'turbulence\')!=\'none\'?\', turbulence \'+sv(\'turbulence\',true):\'\')+(sv(\'icing\')!=\'none\'?\', icing \'+sv(\'icing\',true):\'\')+(sv(\'thunderstorms\')!=\'none\'?\', thunderstorms \'+sv(\'thunderstorms\',true):\'\'):\'\')+(/*document.getElementById(\'sectionSimRate\').checked&& */document.getElementById(\'simrate\').value!=\'1x\'?\'. Sim rate: \'+v(\'simrate\',\'Sim Rate\'):\'\')+\'.\"\';}updateReport(); ">