")
msgWindow.document.write("W. P. Long. = | ")
msgWindow.document.write(Math.abs(count))
msgWindow.document.write(" | ")
if (count < 0)
{msgWindow.document.write(" W | ")}
if (count > 0)
{msgWindow.document.write(" E | ")}
if (count == 0)
{msgWindow.document.write(" | ")}
msgWindow.document.write(" - W. P. Lat. = | ")
wplon = count
if (wplon < 0)
{wplon = wplon + 360}
wprlon = wplon*Math.PI/180
z = wprlon - x
if (z < 0)
{ z = z + (2*Math.PI)}
wprlat = Math.atan(Math.sin(z)*k)
wplat = wprlat*180/Math.PI
wpalat = Math.abs(wplat)
wpsign = 0
if (wplat != 0)
{wpsign = wplat/wpalat}
wpdeg = Math.floor(wpalat)
wpmin = (wpalat-wpdeg)*60
wpmin = Math.floor(wpmin*1000)
wpmin = wpmin/1000
wpdeg = wpdeg
msgWindow.document.write(wpdeg)
msgWindow.document.write(" - ")
msgWindow.document.write(wpmin)
msgWindow.document.write(" ' ")
if (wpsign < 0)
{msgWindow.document.write(" S | ")}
if (wpsign == 0)
{msgWindow.document.write(" ")}
if (wpsign > 0)
{msgWindow.document.write(" N ")}
msgWindow.document.writeln("
")
count = count + 5
}
msgWindow.document.write("