ÿþ<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- saved from url=(0042)http://www.supersoftweb.com/panchanga1.htm --> <HTML lang=eng><HEAD> <link rel="icon" href="http://www.supersoftweb.com/images/SSIcon.ico" type="image/ico"> <link rel="shortcut icon" href="http://www.supersoftweb.com/images/SSIcon.ico" type="image/ico"> <link rel="stylesheet" type="text/css" href="Main1.css"> <TITLE>Supersoft Panchangam</TITLE> <META content="text/html; charset=windows-1252" http-equiv=Content-Type> <SCRIPT language=JavaScript type=text/javascript> var keepstatic=1 var menucolor="#F6D430" var menuhight="60" var submenuwidth=150 </SCRIPT> <SCRIPT language=JavaScript1.2 type=text/javascript> var bookmarkurl="" var bookmarktitle="" function addbookmark(){ if (document.all) window.external.AddFavorite(bookmarkurl,bookmarktitle) } </SCRIPT> <SCRIPT language=JavaScript1.2 src="Panchanga/calc.js" type=text/javascript> </SCRIPT> </HEAD> <BODY bgColor=#FFFFFF leftMargin=0 onload="timerONE=window.setTimeout('scroll(100)',500);preloadImages(); initFields(); calculate();" rightMargin=0 text=#000000 topMargin=0 marginheight="0" marginwidth="0"> <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"> <TBODY> <TR> <TD class=top colSpan=2 vAlign=top>&nbsp; </TD> </TR><!-- end gradient --> <script type="text/javascript"><!-- google_ad_client = "pub-9117780905118808"; /* 728x90, created 2/29/08 */ google_ad_slot = "1911807669"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-3777067-1"; urchinTracker(); </script> <TR> <br> <a href="http://www.SupersoftWeb.com"> <img border="0" src="images/headerP.gif" width="784" height="76"></a></TR> <TR> <TD class=left vAlign=top width=26>&nbsp; </TD> <TD width="712" vAlign=top> <TABLE border=0 cellPadding=0 cellSpacing=0> <TBODY> <TR> <TD width="711" vAlign=top> <CENTER> <TABLE> <TBODY> <TR> <TD width="691" vAlign=top> <CENTER> <TABLE> <TBODY> <TR> <TD height="742"> <TD vAlign=top> <CENTER> <TABLE> <TBODY> <TR> <TD> <P> <FONT color="#000000" size="3" face = "ThoolikaTraditionalUnicode">- B . ? / ? 2 F  0 A ( ? 6 M  ? $ 8 . / $ M $ ? ( M 8 B 0 M /  ( M & M 0 ( M . > 0 A  F 8 M % > ( $ M $ F   ? 8 M % > ( . >  M  ? - 0 $ @ /  K $ ? 7 * M 0  > 0   4 M  , $ ? % ? , (  M 7 $ M 0  , ( ? $ M / / K    0 #   ( M ( @ * G 0 A  3 ? 2 M   M  A 8 M 5 - > 5  M  3 M  2 M * ?  M  ? 0 ?  M  A ( M ( A .  5 *  M  >     ( M ( 1 ? / * M * F  A ( M ( A .</span></font></FONT></P> <FORM name=Form1><TABLE align=center bgColor=#f9f9f7 cellPadding=2 cellSpacing=2 style="BORDER-BOTTOM: #000000 2px solid; BORDER-LEFT: #000000 2px solid; BORDER-RIGHT: #000000 2px solid; BORDER-TOP: #000000 2px solid" width="100%"> <TBODY> <TR> <TD style="BORDER-BOTTOM: #000000 3px double; BORDER-LEFT: #000000 3px double; BORDER-RIGHT: #000000 3px double; BORDER-TOP: #000000 3px double; FILTER: progid:DXImageTransform.Microsoft.Gradient (GradientType=1,StartColorStr='#FFE8FF',EndColorStr='#fffff0')"> <TABLE align=center border=2 cellPadding=2 cellSpacing=2 width="100%"> <TBODY> <TR> <TD align=middle style="BACKGROUND-COLOR: #FFE8F0; BORDER-BOTTOM: #000000 3px double; BORDER-LEFT: #000000 3px double; BORDER-RIGHT: #000000 3px double; BORDER-TOP: #000000 3px double; FILTER: progid:DXImageTransform.Microsoft.Gradient (GradientType=0,StartColorStr='#FFE8F0',EndColorStr='#C3ABE9')" vAlign=top><FONT color=#008800 face=Algerian size=5> <DIV align=center> <TABLE bgColor=#10a8b8 border=2 cellPadding=2 cellSpacing=2 style="FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: small"> <TBODY> <TR> <TD style="BACKGROUND-COLOR: #FFE8FF; BORDER-BOTTOM: #000000 3px double; BORDER-LEFT: #000000 3px double; BORDER-RIGHT: #000000 3px double; BORDER-TOP: #000000 3px double; FILTER: progid:DXImageTransform.Microsoft.Gradient (GradientType=0,StartColorStr='#FFE8FF',EndColorStr='#C3ABE9')">$ @ / $ ? :&nbsp;&nbsp; <SELECT id=fld name=Day style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid"> <OPTION selected value=0>00</OPTION> <OPTION value=1>01</OPTION> <OPTION value=2>02</OPTION> <OPTION value=3>03</OPTION> <OPTION value=4>04</OPTION> <OPTION value=5>05</OPTION> <OPTION value=6>06</OPTION> <OPTION value=7>07</OPTION> <OPTION value=8>08</OPTION> <OPTION value=9>09</OPTION> <OPTION value=10>10</OPTION> <OPTION value=11>11</OPTION> <OPTION value=12>12</OPTION> <OPTION value=13>13</OPTION> <OPTION value=14>14</OPTION> <OPTION value=15>15</OPTION> <OPTION value=16>16</OPTION> <OPTION value=17>17</OPTION> <OPTION value=18>18</OPTION> <OPTION value=19>19</OPTION> <OPTION value=20>20</OPTION> <OPTION value=21>21</OPTION> <OPTION value=22>22</OPTION> <OPTION value=23>23</OPTION> <OPTION value=24>24</OPTION> <OPTION value=25>25</OPTION> <OPTION value=26>26</OPTION> <OPTION value=27>27</OPTION> <OPTION value=28>28</OPTION> <OPTION value=29>29</OPTION> <OPTION value=30>30</OPTION> <OPTION value=31>31</OPTION> </SELECT> <SELECT id=fld name=Month style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid"> <OPTION selected value=0>January</OPTION> <OPTION value=1>February</OPTION> <OPTION value=2>March</OPTION> <OPTION value=3>April</OPTION> <OPTION value=4>May</OPTION> <OPTION value=5>June</OPTION> <OPTION value=6>July</OPTION> <OPTION value=7>August</OPTION> <OPTION value=8>September</OPTION> <OPTION value=9>October</OPTION> <OPTION value=10>November</OPTION> <OPTION value=11>December</OPTION> </SELECT> <INPUT id=fld maxLength=4 name=Year size=4 style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid" value=2004> </TD> </TR> <TR> <TD style="BACKGROUND-COLOR: #FFE8FF; BORDER-BOTTOM: #000000 1px double; BORDER-LEFT: #000000 1px double; BORDER-RIGHT: #000000 1px double; BORDER-TOP: #000000 1px double; FILTER: progid:DXImageTransform.Microsoft.Gradient (GradientType=0,StartColorStr='#FFE8FF',EndColorStr='#C3ABE9')">8 . /  :&nbsp;&nbsp; <INPUT id=fld maxLength=2 name=Hour size=2 style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid" value=0> : <INPUT id=fld maxLength=2 name=Min size=2 style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid" value=0> Time Zone:&nbsp;&nbsp; <INPUT id=fld maxLength=2 name=ZoneHour size=2 style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid" value=0> : <INPUT id=fld maxLength=2 name=ZoneMin size=2 style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid" value=0></TD> </TR> <TR> <TD align=middle bgColor=#ffff99><INPUT name=Calcform1 onclick=calculate() style="BACKGROUND-COLOR: #FFE8FF; BORDER-BOTTOM: #000000 3px double; BORDER-LEFT: #000000 3px double; BORDER-RIGHT: #000000 3px double; BORDER-TOP: #000000 3px double; FILTER: progid:DXImageTransform.Microsoft.Gradient (GradientType=0,StartColorStr='#FFE8FF',EndColorStr='#C3ABE9')" type=button value="<<-*  M  >     # ?  M  > 2 A  ->>" colour="#99ccff"></TD> </TR> </TBODY> </TABLE> </DIV> </FONT></FONT></TD> </TR> </TBODY> </TABLE> </FORM> <CENTER> </CENTER> <DIV align=justify id=supersoftweb><FONT color=#0000fe face="sans-serif, serif">Please, wait...</FONT></FONT></DIV></TD> </TR> </TBODY> </TABLE></TD></TR></TBODY></TABLE> <TABLE width=500> <TBODY> <TR> <TD align=middle></SCRIPT></TD></TR></TBODY></TABLE></CENTER></TD></TR></TBODY></TABLE></CENTER></TD></TR></TBODY></TABLE> </TD> <SCRIPT language=JavaScript> <!-- // globals d2r = Math.PI/180; r2d = 180/Math.PI; var month = [" ( A 5 0 ? ","+ F , M 0 A 5 0 ? ",". > 0 M  M  A ","  * M 0 2 M ",". F / M "," B # M "," B 2 H ","  8 M 1 1 M ","8 F * M $  , 0 M ","  M  J , F 0 M ","( 5  , 0 M ","! ? 8  , 0 M "]; var zn = [" . G   0 > 6 ? / ? 2 M ","  5  0 > 6 ? / ? 2 M "," . ? % A (  0 > 6 ? / ? 2 M "," 0 M  M  ?    0 > 6 ? / ? 2 M "," ?  M   0 > 6 ? / ? 2 M "," ( M ( ? 0 > 6 ? / ? 2 M "," $ A 2 >  0 > 6 ? / ? 2 M "," 5 C 6 M  ?   0 > 6 ? / ? 2 M ","' ( A 0 > 6 ? / ? 2 M ",".  0  0 > 6 ? / ? 2 M "," A  -  0 > 6 ? / ? 2 M ",". @ (  0 > 6 ? / ? 2 M "]; var wd = " > / 0 M $ ?  M  3 M  J 5 M 5 , A ' ( M 5 M / 4  5 F 3 M 3 ? 6 ( ? "; var range = [1,31,0,0,-3000,4000,0,23,0,59,-12,12,0,59]; var naks = [" 6 M 5 $ ? ","- 0 # ? "," > 0 M $ M $ ?  ","0 K 9 ? # ? ",".  / ? 0  ","$ ? 0 A 5 > $ ? 0 ","* A # 0 M $  ","* B /  "," / ? 2 M 2 M /  ",".   ","* B 0  "," $ M 0  "," $ M $  "," ? $ M $ ? 0 "," K $ ? ","5 ? 6 >   "," ( ? 4  "," G  M  ",". B 2  ","* B 0 >   "," $ M 0 >   ","$ ? 0 A 5 K #  "," 5 ?  M   "," $ /  ","* B 0 A 0 A  M  > $ ? "," $ M 0  M  > $ ? ","0 G 5 $ ? "]; var tith = ["* M 0 % . -6 A  M 3 *  M 7  ","& M 5 $ @ / -6 A  M 3 *  M 7  ","$ C $ @ / -6 A  M 3 *  M 7  "," $ A 0 M $ M % ? -6 A  M 3 *  M 7  ","*  M  . ? -6 A  M 3 *  M 7  ","7 7 M ? -6 A  M 3 *  M 7  ","8 * M $ . ? -6 A  M 3 *  M 7  "," 7 M  . ? -6 A  M 3 *  M 7  ","( 5 . ? -6 A  M 3 *  M 7  ","& 6 . ? -6 A  M 3 *  M 7  ","  > & 6 ? -6 A  M 3 *  M 7  ","& M 5 > & 6 ? -6 A  M 3 *  M 7  ","$ M 0 / K & 6 ? -6 A  M 3 *  M 7  "," $ A 0 M & M & 6 ? -6 A  M 3 *  M 7  ","* L 0 M # . ? ","* M 0 % . - C 7 M # *  M 7  ","& M 5 $ @ / - C 7 M # *  M 7  ","$ C $ @ / - C 7 M # *  M 7  "," $ A 0 M $ M % ? - C 7 M # *  M 7  ","*  M  . ? - C 7 M # *  M 7  ","7 7 M ? - C 7 M # *  M 7  ","8 * M $ . ? - C 7 M # *  M 7  "," 7 M  . ? - C 7 M # *  M 7  ","( 5 . ? - C 7 M # *  M 7  ","& 6 . ? - C 7 M # *  M 7  ","  > & 6 ? - C 7 M # *  M 7  ","& M 5 > & 6 ? - C 7 M # *  M 7  ","$ M 0 / K & 6 ? - C 7 M # *  M 7  "," $ A 0 M & M & 6 ? - C 7 M # *  M 7  "," . > 5 > 8 ? "]; var kar = ["8 ?  9  ","* A 2 ? ","5 0 > 9  "," 0 M & -  "," ( ","* 6 A ","5 ? 7 M  ? ","* A 3 3 M ","( > 2 M  M  > 2 ? ","( >   ","* A 4 A "]; var yog = ["5 ? 7 M   - / K   ","* M 0 @ % ? / K   "," / A 7 M . > & M / K   ","8 W - >  M / / K   ","6 K - ( / K   "," $ ?  # M ! / K   ","8 A  0 M . M . > / K   ","' C $ ? / K   ","6 A 2 / K   "," # M ! / K   ","5 C & M ' ? / K   ","' M 0 A 5 / K   ","5 M / >  > $ / K   ","9 0 M 7 # / K   ","5  M 0 / K   ","8 ? & M ' ? / K   ","5 M / $ @ * > $ / K   ","5 0 ? / > ( M / K   ","* 0 ?  / K   ","6 ? 5 / K   ","8 ? & M ' / K   ","8 > & M ' M / / K   ","6 A - / K   ","6 A - M 0 / K   ",", M 0 9 M . / K   ",". 9 G ( M & M 0 / K   ","5 H ' C $ ? / K   "]; var tipnaks = [2,5,6,0,1,4,3,2,4,5,5,0,2,1,3,6,1,4,4,5,0,3,3,3,5,0,1]; var Lmoon,Lmoon1, Lsun, skar, LmoonYoga, LsunYoga; var ayanamsa = 0; var n_wday, n_tithi, n_naksh, n_karana, n_yoga, panch, inpdate; var s_wday, s_tithi, s_naksh, s_karana, s_yoga; n_naksh=1, n_tithi=1; //----------------------------------------------------- // Check of the entered values //----------------------------------------------------- function checkEntries(f){ var d = Math.floor(document.forms[0].Day.selectedIndex); var m = Math.floor(document.forms[0].Month.selectedIndex); var y = Math.floor(document.forms[0].Year.value); for(i = 0; i < 7; i++){ var e = f.elements[i]; if((e.name == "Day") && (isNaN(d) || (d < 1) || (d > daysInMonth(m,y)))) { msg = "Please enter value between 1 and " + daysInMonth(m,y) + " in the Day field"; alert(msg); return true; } if(e.name == "Month")continue; if(isNaN(e.value) || (e.value < range[i*2] ) || ( e.value > range[i*2+1])){ msg = "Please enter value between " + range[i*2] + " and " + range[i*2+1] + " in the " + e.name + " field"; alert(msg); return true; } } return false; } function daysInMonth(m,y) { var g_days = new Array(31,28,31,30,31,30,31,31,30,31,30,31); if (((y % 4 == 0) && (y % 100 != 0)) || (y % 400 == 0)) g_days[1] = 29; return g_days[m]; } //-------------------------------------------------------------- // Insert of current time in the form //-------------------------------------------------------------- function initFields() { var d = new Date(); document.forms[0].Year.value = d.getFullYear(); document.forms[0].Day.selectedIndex = d.getDate(); document.forms[0].Month.selectedIndex = d.getMonth(); document.forms[0].Hour.value = d.getHours(); document.forms[0].Min.value = d.getMinutes(); var zmins = d.getTimezoneOffset(); var zsign = -1; zmins /= 60; if(zmins < 0.0)zsign = 1; zmins = Math.abs(zmins); document.forms[0].ZoneHour.value = Math.floor(zmins) * zsign; document.forms[0].ZoneMin.value = (zmins - Math.floor(zmins)) * 60; } //--------------------------------------------------------------------------- // Nakshatras data. //--------------------------------------------------------------------------- function naksdata(nname, hara, color) { this.nname = nname; this.hara = hara; this.color = color; } var naks = new Array(); var i = 0; // name ,character ,color naks[i++] = new naksdata(" 6 M 5 $ ? " ,"light" ,"#00CCFF"); naks[i++] = new naksdata("- 0 # ? " ,"awful" ,"#7D2000"); naks[i++] = new naksdata(" > 0 M $ M $ ?  " ,"mixed" ,"#CC00FF"); naks[i++] = new naksdata("0 K 9 ? # ? " ,"fixed" ,"#0000FF"); naks[i++] = new naksdata(".  / ? 0  " ,"soft" ,"#11AC0D"); naks[i++] = new naksdata("$ ? 0 A 5 > $ ? 0 " ,"sharp" ,"#FF0000"); naks[i++] = new naksdata("* A # 0 M $  " ,"mobile" ,"#FF9900"); naks[i++] = new naksdata("* B /  " ,"light" ,"#00CCFF"); naks[i++] = new naksdata(" / ? 2 M 2 M /  " ,"sharp" ,"#FF0000"); naks[i++] = new naksdata(".   " ,"awful" ,"#7D2000"); naks[i++] = new naksdata("* B 0  " ,"awful" ,"#7D2000"); naks[i++] = new naksdata(" $ M 0  " ,"fixed" ,"#0000FF"); naks[i++] = new naksdata(" $ M $  " ,"light" ,"#00CCFF"); naks[i++] = new naksdata(" ? $ M $ ? 0 " ,"soft" ,"#11AC0D"); naks[i++] = new naksdata(" K $ ? " ,"mobile" ,"#FF9900"); naks[i++] = new naksdata("5 ? 6 >   " ,"mixed" ,"#CC00FF"); naks[i++] = new naksdata(" ( ? 4  " ,"soft" ,"#11AC0D"); naks[i++] = new naksdata(" G  M  " ,"sharp" ,"#FF0000"); naks[i++] = new naksdata(". B 2  " ,"sharp" ,"#FF0000"); naks[i++] = new naksdata("* B 0 >   " ,"awful" ,"#7D2000"); naks[i++] = new naksdata(" $ M 0 >   " ,"fixed" ,"#0000FF"); naks[i++] = new naksdata("$ ? 0 A 5 K #  " ,"mobile" ,"#FF9900"); naks[i++] = new naksdata(" 5 ?  M   " ,"mobile" ,"#FF9900"); naks[i++] = new naksdata(" $ /  " ,"mobile" ,"#FF9900"); naks[i++] = new naksdata("* B 0 A 0 A  M  > $ ? " ,"awful" ,"#663300"); naks[i++] = new naksdata(" $ M 0  M  > $ ? " ,"fixed" ,"#0000FF"); naks[i++] = new naksdata("0 G 5 $ ? " ,"soft" ,"#11AC0D"); //--------------------------------------------------------------------------- // Correction terms for Moon //--------------------------------------------------------------------------- function corr(mlcor, mscor, fcor, dcor, lcor) { this.mlcor = mlcor; this.mscor = mscor; this.fcor = fcor; this.dcor = dcor; this.lcor = lcor; } function corr2(l, ml, ms, f, d) { this.l = l; this.ml = ml; this.ms = ms; this.f = f; this.d = d; } var corrMoon = new Array(); // main correction terms i = 0; // ml, ms, f, d, l corrMoon[i++] = new corr( 0, 0, 0, 4, 13.902); corrMoon[i++] = new corr( 0, 0, 0, 2, 2369.912); corrMoon[i++] = new corr( 1, 0, 0, 4, 1.979); corrMoon[i++] = new corr( 1, 0, 0, 2, 191.953); corrMoon[i++] = new corr( 1, 0, 0, 0, 22639.500); corrMoon[i++] = new corr( 1, 0, 0, -2, -4586.465); corrMoon[i++] = new corr( 1, 0, 0, -4, -38.428); corrMoon[i++] = new corr( 1, 0, 0, -6, -0.393); corrMoon[i++] = new corr( 0, 1, 0, 4, -0.289); corrMoon[i++] = new corr( 0, 1, 0, 2, -24.420); corrMoon[i++] = new corr( 0, 1, 0, 0, -668.146); corrMoon[i++] = new corr( 0, 1, 0, -2, -165.145); corrMoon[i++] = new corr( 0, 1, 0, -4, -1.877); corrMoon[i++] = new corr( 0, 0, 0, 3, 0.403); corrMoon[i++] = new corr( 0, 0, 0, 1, -125.154); corrMoon[i++] = new corr( 2, 0, 0, 4, 0.213); corrMoon[i++] = new corr( 2, 0, 0, 2, 14.387); corrMoon[i++] = new corr( 2, 0, 0, 0, 769.016); corrMoon[i++] = new corr( 2, 0, 0, -2, -211.656); corrMoon[i++] = new corr( 2, 0, 0, -4, -30.773); corrMoon[i++] = new corr( 2, 0, 0, -6, -0.570); corrMoon[i++] = new corr( 1, 1, 0, 2, -2.921); corrMoon[i++] = new corr( 1, 1, 0, 0, -109.673); corrMoon[i++] = new corr( 1, 1, 0, -2, -205.962); corrMoon[i++] = new corr( 1, 1, 0, -4, -4.391); corrMoon[i++] = new corr( 1, -1, 0, 4, 0.283); corrMoon[i++] = new corr( 1, -1, 0, 2, 14.577); corrMoon[i++] = new corr( 1, -1, 0, 0, 147.687); corrMoon[i++] = new corr( 1, -1, 0, -2, 28.475); corrMoon[i++] = new corr( 1, -1, 0, -4, 0.636); corrMoon[i++] = new corr( 0, 2, 0, 2, -0.189); corrMoon[i++] = new corr( 0, 2, 0, 0, -7.486); corrMoon[i++] = new corr( 0, 2, 0, -2, -8.096); corrMoon[i++] = new corr( 0, 0, 2, 2, -5.741); corrMoon[i++] = new corr( 0, 0, 2, 0, -411.608); corrMoon[i++] = new corr( 0, 0, 2, -2, -55.173); corrMoon[i++] = new corr( 0, 0, 2, -4, 0.025); corrMoon[i++] = new corr( 1, 0, 0, 1, -8.466); corrMoon[i++] = new corr( 1, 0, 0, -1, 18.609); corrMoon[i++] = new corr( 1, 0, 0, -3, 3.215); corrMoon[i++] = new corr( 0, 1, 0, 1, 18.023); corrMoon[i++] = new corr( 0, 1, 0, -1, 0.560); corrMoon[i++] = new corr( 3, 0, 0, 2, 1.060); corrMoon[i++] = new corr( 3, 0, 0, 0, 36.124); corrMoon[i++] = new corr( 3, 0, 0, -2, -13.193); corrMoon[i++] = new corr( 3, 0, 0, -4, -1.187); corrMoon[i++] = new corr( 3, 0, 0, -6, -0.293); corrMoon[i++] = new corr( 2, 1, 0, 2, -0.290); corrMoon[i++] = new corr( 2, 1, 0, 0, -7.649); corrMoon[i++] = new corr( 2, 1, 0, -2, -8.627); corrMoon[i++] = new corr( 2, 1, 0, -4, -2.740); corrMoon[i++] = new corr( 2, -1, 0, 2, 1.181); corrMoon[i++] = new corr( 2, -1, 0, 0, 9.703); corrMoon[i++] = new corr( 2, -1, 0, -2, -2.494); corrMoon[i++] = new corr( 2, -1, 0, -4, 0.360); corrMoon[i++] = new corr( 1, 2, 0, 0, -1.167); corrMoon[i++] = new corr( 1, 2, 0, -2, -7.412); corrMoon[i++] = new corr( 1, 2, 0, -4, -0.311); corrMoon[i++] = new corr( 1, -2, 0, 2, 0.757); corrMoon[i++] = new corr( 1, -2, 0, 0, 2.580); corrMoon[i++] = new corr( 1, -2, 0, -2, 2.533); corrMoon[i++] = new corr( 0, 3, 0, -2, -0.344); corrMoon[i++] = new corr( 1, 0, 2, 2, -0.992); corrMoon[i++] = new corr( 1, 0, 2, 0, -45.099); corrMoon[i++] = new corr( 1, 0, 2, -2, -0.179); corrMoon[i++] = new corr( 1, 0, -2, 2, -6.382); corrMoon[i++] = new corr( 1, 0, -2, 0, 39.528); corrMoon[i++] = new corr( 1, 0, -2, -2, 9.366); corrMoon[i++] = new corr( 0, 1, 2, 0, 0.415); corrMoon[i++] = new corr( 0, 1, 2, -2, -2.152); corrMoon[i++] = new corr( 0, 1, -2, 2, -1.440); corrMoon[i++] = new corr( 0, 1, -2, -2, 0.384); corrMoon[i++] = new corr( 2, 0, 0, 1, -0.586); corrMoon[i++] = new corr( 2, 0, 0, -1, 1.750); corrMoon[i++] = new corr( 2, 0, 0, -3, 1.225); corrMoon[i++] = new corr( 1, 1, 0, 1, 1.267); corrMoon[i++] = new corr( 1, -1, 0, -1, -1.089); corrMoon[i++] = new corr( 0, 0, 2, -1, 0.584); corrMoon[i++] = new corr( 4, 0, 0, 0, 1.938); corrMoon[i++] = new corr( 4, 0, 0, -2, -0.952); corrMoon[i++] = new corr( 3, 1, 0, 0, -0.551); corrMoon[i++] = new corr( 3, 1, 0, -2, -0.482); corrMoon[i++] = new corr( 3, -1, 0, 0, 0.681); corrMoon[i++] = new corr( 2, 0, 2, 0, -3.996); corrMoon[i++] = new corr( 2, 0, 2, -2, 0.557); corrMoon[i++] = new corr( 2, 0, -2, 2, -0.459); corrMoon[i++] = new corr( 2, 0, -2, 0, -1.298); corrMoon[i++] = new corr( 2, 0, -2, -2, 0.538); corrMoon[i++] = new corr( 1, 1, -2, -2, 0.426); corrMoon[i++] = new corr( 1, -1, 2, 0, -0.304); corrMoon[i++] = new corr( 1, -1, -2, 2, -0.372); corrMoon[i++] = new corr( 0, 0, 4, 0, 0.418); corrMoon[i++] = new corr( 2, -1, 0, -1, -0.352); var corrMoon2 = new Array(); // moon additional correction terms i = 0; // l, ml, ms, f, d corrMoon2[i++] = new corr2( 0.127, 0, 0, 0, 6); corrMoon2[i++] = new corr2(-0.151, 0, 2, 0, -4); corrMoon2[i++] = new corr2(-0.085, 0, 0, 2, 4); corrMoon2[i++] = new corr2( 0.150, 0, 1, 0, 3); corrMoon2[i++] = new corr2(-0.091, 2, 1, 0, -6); corrMoon2[i++] = new corr2(-0.103, 0, 3, 0, 0); corrMoon2[i++] = new corr2(-0.301, 1, 0, 2, -4); corrMoon2[i++] = new corr2( 0.202, 1, 0, -2, -4); corrMoon2[i++] = new corr2( 0.137, 1, 1, 0, -1); corrMoon2[i++] = new corr2( 0.233, 1, 1, 0, -3); corrMoon2[i++] = new corr2(-0.122, 1, -1, 0, 1); corrMoon2[i++] = new corr2(-0.276, 1, -1, 0, -3); corrMoon2[i++] = new corr2( 0.255, 0, 0, 2, 1); corrMoon2[i++] = new corr2( 0.254, 0, 0, 2, -3); corrMoon2[i++] = new corr2(-0.100, 3, 1, 0, -4); corrMoon2[i++] = new corr2(-0.183, 3, -1, 0, -2); corrMoon2[i++] = new corr2(-0.297, 2, 2, 0, -2); corrMoon2[i++] = new corr2(-0.161, 2, 2, 0, -4); corrMoon2[i++] = new corr2( 0.197, 2, -2, 0, 0); corrMoon2[i++] = new corr2( 0.254, 2, -2, 0, -2); corrMoon2[i++] = new corr2(-0.250, 1, 3, 0, -2); corrMoon2[i++] = new corr2(-0.123, 2, 0, 2, 2); corrMoon2[i++] = new corr2( 0.173, 2, 0, -2, -4); corrMoon2[i++] = new corr2( 0.263, 1, 1, 2, 0); corrMoon2[i++] = new corr2( 0.130, 3, 0, 0, -1); corrMoon2[i++] = new corr2( 0.113, 5, 0, 0, 0); corrMoon2[i++] = new corr2( 0.092, 3, 0, 2, -2); //----------------------------------------------------- // Main calculation //----------------------------------------------------- function calculate() { if(checkEntries(document.forms[0]))return; with(Math){ var day = floor(document.forms[0].Day.selectedIndex); var mon = floor(document.forms[0].Month.selectedIndex) +1; var year = floor(document.forms[0].Year.value); var hr = floor(document.forms[0].Hour.value); hr += floor(document.forms[0].Min.value)/60; var tzone = abs(floor(document.forms[0].ZoneHour.value)); tzone += floor(document.forms[0].ZoneMin.value)/60; } inpmin = Math.floor(document.forms[0].Min.value); if (inpmin < 10)inpmin = "0" + inpmin; inpdate = day + ' ' + month[mon-1] + ' ' + year + ' , <font color="#990000"><b>' + Math.floor(document.forms[0].Hour.value) + ':' + inpmin + '</b></font>' var kday,kmon,kyear,khr,kmin,ksek; if(Math.floor(document.forms[0].ZoneHour.value)<0.0) tzone *= -1; // Julian date on Local Time LT: dayhr = day + hr/24; jdlt = mdy2julian(mon,dayhr,year); // Weekday: n_wday = weekDay(jdlt); s_wday = wd.substr(n_wday*11,11); // Julian day by the beginning of day: jd0 = mdy2julian(mon,day,year); //jd0 = Math.floor(jdlt) + 0.5; //if (jdlt < jd0)jd0 -= 1; // Julian date on Universal Time UT: jdut = jd0 + (hr - tzone)/24; // Ephemeris correction: dt = dTime(jdut); // Julian date on Ephemeris Time ET: jd = jdut + dt/24; // Julian date by the beginning of day: //jd0 = Math.floor(jd) + 0.5; //if (jd < jd0)jd0 -= 1; // Time in Julian centuries from epoch 1900: //t = (jd - 2415020)/36525; // Time in Julian centuries from epoch 2000: //t = (jd - 2451545)/36525; // Ayanamsa: ayanamsa = calcayan(jd); // Ecliptic longitude of Moon: Lmoon = moon(jd); // Ecliptic longitude of Moon: Lmoon1 = moon(jd); // Ecliptic longitude of Sun: Lsun = sun(jd); // Yoga: dmoonYoga = (LmoonYoga + ayanamsa - 491143.07698973856); dsunYoga = (LsunYoga + ayanamsa - 36976.91240579201); zyoga = dmoonYoga + dsunYoga; n_yoga = zyoga*6/80; while(n_yoga < 0)n_yoga += 27; while(n_yoga > 27)n_yoga -= 27; n3=n_yoga; n_yoga = Math.floor(n_yoga); s_yoga = yoga(jd, zyoga, tzone); // Nakshatra: Lmoon0 = fix360(Lmoon + ayanamsa); n_naksh = Math.floor(Lmoon0*6/80); s_naksh = nakshatra(jd, n_naksh, tzone); // Tithi: Lmoon0 = Lmoon; Lsun0 = Lsun; if (Lmoon0 < Lsun0)Lmoon0 += 360; n_tithi = Math.floor((Lmoon0 - Lsun0)/12); s_tithi = tithi(jd, n_tithi, tzone, 12); // Karana: Lmoon0 = Lmoon; Lsun0 = Lsun; if (Lmoon0 < Lsun0)Lmoon0 += 360; nk = Math.floor((Lmoon0 - Lsun0)/6); if (nk == 0)n_karana = 10; if (nk >= 57)n_karana = nk - 50; if (nk > 0 && nk < 57)n_karana = (nk - 1) - (Math.floor((nk - 1)/7))*7; s_karana = tithi(jd, nk, tzone, 6); results(); } //----------------------------------------------------- // Nutation //----------------------------------------------------- function nutation(jd) { t = (jd - 2415020)/36525; t2 =t*t; ls = 279.6967 + 36000.7689*t + 0.000303*t2; l = 270.4341639 + 481267.8831417*t - 0.0011333333*t2; ms = 358.4758333333334 + 35999.04974999958*t - t2*1.500000059604645e-4; ml = 296.1046083333757 + 477198.8491083336*t + 0.0091916667090522*t2; d = 350.7374861110581 + 445267.1142166667*t - t2*1.436111132303874e-3; om = 259.1832750002543 - 1934.142008333206*t + .0020777778*t2; ls *= d2r; l *= d2r; ms *= d2r; ml *= d2r; d *= d2r; om *= d2r; d2 =d*d; l2 = l*l; ls2 = ls*ls; with(Math){ nut = (-17.2327 - 0.01737 * t) * sin(om); nut += 0.2088 * sin(2.0 * om); nut += 0.0675 * sin(ml); nut -= 0.0149 * sin(ml - d2); nut -= 0.0342 * sin(l2 - om); nut += 0.0114 * sin(l2 - ml); nut -= 0.2037 * sin(l2); nut -= 0.0261 * sin(l2 + ml); nut += 0.0124 * sin(ls2 - om); nut += 0.0214 * sin(ls2 - ms); nut -= 1.2729 * sin(ls2); nut -= 0.0497 * sin(ls2 + ms); nut += 0.1261 * sin(ms); nut = nut/3600.0; } return nut; } //----------------------------------------------------- // Ayanamsa (deg.) //----------------------------------------------------- function calcayan(jd) { t = (jd - 2415020)/36525; om = 259.183275 - 1934.142008333206 * t + 0.0020777778 * t * t + 0.0000022222222 * t * t * t; ls = 279.696678 + 36000.76892 * t + 0.0003025 * t * t; aya = 17.23 * Math.sin(d2r * om) + 1.27 * Math.sin(d2r * ls * 2) - (5025.64 + 1.11 * t) * t; aya = (aya - 80861.27)/3600.0; // 84038.27 = Fagan-Bradley, 80861.27 = Lahiri return aya; } //------------------------------------------------------------------------------------------ // Julian day from calendar day //------------------------------------------------------------------------------------------ function mdy2julian(m,d,y){ with(Math){ im = 12 * (y + 4800) + m - 3; j = (2 * (im - floor(im/12) * 12) + 7 + 365 * im)/12; j = floor(j) + d + floor(im/48) - 32083; if(j > 2299171)j += floor(im/4800) - floor(im/1200) + 38; j -=0.5; } return j; } //----------------------------------------------------------------------------------------- // Returns delta t (in julian days) from universal time (h.) //----------------------------------------------------------------------------------------- function dTime(jd) { // delta t from 1620 to 2010 (sec.): var efdt = [124,85,62,48,37,26,16,10,9,10,11,11,12,13,15,16,17,17,13.7,12.5,12,7.5,5.7,7.1,7.9,1.6,-5.4,-5.9,-2.7,10.5,21.2,24,24.3,29.2,33.2,40.2,50.5,56.9,65.7,75.5]; s = calData(jd); dgod = kyear + (kmon - 1)/12 + (kday - 1)/365.25; t = (jd - 2378497)/36525; if (dgod >= 1620 && dgod < 2010) { i1 = Math.floor((dgod - 1620)/10); di = dgod - (1620 + i1*10); dt = (efdt[i1] + ((efdt[i1 + 1] - efdt[i1])*di)/10); } else { if (dgod >= 2010) dt = 25.5 * t * t - 39; if (dgod >= 948 && dgod < 1620) dt = 25.5 * t * t; if (dgod < 948) dt = 1361.7 + 320 * t + 44.3 * t * t; } dt /= 3600; return dt; } //------------------------------------------------------------------------------------------ // Calendar day from Julian Day //------------------------------------------------------------------------------------------ function calData(jd) { with(Math){ z1 = jd + 0.5; z2 = floor(z1); f = z1 - z2; if(z2 < 2299161)a = z2; else { alf = floor((z2 - 1867216.25)/36524.25); a = z2 + 1 + alf - floor(alf/4); } b = a + 1524; c = floor((b - 122.1)/365.25); d = floor(365.25*c); e = floor((b - d)/30.6001); days = b - d - floor(30.6001*e) + f; kday = floor(days); if(e < 13.5)kmon = e - 1; else kmon = e - 13; if(kmon > 2.5)kyear = c - 4716; if(kmon < 2.5)kyear = c - 4715; hh1 = (days - kday)*24; khr = floor(hh1); kmin = hh1 - khr; ksek = kmin*60; kmin = floor(ksek); ksek = floor((ksek - kmin)*60); if (kday < 10)kday = " " + kday; if (kmon < 10)kmon = "0" + kmon; if (khr < 10)khr = "0" + khr; if (kmin < 10)kmin = "0" + kmin; if (ksek < 10)ksek = "0" + ksek; s = kday + "." + kmon + "." + kyear + " " + khr + ":" + kmin; } return s; } //------------------------------------------------------------------------------------------ // Translation degrees of a longitude in degrees, minutes, seconds of the zodiac sign //------------------------------------------------------------------------------------------ function lon2dmsz(x) { with(Math){ var d,m,s; x = abs(x); z = floor(x / 30); d = floor(x); ss0 = round((x - d) * 3600); m = floor(ss0 / 60); s = (ss0 % 60) % 60; d %= 30; str = d + "°" + m + " " + s + " " + zn[z]; } return str; } //------------------------------------------------------------------------------------------ // Translation degrees of a longitude in degrees, minutes, seconds of the zodiac sign //------------------------------------------------------------------------------------------ function lon2dmsz1(x) { with(Math){ var d,m,s; x = abs(x); z1 = floor(x / 30); d = floor(x); ss0 = round((x - d) * 3600); m = floor(ss0 / 60); s = (ss0 % 60) % 60; d %= 30; str = zn1[z]; } return str; } //------------------------------------------------------------------------------------------ // Translation degrees in degrees, minutes, seconds //------------------------------------------------------------------------------------------ function lon2dms(x) { with(Math){ var d,m,s; x = abs(x); d = floor(x); ss0 = round((x - d) * 3600); m = floor(ss0 / 60); s = (ss0 % 60) % 60; str = d + "°" + m + " " + s + " "; } return str; } //------------------------------------------------------------------------------------------ // Saving in limits of 360 degrees //------------------------------------------------------------------------------------------ function fix360(v) { while(v < 0.0)v += 360.0; while(v > 360.0)v -= 360.0; return v; } //------------------------------------------------------------------------------------------ // Day of week //------------------------------------------------------------------------------------------ function weekDay(jd) { jd0 = Math.floor(jd) + 0.5; if (jd < jd0)jd0 -= 1; jdn = jd0 + 1.5; dn1 = Math.floor(jdn/7)*7; wday = Math.floor(jdn - dn1); return wday; } //----------------------------------------------------------------------------------- // Calculation Geocentric ecliptic longitude of Moon and angular speed. // (accuracy 2 sec. of long.) //----------------------------------------------------------------------------------- function moon(jd) { // Days from epoch 1900: tdays = jd - 2415020; // Time in Julian centuries from epoch 1900: t = tdays/36525; t2 =t*t; t3 = t*t*t; // inclination of an ecliptic to equator: ob = 23.452294 - 0.0130125 * t - 0.00000164*t2 + 0.000000503*t3; // moon's mean longitude: //l = 270.4341639 + 481267.8831417*t - 0.0011333333*t2 + 0.0000018888889*t3; l = 270.4337361 + 13.176396544528099*tdays - 5.86*t2/3600 + 0.0068*t3/3600; // elongation of moon from sun: d = 350.7374861110581 + 445267.1142166667*t - t2*1.436111132303874e-3 + 0.0000018888889*t3; // moon's perihel: pe = 334.329556 + 14648522.52*t/3600 - 37.17*t2/3600 - 0.045*t3/3600; // sun's mean anomaly: ms = 358.4758333333334 + 35999.04974999958*t - t2*1.500000059604645e-4 - t3*3.3333333623078e-6; // moon's mean anomaly: //ml = 296.1046083333757 + 477198.8491083336*t + 0.0091916667090522*t2 + 0.0000143888893*t3; ml = fix360(l - pe); // moon's mean node: om = 259.183275 - 6962911.23*t/3600 + 7.48*t2/3600 + 0.008*t3/3600; // moon's mean longitude, counted from node: //f = 11.25088888890213 + 483202.0251500002*t - t2*3.211111227671305e-3 - .00000033*t3; f = fix360(l - om); with(Math){ // The periodic corrections: r2rad = 360.0 * d2r; tb = tdays * 1e-12; // *10^12 t2c = tdays * tdays * 1e-16; // *10^16 a1 = sin(r2rad * (0.53733431 - 10104982 * tb + 191 * t2c)); a2 = sin(r2rad * (0.71995354 - 147094228 * tb + 43 * t2c)); c2 = cos(r2rad * (0.71995354 - 147094228 * tb + 43 * t2c)); a3 = sin(r2rad * (0.14222222 + 1536238 * tb)); a4 = sin(r2rad * (0.48398132 - 147269147 * tb + 43 * t2c)); c4 = cos(r2rad * (0.48398132 - 147269147 * tb + 43 * t2c)); a5 = sin(r2rad * (0.52453688 - 147162675 * tb + 43 * t2c)); a6 = sin(r2rad * (0.84536324 - 11459387 * tb)); a7 = sin(r2rad * (0.23363774 + 1232723 * tb + 191 * t2c)); a8 = sin(r2rad * (0.58750000 + 9050118 * tb)); a9 = sin(r2rad * (0.61043085 - 67718733 * tb)); dlm = 0.84 * a3 + 0.31 * a7 + 14.27 * a1 + 7.261 * a2 + 0.282 * a4 + 0.237 * a6; dpm = -2.1 * a3 - 2.076 * a2 - 0.840 * a4 - 0.593 * a6; dkm = 0.63 * a3 + 95.96 * a2 + 15.58 * a4 + 1.86 * a5; dls = -6.4 * a3 - 0.27 * a8 - 1.89 * a6 + 0.20 * a9; dgc = (-4.318 * c2 - 0.698 * c4) / 3600.0 / 360.0; dgc = (1.000002708 + 139.978 * dgc); ml = d2r * (ml + (dlm - dpm) / 3600.0); //moon's mean anomaly ms = d2r * (ms + dls / 3600.0); //sun's mean anomaly f = d2r * (f + (dlm - dkm) / 3600.0); //moon's mean longitude, counted from node d = d2r * (d + (dlm - dls) / 3600.0); //elongation of moon from sun lk = 0; lk1 = 0; sk = 0; sinp = 0; nib = 0; g1c = 0; i1corr = 1.0 - 6.8320e-8 * tdays; i2corr = dgc * dgc; for (i = 0; i < 93; i++) { // indignation in a longitude arg = corrMoon[i].mlcor * ml + corrMoon[i].mscor * ms + corrMoon[i].fcor * f + corrMoon[i].dcor * d; sinarg = sin(arg); if (corrMoon[i].mscor != 0) { sinarg *= i1corr; if (corrMoon[i].mscor == 2 || corrMoon[i].mscor == -2)sinarg *= i1corr; } if (corrMoon[i].fcor != 0)sinarg *= i2corr; lk += corrMoon[i].lcor * sinarg; } for (i = 0; i < 27; i++) { // indignation in a longitude additional arg = corrMoon2[i].ml * ml + corrMoon2[i].ms * ms + corrMoon2[i].f * f + corrMoon2[i].d * d; sinarg = sin(arg); lk1 += corrMoon2[i].l * sinarg; } // Indignation from planets: dlid = 0.822 * sin(r2rad * (0.32480 - 0.0017125594 * tdays)); dlid += 0.307 * sin(r2rad * (0.14905 - 0.0034251187 * tdays)); dlid += 0.348 * sin(r2rad * (0.68266 - 0.0006873156 * tdays)); dlid += 0.662 * sin(r2rad * (0.65162 + 0.0365724168 * tdays)); dlid += 0.643 * sin(r2rad * (0.88098 - 0.0025069941 * tdays)); dlid += 1.137 * sin(r2rad * (0.85823 + 0.0364487270 * tdays)); dlid += 0.436 * sin(r2rad * (0.71892 + 0.0362179180 * tdays)); dlid += 0.327 * sin(r2rad * (0.97639 + 0.0001734910 * tdays)); l = l + nutation(jd) + (dlm + lk + lk1 + dlid) / 3600.0; LmoonYoga = l; //alert("Lmoon="+l); l = fix360(l); // Moon's angular speed (deg/day): vl = 13.176397; vl = vl + 1.434006*cos(ml); vl = vl + .280135*cos(2*d); vl = vl + .251632*cos(2*d - ml); vl = vl + .09742*cos(2*ml); vl = vl - .052799*cos(2*f); vl = vl + .034848*cos(2*d + ml); vl = vl + .018732*cos(2*d - ms); vl = vl + .010316*cos(2*d - ms - ml); vl = vl + .008649*cos(ms - ml); vl = vl - .008642*cos(2*f + ml); vl = vl - .007471*cos(ms + ml); vl = vl - .007387*cos(d); vl = vl + .006864*cos(3*ml); vl = vl + .00665*cos(4*d - ml); vl = vl + .003523*cos(2*d + 2*ml); vl = vl + .003377*cos(4*d - 2*ml); vl = vl + .003287*cos(4*d); vl = vl - .003193*cos(ms); vl = vl - .003003*cos(2*d + ms); vl = vl + .002577*cos(ml - ms + 2*d); vl = vl - .002567*cos(2*f - ml); vl = vl - .001794*cos(2*d - 2*ml); vl = vl - .001716*cos(ml - 2*f - 2*d); vl = vl - .001698*cos(2*d + ms - ml); vl = vl - .001415*cos(2*d + 2*f); vl = vl + .001183*cos(2*ml - ms); vl = vl + .00115*cos(d + ms); vl = vl - .001035*cos(d + ml); vl = vl - .001019*cos(2*f + 2*ml); vl = vl - .001006*cos(ms + 2*ml); } skar = vl; //l += ay; //if(l < 0.0)l += 360.0; return l; } //---------------------------------------------------------------------- // Calculation Geocentric ecliptic longitude of Sun // (accuracy 1 sec. of long.) //---------------------------------------------------------------------- function sun(jd) { // Days from epoch 1900: tdays = jd - 2415020; // Time in Julian centuries from epoch 1900: t = tdays/36525; t2 =t*t; t3 = t*t*t; // sun's mean longitude: //ls = 279.696678 + 36000.76892*t + 0.0003025*t2; ls = 279.696678 + 0.9856473354*tdays + 1.089*t2/3600; // sun's perihel: pes = 101.220833 + 6189.03*t/3600 + 1.63*t2/3600 + 0.012*t3/3600; // sun's mean anomaly: //ms = 358.4758333333334 + 35999.04974999958*t - t2*1.500000059604645e-4 - t3*3.3333333623078e-6; ms = fix360(ls - pes + 180); // longperiodic terms: //g = ms + 0.0017778 * Math.sin((231.19 + 20.2*t)*d2r) + 0.00052278 * Math.sin((57.24 + 150.27*t)*d2r); g = ms + (0.266 * Math.sin((31.8 + 119.0*t)*d2r) + 6.40 * Math.sin((231.19 + 20.2*t)*d2r) + (1.882-0.016*t) * Math.sin((57.24 + 150.27*t)*d2r)) / 3600.0; // sun's mean longitude: oms = 259.18 - 1934.142*t; // excentricity of earth orbit: ex = 0.01675104 - 0.0000418*t - 0.000000126*t2; // moon's mean longitude: l = 270.4337361 + 13.176396544528099*tdays - 5.86*t2/3600 + 0.0068*t3/3600; // moon's mean anomaly: ml = 296.1046083333757 + 477198.8491083336*t + 0.0091916667090522*t2 + 0.0000143888893*t3; // mean longitude of earth: le = 99.696678 + 0.9856473354*tdays + 1.089*t2/3600; // moon's mean node longitude: om = 259.183275 - 6962911.23*t/3600 + 7.48*t2/3600 + 0.008*t3/3600; // the Kepler equation: u = kepler(g, ex, 0.0000003) with(Math){ // sun's true anomaly: b = sqrt((1 + ex) / (1 - ex)); if (abs(Math.PI - u) < 1.0e-10) truanom = u; else truanom = 2.0 * atan(b * tan(u / 2)); truanom = fix360(truanom * r2d); u1 = (153.23 + 22518.7541 * t) * d2r; u2 = (216.57 + 45037.5082 * t) * d2r; u3 = (312.69 + 32964.3577 * t) * d2r; u4 = (350.74 + 445267.1142 * t - 0.00144 * t2) * d2r; u6 = (353.4 + 65928.71550000001 * t) * d2r; u5 = (315.6 + 893.3 * t) * d2r; dl = 0.00134 * cos(u1); dl += 0.00154 * cos(u2); dl += 0.002 * cos(u3); dl += 0.00179 * sin(u4); dl += 0.202 * sin(u5)/3600; dr = 0.00000543 * sin(u1); dr += 0.00001575 * sin(u2); dr += 0.00001627 * sin(u3); dr += 0.00003076 * cos(u4); dr += 9.26999999e-06 * sin(u6); // sun's true longitude (deg.): il = ls + dl + truanom - ms; // aberracion (deg): r1 = 1.0000002 * (1 - ex * ex) / (1 + ex * cos(truanom*d2r)); rs = r1 + dr; // radius-vector ab = (20.496 * (1 - ex * ex) / rs) / 3600; ls = il + nutation(jd) - ab; // visible longitude of sun LsunYoga = ls; //alert("Lsun="+ls); ls = fix360(ls); } return ls; } //---------------------------------------------------------------------------- // Beginning/end tithi and karana. //---------------------------------------------------------------------------- function tithi(jd, n1, tzone, len) { var s_t = ""; var flag; jdt = jd; knv = Math.floor(((jd - 2415020) / 365.25) * 12.3685); for (itit = n1; itit < (n1 + 2); ++itit) { aspect = len * itit; flag = 0; if (aspect == 0) {jdt = novolun(jd, knv); flag = 1;} if (aspect == 360) {jdt = novolun(jd, (knv+1)); flag = 1;} while (flag < 1) { Lsun0 = sun(jdt); Lmoon0 = moon(jdt); a = fix360(Lsun0 + aspect); asp1 = a - Lmoon0; if (asp1 > 180) asp1 -= 360; if (asp1 < -180) asp1 += 360; flag = 1; //if (Math.abs(asp1) > 0.001) {jdt += (asp1 / 12.190749); flag = 0;} if (Math.abs(asp1) > 0.001) {jdt += (asp1 / (skar - 1)); flag = 0;} } if (itit == n1) s_t = calData(jdt + tzone/24) + "&nbsp;&nbsp;to"; if (itit == (n1 + 1)) s_t += "&nbsp;" + calData(jdt + tzone/24); } return s_t; } //---------------------------------------------------------------------------- // Entrance and exit of the Moon in nakshatra. //---------------------------------------------------------------------------- function nakshatra(jd, n_naksh, tzone) { var s_t = ""; var flag; jdt = jd; for (inak = n_naksh; inak < (n_naksh + 2); ++inak) { n1 = fix360(inak*80/6); flag = 0; while (flag < 1) { Lmoon0 = fix360(moon(jdt) + ayanamsa); asp1 = n1 - Lmoon0; if (asp1 > 180) asp1 -= 360; if (asp1 < -180) asp1 += 360; flag = 1; if (Math.abs(asp1) > 0.001) {jdt += (asp1 / skar); flag = 0;} } if (inak == n_naksh) s_t = calData(jdt + tzone/24) + "&nbsp;&nbsp;to"; if (inak == (n_naksh + 1)) s_t += "&nbsp;" + calData(jdt + tzone/24); } return s_t; } //---------------------------------------------------------------------------- // Beginning and end the yoga. //---------------------------------------------------------------------------- function yoga(jd, zyoga, tzone) { var s_t = ""; var flag; jdt = jd; z = zyoga; var nn_yoga = new Array(2); nn_yoga[0] = Math.floor(z * 6 / 80) * 80 / 6; nn_yoga[1] = (Math.floor(z * 6 / 80) + 1) * 80 / 6; //alert(zyoga+"\r"+nn_yoga[0]+"\r"+nn_yoga[1]); for (iyog = 0; iyog < 2; ++iyog) { flag = 0; while (flag < 1) { Lsun0 = sun(jdt); Lmoon0 = moon(jdt); dmoonYoga = (LmoonYoga + ayanamsa - 491143.07698973856); dsunYoga = (LsunYoga + ayanamsa - 36976.91240579201); //alert(LmoonYoga+"\r"+LsunYoga+"\r"+ayanamsa); z = dmoonYoga + dsunYoga; asp1 = nn_yoga[iyog] - z; //alert(asp1+"\r"+nn_yoga[iyog]+"\r"+z); flag = 1; if (Math.abs(asp1) > 0.001) {jdt += (asp1 / (skar + 1.0145616633)); flag = 0;} //if (Math.abs(asp1) > 0.001) {jdt += (asp1 / skar) + (58.13 * Math.sin(asp1*d2r)); flag = 0;} } if (iyog == 0) s_t = calData(jdt + tzone/24) + "&nbsp;&nbsp;to"; if (iyog == 1) s_t += "&nbsp;" + calData(jdt + tzone/24); } return s_t; } //----------------------------------------------------------------------------- // Calculation of the moment of the nearest past new moon in JD. // (the error does not exceed 2 minutes) //----------------------------------------------------------------------------- function novolun (jd, knv) { t = (jd - 2415020) / 36525; t2 =t*t; t3 = t*t*t; with(Math){ jdnv = 2415020.75933 + 29.53058868 * knv + 0.0001178 * t2 - 0.000000155 * t3; jdnv += 0.00033 * sin((166.56 + 132.87 * t - 0.009173 * t2) * d2r); m = 359.2242 + 29.10535608 * knv - 0.0000333 * t2 - 0.00000347 * t3; ml = 306.0253 + 385.81691806 * knv + 0.0107306 * t2 + 0.00001236 * t3; f = 21.2964 + 390.67050646 * knv - 0.0016528 * t2 - 0.00000239 * t3; m *= d2r; ml *= d2r; f *= d2r; djd = (0.1734 - 0.000393 * t) * sin(m); djd += 0.0021 * sin(2 * m); djd -= 0.4068 * sin(ml); djd += 0.0161 * sin(2 * ml); djd -= 0.0004 * sin(3 * ml); djd += 0.0104 * sin(2 * f); djd -= 0.0051 * sin(m + ml); djd -= 0.0074 * sin(m - ml); djd += 0.0004 * sin(2 * f + m); djd -= 0.0004 * sin(2 * f - m); djd -= 0.0006 * sin(2 * f + ml); djd += 0.001 * sin(2 * f - ml); djd += 0.0005 * sin(m + 2 * ml); jdnv += djd; } return jdnv; } //----------------------------------------------------- // Solution of the Kepler equation (in radians) //----------------------------------------------------- function kepler(m, ex, err) { //val u0, delta; m *= d2r; u0 = m; err *= d2r; delta = 1; while (Math.abs(delta) >= err) { delta = (m + ex * Math.sin(u0) - u0) / (1 - ex * Math.cos(u0)); u0 += delta; } return u0; } //------------------------------------------------------------------------------------------ // Print panchang //------------------------------------------------------------------------------------------ function results() { panch='<div align="center" ><font face="ThoolikaTraditionalUnicode" size="3">'+ inpdate + '<br><hr><font color="#0000fe">9 0 ? 6 M 0 @  # * $ / G ( .   5 ?  M ( . 8 M $ A  6 M 0 @  A 0 A - M / K ( .  </font></div>'; panch+='<table width="100%" height="100%" border="1" align="center" cellspacing="0" bordercolor="#000000" title="">'; panch+='<tr><td valign="middle"><p align="left"><font style="COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode">1.  4 M  :</font></td><td><font style="COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode"><b>' + s_wday + '</font></td></tr>'; panch+='<tr><td valign="middle"><p align="left"><font style="COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode"> 2. $ ? % ? :</font></td><td><font style="COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode"><b>' + (n_tithi + 1) + '. ' + tith[n_tithi] + '</b></font><br><font style="COLOR:#0300D4; FONT: 9pt/11pt verdana">' + s_tithi + '</font></td>'; panch+='<tr><td valign="middle"><p align="left"><font style="COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode">3. (  M 7 $ M 0  :</font></td><td><font style="COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode"><b>' + (n_naksh + 1) + '. ' + naks[n_naksh].nname + '</b></font><br><font style="COLOR:#0300D4; FONT: 9pt/11pt verdana">' + s_naksh + '</font></td></tr>'; panch+='<tr><td valign="middle"><p align="left"><font style="COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode">4. ( ? $ M / / K   :</font></td><td><font style="COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode"><b>' + (n_yoga + 1) + '. ' + yog[n_yoga] + '</b></font><br><font style="COLOR:#0300D4; FONT: 9pt/11pt verdana">' + s_yoga + '</font></td></tr>'; panch+='<tr><td valign="middle"><p align="left"><font style="COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode">5.  0 #  :</font></td><td><font style="COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode"><b>' + (n_karana + 1) + '. ' + kar[n_karana] + '</b></font><br><font style="COLOR:#0300D4; FONT: 9pt/11pt verdana">' + s_karana + '</font></td></tr></table>'; panch+='<table width="100%" height="100%" border="1" align="center" cellspacing="0" bordercolor="#000000" title=""><tr><td align="center" style= "border:1px #000000 solid;" height="2"></td></tr><tr><td align="center" height="19"style= "border:1px #000000 solid;"><font style="COLOR:#0300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode"> ( M & M 0 8 M * A   : </font>' + lon2dmsz(fix360(Lmoon + ayanamsa)) + '</span></td></tr></table></td></tr></table>'; panch+='<table width="100%" height="100%" border="1" align="center" cellspacing="0" bordercolor="#000000" title=""><tr><td align="center" style= "border:1px #000000 solid;" height="2"></td></tr><tr><td align="center" height="19"style= "border:1px #000000 solid;"><font style="COLOR:#0300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode">8 B 0 M / 8 M * A   : </font>' + lon2dmsz(fix360(Lsun + ayanamsa)) + '</span></td></tr></table></td></tr></table>'; panch+='<table width="100%" height="100%" border="1" align="center" cellspacing="0" bordercolor="#000000" title=""><tr><td width="100%" style= "border:1px #000000 solid;">'; panch+='<table width="100%" height="100%" border="1" align="center" cellspacing="0" bordercolor="#000000" title=""><tr><td align="center" height="19"style= "border:1px #000000 solid;"><font style="COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode">  ? $ M 0 *  M 7  / ( >  6  (N. C. Lahiri) : </font>' + lon2dms(ayanamsa) + '</span></td></tr><tr><td align="center" style= "border:1px #000000 solid;" height="1"></td></tr></table></td></tr></table>'; panch+='<table width="100%" height="100%" border="1" align="center" cellspacing="0" bordercolor="#000000" title=""><tr><td valign="top" width="100%" style= "border:1px #000000 solid;"colspan="2"><font style="COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode">' + bDay[n_wday] + '</font></td></tr>'; panch+='<table width="100%" height="100%" border="0" align="center" cellspacing="0" bordercolor="#000000" title=""><tr><td align="center"><font style="COLOR:#000000; FONT: 13pt/15pt ThoolikaTraditionalUnicode"><br/> *  M  >    * M 0  > 0   & ? 5 8   F / M / > 5 A ( M (  ? 2 * M 0 ' > (  0 M . M .  M  3 M </span></td></tr><tr><td align="center" style= "border:1px #000000 solid;" height="1"></td></tr></table></td></tr></table>'; panch+='<table width="100%" height="100%" border="1" align="center" cellspacing="0" bordercolor="#000000" title=""><tr><td valign="top" width="100%" style= "border:1px #000000 solid;"colspan="2"><font style="COLOR:#C300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode"><br/> 4 M  :' + aDay[n_wday] + '</font></td></tr>'; panch+='<tr><td align="justify" valign="top" width="100%" colspan="2"style= "border:1px #000000 solid;"><font style="COLOR:#C300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode"><br/>$ ? % ? :'+ tith[n_tithi] +'' + aTithi[n_tithi] + '</font></td></tr>'; panch+='<tr><td align="justify" valign="top" width="100%" colspan="2" style= "border:1px #000000 solid;"><font style="COLOR:#C300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode"><br/>(  M 7 $ M 0  :'+ naks[n_naksh].nname +'' + aNaksh[n_naksh] + '<br>' + aTipNaksh[tipnaks[n_naksh]] + '</font></td></tr>'; panch+='<tr><td align="justify" valign="top" width="100%" colspan="2"style= "border:1px #000000 solid;"><font style="COLOR:#C300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode"><br/>( ? $ M / / K   :' + yog[n_yoga] +' '+ aYog[n_yoga] + '</font></td><tr>'; panch+='<tr><td align="justify" valign="top" width="100%" colspan="2"style= "border:1px #000000 solid;"><font style="COLOR:#C300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode"><br/> 0 #  :'+ kar[n_karana] + aKaran[n_karana] + '</font></td></tr></table>'; panch+='<tr><td align="justify" valign="top" width="100%" colspan="2"style= "border:1px #000000 solid;"><font style="COLOR:#C300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode"><br/> ( M & M 0 , 2  :</b></font><br>'+ lon2dmsz1(fix360(Lmoon1 + ayanamsa)) + '</font></td></tr>'; panch+='<div align="center"><br/><hr/>Supersoft, Computer Software R. & D. Centre , Kesavadasapuram, Trivandrum, Kerala - 695 004. <br/> Tel. (+91)(471) 2540521(O), 3042109(O), 2532084(R), 9447140521(M).<br/> <a href="http://www.supersoftweb.com/prophet.htm">Supersoft Astrology Software PROPHET2008</a><br>...</br> '; document.all.supersoftweb.innerHTML=panch; } var zn1 = [ "<table width='100%' height='100%' border='1' align='center' cellspacing='0' bordercolor='#FFCC99' title='Supersoft -&copy;k'><tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>. G   , . ? % A (  ,  0 M  M  ?    ,  ?  M   , $ A 2 >  , 5 C 6 M  ?   , ' ( A ,  A  -  . @ (  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  ( M & M 0 , 2   B  A  - ( 2 M 2 8 . /  .<hr> ( M ( ? 0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  7 M  . $ M $ ? 2 M  ( M & M 0 ( M - 8 . /  ( 2 M 2 $ 2 M 2 . </font></td></tr>", " <tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>. G   , 0 M  M  ?    ,  ?  M   , $ A 2 >  , 5 C 6 M  ?   , ' ( A , .  0  , . @ (  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  ( M & M 0 , 2   B  A  - ( 2 M 2 8 . /  .<hr>$ A 2 >  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  7 M  . $ M $ ? 2 M  ( M & M 0 ( M - 8 . /  ( 2 M 2 $ 2 M 2 .</font></td></tr>", " <tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>. G   ,   5  , . ? % A (  ,  ?  M   ,  ( M ( ? , $ A 2 >  , ' ( A , .  0  ,  A  -  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  ( M & M 0 , 2   B  A  - ( 2 M 2 8 . /  .<hr> 5 C 6 M  ?   0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  7 M  . $ M $ ? 2 M  ( M & M 0 ( M - 8 . /  ( 2 M 2 $ 2 M 2 .</font></td></tr> ", " <tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>  5  , . ? % A (  , 0 M  M  ?      ,  ( M ( ? , $ A 2 >  , 5 C 6 M  ?   , .  0  ,  A  -  , . @ (  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  ( M & M 0 , 2   B  A  - ( 2 M 2 8 . /  .<hr>' ( A 0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  7 M  . $ M $ ? 2 M  ( M & M 0 ( M - 8 . /  ( 2 M 2 $ 2 M 2 .</font></td></tr>", " <tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>. G   , . ? % A (  , 0 M  M  ?      , ?  M   , $ A 2 >  , 5 C 6 M  ?   ,  A  -  , . @ (  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  ( M & M 0 , 2   B  A  - ( 2 M 2 8 . /  .<hr>.  0  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  7 M  . $ M $ ? 2 M  ( M & M 0 ( M - 8 . /  ( 2 M 2 $ 2 M 2 .</font></td></tr>", " <tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>. G   ,   5  ,  0 M  M  ?      ,  ?  M   ,  ( M ( ? , 5 C 6 M  ?   , .  0  , . @ (  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  ( M & M 0 , 2   B  A  - ( 2 M 2 8 . /  .<hr> A  -  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  7 M  . $ M $ ? 2 M  ( M & M 0 ( M - 8 . /  ( 2 M 2 $ 2 M 2 .</font></td></tr>", " <tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>. G   ,   5  , . ? % A (  ,  ( M ( ? , $ A 2 >  , .  0  ,  A  -  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  ( M & M 0 , 2   B  A  - ( 2 M 2 8 . /  .<hr>. @ (  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  7 M  . $ M $ ? 2 M  ( M & M 0 ( M - 8 . /  ( 2 M 2 $ 2 M 2 .</font></td></tr>", " <tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>  5  , . ? % A (  ,  0 M  M  ?    ,  ( M ( ? , $ A 2 >  , 5 C 6 M  ?   , .  0  ,  A  -  , . @ (  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  ( M & M 0 , 2   B  A  - ( 2 M 2 8 . /  .<hr>. G   0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  7 M  . $ M $ ? 2 M  ( M & M 0 ( M - 8 . /  ( 2 M 2 $ 2 M 2 .</font></td></tr>", " <tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>. G   , . ? % A (  ,  0 M  M  ?    ,  ?  M   , $ A 2 >  , 5 C 6 M  ?   , ' ( A ,  A  -  , . @ (  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  ( M & M 0 , 2   B  A  - ( 2 M 2 8 . /  .<hr>  5  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  7 M  . $ M $ ? 2 M  ( M & M 0 ( M - 8 . /  ( 2 M 2 $ 2 M 2 .</font></td></tr>", " <tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>. G   ,   5  ,  0 M  M  ?    ,  ?  M   , ( M ( ? , 5 C 6 M  ?   , ' ( A , .  0  , . @ (  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  ( M & M 0 , 2   B  A  - ( 2 M 2 8 . /  .<hr>. ? % A (  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  7 M  . $ M $ ? 2 M  ( M & M 0 ( M - 8 . /  ( 2 M 2 $ 2 M 2 .</font></td></tr>", " <tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>. G   ,   5  , . ? % A (  ,  ?  M   ,  ( M ( ? , $ A 2 >  , ' ( A , .  0  ,  A  -  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  ( M & M 0 , 2   B  A  - ( 2 M 2 8 . /  .<hr> 0 M  M  ?    0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  7 M  . $ M $ ? 2 M  ( M & M 0 ( M - 8 . /  ( 2 M 2 $ 2 M 2 .</font></td></tr>", " <tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>  5  , . ? % A (  , 0 M  M  ?    ,  ?  M   ,  ( M ( ? , $ A 2 >  , 5 C 6 M  ?   , .  0  ,  A  -  0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  ( M & M 0 , 2   B  A  - ( 2 M 2 8 . /  .<hr>  ?  M   0 > 6 ?  3 ? 2 M  ( ?  M  5 0 M  M  M  7 M  . $ M $ ? 2 M  ( M & M 0 ( M - 8 . /  ( 2 M 2 $ 2 M 2 .</font></td></tr></table>" ]; bDay=new Array( "<tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>0 > 9 A  > 2  :</td><td>16:30 To 18:00Hrs</font></td></tr><tr><td><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'> A 3 ?   > 2  :</td><td>15:00 To 16:30Hrs</font></td><tr><td><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>/ .  # M   > 2  :</td><td>12:00 To 13:30Hrs & 18:00 To 19:30Hrs</font></td></tr>", "<tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>0 > 9 A  > 2  :</td><td>07:30 To 09:00Hrs</font></td></tr><tr><td><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'> A 3 ?   > 2  :</td><td>13:30 To 15:00Hrs</font></td><tr><td><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>/ .  # M   > 2  :</td><td>10:30 To 12:00Hrs & 03:00 To 04:30Hrs</font></td></tr>", "<tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>0 > 9 A  > 2  :</td><td>15:00 To 16:30Hrs</font></td></tr><tr><td><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'> A 3 ?   > 2  :</td><td>12:00 To 13:30Hrs</font></td><tr><td><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>/ .  # M   > 2  :</td><td>09:00 To 10:30Hrs & 01:30 To 03:00Hrs</font></td></tr", "<tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>0 > 9 A  > 2  :</td><td>12:00 To 13:30Hrs</font></td></tr><tr><td><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'> A 3 ?   > 2  :</td><td>10:30 To 12:00Hrs</font></td><tr><td><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>/ .  # M   > 2  :</td><td>07:30 To 09:00Hrs & 12:00 To 01:30Hrs</font></td></tr>", "<tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>0 > 9 A  > 2  :</td><td>01:30 To 03:00Hrs</font></td></tr><tr><td><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'> A 3 ?   > 2  :</td><td>09:00 To 10:30Hrs</font></td><tr><td><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>/ .  # M   > 2  :</td><td>06:00 To 07:30Hrs & 22:30 To 00:00Hrs</font></td></tr>", "<tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>0 > 9 A  > 2  :</td><td>10:30 To 12:00Hrs</font></td></tr><tr><td><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'> A 3 ?   > 2  :</td><td>07:30 To 09:00Hrs</font></td><tr><td><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>/ .  # M   > 2  :</td><td>15:00 To 16:30Hrs & 21:00 To 22:30Hrs</font></td></tr>", "<tr><td><p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>0 > 9 A  > 2  :</td><td>09:00 To 10:30Hrs</font></td></tr><tr><td><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'> A 3 ?   > 2  :</td><td>06:00 To 07:30Hrs</font></td><tr><td><font style='COLOR:#7300D4; FONT: 11pt/13pt ThoolikaTraditionalUnicode'>/ .  # M   > 2  :</td><td>13:30 To 15:00Hrs & 19:30 To 21:00Hrs</font></td></tr"); aDay=new Array( " > / 0 M <p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt verdana'> day of life, of integrity; day of pure consciousness; holiday. Enjoy life, the Sun; pay attention to your individuality, your internal Self; get to the Nature; work related to goldsmithing, copper, trees, silk, fire; coronation. Do not be a slave of your own ego; try to not be inert or tied up; don't be lazy; don't be rude and violent.", "$ ?  M  3 M <p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt verdana'> day of creativity, day of spontaneous thinking, day of prevailing feelings, of receptivity. Buy new stuff (esp. clothes, accessories and jewlery); get married; make walks; think spontaneously; adopt decisions based on feelings; look for approval from women; do things related to intuition, changes, mothers, water, milk. Don't adopt tough dececions (cause feelings are prevailing now); don't do haircut and manicure.", " J 5 M 5 <p align=justify><font style='COLOR:#7300D4; FONT: 11pt/13pt verdana'> day of material things; not too favourable day; superficial, rough day. Make bets, struggle for justice; do court rulings; fight :-); mind is aimed to the material things in life; do work related to metalls, ore deposits, medicine, fire, electricity; care about health; sport activities. Don't begin