<html> <SCRIPT src="astro_calc.js"></SCRIPT> <SCRIPT src="planetary/moon.js"></SCRIPT> <SCRIPT src="planetary/earth.js"></SCRIPT> <SCRIPT> var moon = new Moon(); var obj = moon.calcPosition(2011,12,01,9,00,00); alert( obj.y +" "+ obj.b ); var earth = new Earth(2011,12,01,9,00,00); var obj = earth.calcEclipticToEquatorial( moon.calcPosition(2011,12,01,9,00,00) ); alert( obj.a*RAD/15.0 +" "+ obj.d*RAD );
</SCRIPT> </html>