<%@ EnableSessionState=false Language=JavaScript %> <% check_cookie(); var server_date; server_date = new Date(); local_date = new Date(server_date.getTime() + (Number(Request.Cookies("UserData")("Timezone")) * 60*60*1000)); this_year = local_date.getUTCFullYear(); this_month = local_date.getUTCMonth() + 1; today = local_date.getUTCDate(); now_hr = local_date.getUTCHours(); now_min = local_date.getUTCMinutes() + 1; if ((isFinite(Request.Form("Lat")) == true) && (Request.Form("Lat") >= -65) && (Request.Form("Lat") <= 65)) { chart_lat = Request.Form("Lat"); } else { chart_lat = (Number(Request.Cookies("UserData")("Latitude"))); } if ((isFinite(Request.Form("Mon")) == true) && (Request.Form("Mon") > 0) && (Request.Form("Mon") <= 12)) { chart_month = Request.Form("Mon"); } else { chart_month = this_month; } if ((isFinite(Request.Form("Day")) == true) && (Request.Form("Day") > 0) && (Request.Form("Day") <= 31)) { chart_day = Request.Form("Day"); } else { chart_day = today; } if ((isFinite(Request.Form("Hr")) == true) && (Request.Form("Hr") >= -5) && (Request.Form("Hr") <= 4)) { chart_hr = Request.Form("Hr"); } else { chart_hr = -4; } // default to 8PM if (chart_lat > 60) { latcode = "p65"; } else if (chart_lat > 50) { latcode = "p55"; } else if (chart_lat > 40) { latcode = "p45"; } else if (chart_lat > 30) { latcode = "p35"; } else if (chart_lat > 20) { latcode = "p25"; } else if (chart_lat > 10) { latcode = "p15"; } else if (chart_lat >= 0) { latcode = "p5"; } else if (chart_lat > -10) { latcode = "m5"; } else if (chart_lat > -20) { latcode = "m15"; } else if (chart_lat > -30) { latcode = "m25"; } else if (chart_lat > -40) { latcode = "m35"; } else if (chart_lat > -50) { latcode = "m45"; } else if (chart_lat > -60) { latcode = "m55"; } else { latcode = "m65"; } if ((chart_day > 0) && (chart_day <= 15)) { monthcode = (chart_month * 2) - 1; } else { monthcode = chart_month * 2; } monthcode = monthcode - 0; // force number chart_hr = chart_hr - 0; // ditto monthcode = monthcode + chart_hr; // correct for time while (monthcode < 1) { monthcode = monthcode + 24; } while (monthcode > 24) { monthcode = monthcode - 24; } monthcode += ''; // force string chartcode = monthcode + latcode; %> AstronomyDaily.com - All-Sky Chart <% insert_menu(0); %>
<% title_block("all-sky chart", "messier objects | the moon | the planets"); %>

 

              <% Response.write(" printer friendly version\n"); %>

<% Response.write("chart " + chartcode + "\n"); %>

chart generated with SkyChart III
<% insert_footer(); %>