<html> <SCRIPT src="../Calendar/Calendar.js"></SCRIPT> <SCRIPT src="../Calendar/GregorianCalendar.js"></SCRIPT> <SCRIPT src="../Coordinates/Coordinates.js"></SCRIPT> <SCRIPT src="../Coordinates/EclipticCoordinates.js"></SCRIPT> <SCRIPT src="../Coordinates/EquatorialCoordinates.js"></SCRIPT> <SCRIPT src="Planet.js"></SCRIPT> <SCRIPT src="Moon.js"></SCRIPT> <SCRIPT src="Earth.js"></SCRIPT> <SCRIPT src="Sun.js"></SCRIPT>

<SCRIPT> //var moon = new Moon(2011,12,01,0,00,00); //var obj = moon.calcPosition(); //alert( EclipticCoordinates.toString(obj.y) +" "+ EclipticCoordinates.toString(obj.b) ); //var obj = Earth.calcEclipticToEquatorial( obj, moon.getMjd() ); //alert( EquatorialCoordinates.toRAString(obj.a) +" "+ EquatorialCoordinates.toDecString(obj.d) );

var sun = new Sun(2011,12,01,0,00,00); var obj = sun.calcPosition(); alert( obj.y ); alert( EclipticCoordinates.toString(obj.y) +" "+ EclipticCoordinates.toString(obj.b) ); var obj = Earth.calcEclipticToEquatorial( obj, sun.getMjd() ); alert( EquatorialCoordinates.toRAString(obj.a) +" "+ EquatorialCoordinates.toDecString(obj.d) );

</SCRIPT> </html>