Línea 3: |
Línea 3: |
| <div style="padding:40px 15px 0 30px"> | | <div style="padding:40px 15px 0 30px"> |
| <span class="title">Calendario maya</span> | | <span class="title">Calendario maya</span> |
− | <!---- BEGIN TEST OF NEW FORMAT----->
| + | <!---- BEGIN TEST OF NEW FORMAT-----> |
− | <table>
| + | <table> |
− | <tr>
| + | <tr> |
− | <td>
| + | <td> |
− | <!------ MAYAN CALENDAR ------->
| + | <!------ MAYAN CALENDAR -------> |
− | <table frame="box" rules="none" cellpadding="2px" cellspacing="0" width="145px">
| + | <table frame="box" rules="none" cellpadding="2px" cellspacing="0" width="145px"> |
− | <tr>
| + | <tr> |
− | <td colspan="4" align="center" width="135px"><img
| + | <td colspan="4" align="center" width="135px"><img src="http://cnbguatemala.org/images/3/32/Glifo_cuenta_larga.png" width="135px"></td> |
− | src="http://cnbguatemala.org/images/3/32/Glifo_cuenta_larga.png" width="135px">
| + | <tr> |
− | </td>
| + | <td id="baktunimg" height="50px" align="right" value="12"></td> |
− | <tr>
| + | <td align="left"><img src="http://cnbguatemala.org/images/a/ab/Baktun.gif" height="50px"></td> |
− | <td id="baktunimg" height="50px" align="right" value="12"></td>
| + | <td id="katunimg" height="50px" align="right"></td> |
− | <td align="left"><img src="http://cnbguatemala.org/images/a/ab/Baktun.gif"
| + | <td align="left"><img src="http://cnbguatemala.org/images/d/d4/Katun.gif" height="50px"></td> |
− | height="50px"></td>
| + | </tr> |
− | <td id="katunimg" height="50px" align="right"></td>
| + | <tr> |
− | <td align="left"><img src="http://cnbguatemala.org/images/d/d4/Katun.gif" height="50px">
| + | <td id="tunimg" height="50px" align="right"></td> |
− | </td>
| + | <td align="left"><img src="http://cnbguatemala.org/images/e/e4/Tun.gif" height="50px"></td> |
− | </tr>
| + | <td id="uinalimg" height="50px" align="right"></td> |
− | <tr>
| + | <td align="left"><img src="http://cnbguatemala.org/images/1/1c/Uinal.gif" height="50px"></td> |
− | <td id="tunimg" height="50px" align="right"></td>
| + | </tr> |
− | <td align="left"><img src="http://cnbguatemala.org/images/e/e4/Tun.gif" height="50px">
| + | <tr> |
− | </td>
| + | <td id="kinimg" height="50px" align="right"></td> |
− | <td id="uinalimg" height="50px" align="right"></td>
| + | <td align="left"><img src="http://cnbguatemala.org/images/1/1e/Kin.gif" height="50px"></td> |
− | <td align="left"><img src="http://cnbguatemala.org/images/1/1c/Uinal.gif" height="50px">
| + | <td id="tzolradimg" height="50px" align="right"></td> |
− | </td>
| + | <td id="tzolkinimg" height="50px" align="left"></td> |
− | </tr>
| + | </tr> |
− | <tr>
| + | <tr> |
− | <td id="kinimg" height="50px" align="right"></td>
| + | <td id="haabradimg" height="50px" align="right"></td> |
− | <td align="left"><img src="http://cnbguatemala.org/images/1/1e/Kin.gif" height="50px">
| + | <td id="haabimg" height="50px" align="left"></td> |
− | </td>
| + | <td id="lonimg" colspan="2" height="50px" align="right"></td> |
− | <td id="tzolradimg" height="50px" align="right"></td>
| + | </tr> |
− | <td id="tzolkinimg" height="50px" align="left"></td>
| + | </table> |
− | </tr>
| + | </td> |
− | <tr>
| + | <td> |
− | <td id="haabradimg" height="50px" align="right"></td>
| + | <!------ END OF MAYAN CALENDAR-------> |
− | <td id="haabimg" height="50px" align="left"></td>
| + | <!------ MAYAN CALENDAR DESCRIBED------> |
− | <td id="lonimg" colspan="2" height="50px" align="right"></td>
| + | <span class="title">Hoy es el:</span> |
− | </tr>
| + | <table border="0" cellspacing="4" cellpadding="0" style="width: 280px; margin:0 0 0 0"> |
− | </table>
| + | <tbody> |
− | </td>
| + | <tr> |
− | <td>
| + | <td valign="top" align="right" nowrap=""><input type="button" name="ybrad" value="9" size="5"> |
− | <!------ END OF MAYAN CALENDAR------->
| + | <input type="button" name="yb" value="Eb" size="9"></td> |
− | <!------ MAYAN CALENDAR DESCRIBED------>
| + | <td valign="top" class="calc2">Día</td> |
− | <span class="title">Hoy es el:</span>
| + | </tr> |
− | <table border="0" cellspacing="4" cellpadding="0" style="width: 280px; margin:0 0 0 0">
| + | <tr> |
− | <tbody>
| + | <td valign="top" align="right"><input type="button" name="baktun" value="12" size="4"></td> |
− | <tr>
| + | <td valign="top" class="calc2">Baktun</td> |
− | <td valign="top" align="right" nowrap=""><input type="button" name="ybrad" value="9"
| + | </tr> |
− | size="5">
| + | <tr> |
− | <input type="button" name="yb" value="Eb" size="9"></td>
| + | <td valign="top" align="right"><input type="button" name="katun" value="19" size="4"></td> |
− | <td valign="top" class="calc2">Día</td>
| + | <td valign="top" class="calc2">Katun</td> |
− | </tr>
| + | </tr> |
− | <tr>
| + | <tr> |
− | <td valign="top" align="right"><input type="button" name="baktun" value="12" size="4">
| + | <td valign="top" align="right"><input type="button" name="tun" value="15" size="4"> |
− | </td>
| + | </td> |
− | <td valign="top" class="calc2">Baktun</td>
| + | <td valign="top" class="calc2">Tun</td> |
− | </tr>
| + | </tr> |
− | <tr>
| + | <tr> |
− | <td valign="top" align="right"><input type="button" name="katun" value="19" size="4">
| + | <td valign="top" align="right"><input type="button" name="uinal" value="2" size="4"> |
− | </td>
| + | </td> |
− | <td valign="top" class="calc2">Katun</td>
| + | <td valign="top" class="calc2">Uinal</td> |
− | </tr>
| + | </tr> |
− | <tr>
| + | <tr> |
− | <td valign="top" align="right"><input type="button" name="tun" value="15" size="4">
| + | <td valign="top" align="right"><input type="button" name="kin" value="2" size="4"> |
− | </td>
| + | </td> |
− | <td valign="top" class="calc2">Tun</td>
| + | <td valign="top" class="calc2">Kin</td> |
− | </tr>
| + | </tr> |
− | <tr>
| + | <tr> |
− | <td valign="top" align="right"><input type="button" name="uinal" value="2" size="4">
| + | <td valign="top" align="right" nowrap=""><input type="button" name="tzolrad" value="1" size="5">,<input type="button" name="tzolkin" value="Ik" size="9"></td> |
− | </td>
| + | <td valign="top" class="calc2">Tzolkin</td> |
− | <td valign="top" class="calc2">Uinal</td>
| + | </tr> |
− | </tr>
| + | <tr> |
− | <tr>
| + | <td valign="top" align="right" nowrap=""><input type="button" name="haabrad" value="10" size="5">,<input type="button" name="haab" value="Kayab" size="9"></td> |
− | <td valign="top" align="right"><input type="button" name="kin" value="2" size="4">
| + | <td valign="top" class="calc2">Haab'</td> |
− | </td>
| + | </tr> |
− | <td valign="top" class="calc2">Kin</td>
| + | <tr> |
− | </tr>
| + | <td valign="top" align="right" nowrap=""><input type="button" name="lon" value="6" size="4"></td> |
− | <tr>
| + | <td valign="top" class="calc2">Señor de la noche</td> |
− | <td valign="top" align="right" nowrap=""><input type="button" name="tzolrad" value="1"
| + | </tr> |
− | size="5">,<input type="button"
| + | </tbody> |
− | name="tzolkin"
| + | </table> |
− | value="Ik" size="9">
| + | </td> |
− | </td>
| + | </tr> |
− | <td valign="top" class="calc2">Tzolkin</td>
| + | </table> |
− | </tr>
| + | <!-----END OF MAYAN CALENDAR EXPLAINED------> |
− | <tr>
| + | <!----- NEW INPUT DASHBOARD LOCATION AND ORGANIZATION ------> |
− | <td valign="top" align="right" nowrap=""><input type="button" name="haabrad" value="10"
| + | <table border="0" cellspacing="0" cellpadding="0" width="600" style="padding-top:30px"> |
− | size="5">,<input type="button"
| + | <tbody> |
− | name="haab"
| + | <tr> |
− | value="Kayab" size="9">
| + | <td valign="top"> |
− | </td>
| + | <table border="0" cellspacing="4" width="280"> |
− | <td valign="top" class="calc2">Haab'</td>
| + | <tbody> |
− | </tr>
| + | <tr> |
− | <tr>
| + | <td valign="top" class="calc">Día</td> |
− | <td valign="top" align="right" nowrap=""><input type="button" name="lon" value="6"
| + | <td valign="top"> |
− | size="4"></td>
| + | <select name="day"> |
− | <td valign="top" class="calc2">Señor de la noche</td>
| + | <option>1</option> |
− | </tr>
| + | <option>2</option> |
− | </tbody>
| + | <option>3</option> |
− | </table>
| + | <option>4</option> |
− | </td>
| + | <option>5</option> |
− | </tr>
| + | <option>6</option> |
− | </table>
| + | <option>7</option> |
− | <!-----END OF MAYAN CALENDAR EXPLAINED------>
| + | <option>8</option> |
− | <!----- NEW INPUT DASHBOARD LOCATION AND ORGANIZATION ------>
| + | <option>9</option> |
− | <table border="0" cellspacing="0" cellpadding="0" width="600" style="padding-top:30px">
| + | <option>10</option> |
− | <tbody>
| + | <option>11</option> |
− | <tr>
| + | <option>12</option> |
− | <td valign="top">
| + | <option>13</option> |
− | <table border="0" cellspacing="4" width="280">
| + | <option>14</option> |
− | <tbody>
| + | <option>15</option> |
− | <tr>
| + | <option>16</option> |
− | <td valign="top" class="calc">Día</td>
| + | <option>17</option> |
− | <td valign="top">
| + | <option>18</option> |
− | <select name="day">
| + | <option>19</option> |
− | <option>1</option>
| + | <option>20</option> |
− | <option>2</option>
| + | <option>21</option> |
− | <option>3</option>
| + | <option>22</option> |
− | <option>4</option>
| + | <option>23</option> |
− | <option>5</option>
| + | <option>24</option> |
− | <option>6</option>
| + | <option>25</option> |
− | <option>7</option>
| + | <option>26</option> |
− | <option>8</option>
| + | <option>27</option> |
− | <option>9</option>
| + | <option>28</option> |
− | <option>10</option>
| + | <option>29</option> |
− | <option>11</option>
| + | <option>30</option> |
− | <option>12</option>
| + | <option>31</option> |
− | <option>13</option>
| + | </select> |
− | <option>14</option>
| + | </td> |
− | <option>15</option>
| + | </tr> |
− | <option>16</option>
| + | <tr> |
− | <option>17</option>
| + | <td valign="top" class="calc">Mes</td> |
− | <option>18</option>
| + | <td valign="top"> |
− | <option>19</option>
| + | <select name="month"> |
− | <option>20</option>
| + | <option>Enero</option> |
− | <option>21</option>
| + | <option>Febrero</option> |
− | <option>22</option>
| + | <option>Marzo</option> |
− | <option>23</option>
| + | <option>Abril</option> |
− | <option>24</option>
| + | <option>Mayo</option> |
− | <option>25</option>
| + | <option>Junio</option> |
− | <option>26</option>
| + | <option>Julio</option> |
− | <option>27</option>
| + | <option>Agosto</option> |
− | <option>28</option>
| + | <option>Septiembre</option> |
− | <option>29</option>
| + | <option>Octubre</option> |
− | <option>30</option>
| + | <option>Noviembre</option> |
− | <option>31</option>
| + | <option>Diciembre</option> |
− | </select>
| + | </select> |
− | </td>
| + | </td> |
− | </tr>
| + | </tr> |
− | <tr>
| + | <tr> |
− | <td valign="top" class="calc">Mes</td>
| + | <td valign="top" class="calc">Año</td> |
− | <td valign="top">
| + | <td valign="top"><input type="text" name="year" value="2017" size="5"></td> |
− | <select name="month">
| + | </tr> |
− | <option>Enero</option>
| + | <tr> |
− | <option>Febrero</option>
| + | <td valign="top" class="calc">Correlativo (calendario juliano)</td> |
− | <option>Marzo</option>
| + | <td> |
− | <option>Abril</option>
| + | <select name="corrType"> |
− | <option>Mayo</option>
| + | <option>584,283</option><!-- maya moderno --> |
− | <option>Junio</option>
| + | <option>584,285</option><!-- académico --> |
− | <option>Julio</option>
| + | </select> |
− | <option>Agosto</option>
| + | </td> |
− | <option>Septiembre</option>
| + | </tr> |
− | <option>Octubre</option>
| + | <tr> |
− | <option>Noviembre</option>
| + | <td colspan="2" style="padding:15px 0 0 0" align="center"><input type="button" style="color:#000000" value="Calcular" onclick="maya(document.dayForm)"> |
− | <option>Diciembre</option>
| + | </td> |
− | </select>
| + | </tr> |
− | </td>
| + | </tbody> |
− | </tr>
| + | </table> |
− | <tr>
| + | <!----- END OF NEW INPUT DASHBOARD LOCATION AND ORGANIZATION------> |
− | <td valign="top" class="calc">Año</td>
| + | <!-----END TEST OF NEW FORMAT------> |
− | <td valign="top"><input type="text" name="year" value="2017" size="5"></td>
| |
− | </tr>
| |
− | <tr>
| |
− | <td valign="top" class="calc">Correlativo (calendario juliano)</td>
| |
− | <td>
| |
− | <select name="corrType">
| |
− | <option>584,283</option><!-- maya moderno -->
| |
− | <option>584,285</option><!-- académico -->
| |
− | </select>
| |
− | </td>
| |
− | </tr>
| |
− | <tr>
| |
− | <td colspan="2" style="padding:15px 0 0 0" align="center"><input type="button"
| |
− | style="color:#000000"
| |
− | value="Calcular"
| |
− | onclick="maya(document.dayForm)">
| |
− | </td>
| |
− | </tr>
| |
− | </tbody>
| |
− | </table>
| |
− | <!----- END OF NEW INPUT DASHBOARD LOCATION AND ORGANIZATION------>
| |
− | <!-----END TEST OF NEW FORMAT------>
| |
| | | |
− | <script>
| + | <script> |
| | | |
− | function maya(date) {
| + | function maya(date) { |
− | year = Number(date.year.value);
| + | year = Number(date.year.value); |
− | month = date.month.selectedIndex + 1;
| + | month = date.month.selectedIndex + 1; |
− | day = date.day.selectedIndex + 1;
| + | day = date.day.selectedIndex + 1; |
| | | |
− | julianday = getjulian(year, month, day);
| + | julianday = getjulian(year, month, day); |
| | | |
− | if (date.corrType.selectedIndex == 1) {
| + | if (date.corrType.selectedIndex == 1) { |
− | corrNumber = 584285;
| + | corrNumber = 584285; |
− | } else {
| + | } else { |
− | corrNumber = 584283;
| + | corrNumber = 584283; |
− | }
| + | } |
| | | |
| | | |
− | days = julianday - corrNumber;
| + | days = julianday - corrNumber; |
− | xdays = days;
| + | xdays = days; |
| | | |
− | baktun = Math.floor(xdays / 144000);
| + | baktun = Math.floor(xdays / 144000); |
− | date.baktun.value = baktun;
| + | date.baktun.value = baktun; |
− | xdays -= baktun * 144000;
| + | xdays -= baktun * 144000; |
− | katun = Math.floor(xdays / 7200);
| + | katun = Math.floor(xdays / 7200); |
− | date.katun.value = katun;
| + | date.katun.value = katun; |
− | xdays -= katun * 7200;
| + | xdays -= katun * 7200; |
− | tun = Math.floor(xdays / 360);
| + | tun = Math.floor(xdays / 360); |
− | date.tun.value = tun;
| + | date.tun.value = tun; |
− | xdays -= tun * 360;
| + | xdays -= tun * 360; |
− | uinal = Math.floor(xdays / 20);
| + | uinal = Math.floor(xdays / 20); |
− | date.uinal.value = uinal;
| + | date.uinal.value = uinal; |
| | | |
− | kin = xdays - (uinal * 20);
| + | kin = xdays - (uinal * 20); |
− | date.kin.value = kin;
| + | date.kin.value = kin; |
| | | |
− | xdays = days - (260 * (Math.floor(days / 260)));
| + | xdays = days - (260 * (Math.floor(days / 260))); |
| + | |
| + | <!------baktun radical------> |
| + | if (baktun == 0) { |
| + | date.baktun.value = "0"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 1) { |
| + | date.baktun.value = "1"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 2) { |
| + | date.baktun.value = "2"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_2.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 3) { |
| + | date.baktun.value = "3"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_3.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 4) { |
| + | date.baktun.value = "4"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/79/Glifo_4.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 5) { |
| + | date.baktun.value = "5"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0f/Glifo_5.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 6) { |
| + | date.baktun.value = "6"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a3/Glifo_6.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 7) { |
| + | date.baktun.value = "7"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/27/Glifo_7.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 8) { |
| + | date.baktun.value = "8"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/8b/Glifo_8.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 9) { |
| + | date.baktun.value = "9"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Glifo_9.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 10) { |
| + | date.baktun.value = "10"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/96/Glifo_10.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 11) { |
| + | date.baktun.value = "11"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a6/Glifo_11.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 12) { |
| + | date.baktun.value = "12"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/42/Glifo_12.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 13) { |
| + | date.baktun.value = "13"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Glifo_13.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 14) { |
| + | date.baktun.value = "14"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5d/Glifo_14.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 15) { |
| + | date.baktun.value = "15"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Glifo_15.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 16) { |
| + | date.baktun.value = "16"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/87/Glifo_16.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 17) { |
| + | date.baktun.value = "17"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/af/Glifo_17.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 18) { |
| + | date.baktun.value = "18"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5f/Glifo_18.gif" width="29px">'; |
| + | } |
| + | else if (baktun == 19) { |
| + | date.baktun.value = "19"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c0/Glifo_19.gif" width="29px">'; |
| + | } |
| + | else if (baktun > 19) date.baktun.value = "error"; |
| | | |
− | <
| |
− | !------baktun
| |
− | radical--
| |
− | ---- >
| |
− | if (baktun == 0) {
| |
− | date.baktun.value = "0";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 1) {
| |
− | date.baktun.value = "1";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 2) {
| |
− | date.baktun.value = "2";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_2.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 3) {
| |
− | date.baktun.value = "3";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_3.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 4) {
| |
− | date.baktun.value = "4";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/79/Glifo_4.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 5) {
| |
− | date.baktun.value = "5";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0f/Glifo_5.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 6) {
| |
− | date.baktun.value = "6";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a3/Glifo_6.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 7) {
| |
− | date.baktun.value = "7";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/27/Glifo_7.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 8) {
| |
− | date.baktun.value = "8";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/8b/Glifo_8.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 9) {
| |
− | date.baktun.value = "9";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Glifo_9.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 10) {
| |
− | date.baktun.value = "10";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/96/Glifo_10.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 11) {
| |
− | date.baktun.value = "11";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a6/Glifo_11.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 12) {
| |
− | date.baktun.value = "12";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/42/Glifo_12.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 13) {
| |
− | date.baktun.value = "13";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Glifo_13.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 14) {
| |
− | date.baktun.value = "14";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5d/Glifo_14.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 15) {
| |
− | date.baktun.value = "15";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Glifo_15.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 16) {
| |
− | date.baktun.value = "16";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/87/Glifo_16.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 17) {
| |
− | date.baktun.value = "17";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/af/Glifo_17.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 18) {
| |
− | date.baktun.value = "18";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5f/Glifo_18.gif" width="29px">';
| |
− | }
| |
− | else if (baktun == 19) {
| |
− | date.baktun.value = "19";
| |
− | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c0/Glifo_19.gif" width="29px">';
| |
− | }
| |
− | else if (baktun > 19) date.baktun.value = "error";
| |
| | | |
| + | <!------katun radical------> |
| + | if (katun == 0) { |
| + | date.katun.value = "0"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="29px">'; |
| + | } |
| + | else if (katun == 1) { |
| + | date.katun.value = "1"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="29px">'; |
| + | } |
| + | else if (katun == 2) { |
| + | date.katun.value = "2"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_2.gif" width="29px">'; |
| + | } |
| + | else if (katun == 3) { |
| + | date.katun.value = "3"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_3.gif" width="29px">'; |
| + | } |
| + | else if (katun == 4) { |
| + | date.katun.value = "4"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/79/Glifo_4.gif" width="29px">'; |
| + | } |
| + | else if (katun == 5) { |
| + | date.katun.value = "5"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0f/Glifo_5.gif" width="29px">'; |
| + | } |
| + | else if (katun == 6) { |
| + | date.katun.value = "6"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a3/Glifo_6.gif" width="29px">'; |
| + | } |
| + | else if (katun == 7) { |
| + | date.katun.value = "7"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/27/Glifo_7.gif" width="29px">'; |
| + | } |
| + | else if (katun == 8) { |
| + | date.katun.value = "8"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/8b/Glifo_8.gif" width="29px">'; |
| + | } |
| + | else if (katun == 9) { |
| + | date.katun.value = "9"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Glifo_9.gif" width="29px">'; |
| + | } |
| + | else if (katun == 10) { |
| + | date.katun.value = "10"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/96/Glifo_10.gif" width="29px">'; |
| + | } |
| + | else if (katun == 11) { |
| + | date.katun.value = "11"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a6/Glifo_11.gif" width="29px">'; |
| + | } |
| + | else if (katun == 12) { |
| + | date.katun.value = "12"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/42/Glifo_12.gif" width="29px">'; |
| + | } |
| + | else if (katun == 13) { |
| + | date.katun.value = "13"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Glifo_13.gif" width="29px">'; |
| + | } |
| + | else if (katun == 14) { |
| + | date.katun.value = "14"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5d/Glifo_14.gif" width="29px">'; |
| + | } |
| + | else if (katun == 15) { |
| + | date.katun.value = "15"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Glifo_15.gif" width="29px">'; |
| + | } |
| + | else if (katun == 16) { |
| + | date.katun.value = "16"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/87/Glifo_16.gif" width="29px">'; |
| + | } |
| + | else if (katun == 17) { |
| + | date.katun.value = "17"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/af/Glifo_17.gif" width="29px">'; |
| + | } |
| + | else if (katun == 18) { |
| + | date.katun.value = "18"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5f/Glifo_18.gif" width="29px">'; |
| + | } |
| + | else if (katun == 19) { |
| + | date.katun.value = "19"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c0/Glifo_19.gif" width="29px">'; |
| + | } |
| + | else if (katun > 19) date.katun.value = "error"; |
| | | |
− | /*------katun radical------*/
| |
− | if (katun == 0) {
| |
− | date.katun.value = "0";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 1) {
| |
− | date.katun.value = "1";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 2) {
| |
− | date.katun.value = "2";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_2.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 3) {
| |
− | date.katun.value = "3";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_3.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 4) {
| |
− | date.katun.value = "4";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/79/Glifo_4.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 5) {
| |
− | date.katun.value = "5";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0f/Glifo_5.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 6) {
| |
− | date.katun.value = "6";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a3/Glifo_6.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 7) {
| |
− | date.katun.value = "7";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/27/Glifo_7.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 8) {
| |
− | date.katun.value = "8";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/8b/Glifo_8.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 9) {
| |
− | date.katun.value = "9";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Glifo_9.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 10) {
| |
− | date.katun.value = "10";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/96/Glifo_10.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 11) {
| |
− | date.katun.value = "11";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a6/Glifo_11.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 12) {
| |
− | date.katun.value = "12";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/42/Glifo_12.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 13) {
| |
− | date.katun.value = "13";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Glifo_13.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 14) {
| |
− | date.katun.value = "14";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5d/Glifo_14.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 15) {
| |
− | date.katun.value = "15";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Glifo_15.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 16) {
| |
− | date.katun.value = "16";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/87/Glifo_16.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 17) {
| |
− | date.katun.value = "17";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/af/Glifo_17.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 18) {
| |
− | date.katun.value = "18";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5f/Glifo_18.gif" width="29px">';
| |
− | }
| |
− | else if (katun == 19) {
| |
− | date.katun.value = "19";
| |
− | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c0/Glifo_19.gif" width="29px">';
| |
− | }
| |
− | else if (katun > 19) date.katun.value = "error";
| |
| | | |
| + | <!------tun radical------> |
| + | if (tun == 0) { |
| + | date.tun.value = "0"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="29px">'; |
| + | } |
| + | else if (tun == 1) { |
| + | date.tun.value = "1"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="29px">'; |
| + | } |
| + | else if (tun == 2) { |
| + | date.tun.value = "2"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_2.gif" width="29px">'; |
| + | } |
| + | else if (tun == 3) { |
| + | date.tun.value = "3"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_3.gif" width="29px">'; |
| + | } |
| + | else if (tun == 4) { |
| + | date.tun.value = "4"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/79/Glifo_4.gif" width="29px">'; |
| + | } |
| + | else if (tun == 5) { |
| + | date.tun.value = "5"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0f/Glifo_5.gif" width="29px">'; |
| + | } |
| + | else if (tun == 6) { |
| + | date.tun.value = "6"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a3/Glifo_6.gif" width="29px">'; |
| + | } |
| + | else if (tun == 7) { |
| + | date.tun.value = "7"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/27/Glifo_7.gif" width="29px">'; |
| + | } |
| + | else if (tun == 8) { |
| + | date.tun.value = "8"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/8b/Glifo_8.gif" width="29px">'; |
| + | } |
| + | else if (tun == 9) { |
| + | date.tun.value = "9"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Glifo_9.gif" width="29px">'; |
| + | } |
| + | else if (tun == 10) { |
| + | date.tun.value = "10"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/96/Glifo_10.gif" width="29px">'; |
| + | } |
| + | else if (tun == 11) { |
| + | date.tun.value = "11"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a6/Glifo_11.gif" width="29px">'; |
| + | } |
| + | else if (tun == 12) { |
| + | date.tun.value = "12"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/42/Glifo_12.gif" width="29px">'; |
| + | } |
| + | else if (tun == 13) { |
| + | date.tun.value = "13"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Glifo_13.gif" width="29px">'; |
| + | } |
| + | else if (tun == 14) { |
| + | date.tun.value = "14"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5d/Glifo_14.gif" width="29px">'; |
| + | } |
| + | else if (tun == 15) { |
| + | date.tun.value = "15"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Glifo_15.gif" width="29px">'; |
| + | } |
| + | else if (tun == 16) { |
| + | date.tun.value = "16"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/87/Glifo_16.gif" width="29px">'; |
| + | } |
| + | else if (tun == 17) { |
| + | date.tun.value = "17"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/af/Glifo_17.gif" width="29px">'; |
| + | } |
| + | else if (tun == 18) { |
| + | date.tun.value = "18"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5f/Glifo_18.gif" width="29px">'; |
| + | } |
| + | else if (tun == 19) { |
| + | date.tun.value = "19"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c0/Glifo_19.gif" width="29px">'; |
| + | } |
| + | else if (tun > 19) date.tun.value = "error"; |
| | | |
− | <
| |
− | !------tun
| |
− | radical--
| |
− | ---- >
| |
− | if (tun == 0) {
| |
− | date.tun.value = "0";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 1) {
| |
− | date.tun.value = "1";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 2) {
| |
− | date.tun.value = "2";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_2.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 3) {
| |
− | date.tun.value = "3";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_3.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 4) {
| |
− | date.tun.value = "4";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/79/Glifo_4.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 5) {
| |
− | date.tun.value = "5";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0f/Glifo_5.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 6) {
| |
− | date.tun.value = "6";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a3/Glifo_6.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 7) {
| |
− | date.tun.value = "7";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/27/Glifo_7.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 8) {
| |
− | date.tun.value = "8";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/8b/Glifo_8.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 9) {
| |
− | date.tun.value = "9";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Glifo_9.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 10) {
| |
− | date.tun.value = "10";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/96/Glifo_10.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 11) {
| |
− | date.tun.value = "11";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a6/Glifo_11.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 12) {
| |
− | date.tun.value = "12";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/42/Glifo_12.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 13) {
| |
− | date.tun.value = "13";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Glifo_13.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 14) {
| |
− | date.tun.value = "14";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5d/Glifo_14.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 15) {
| |
− | date.tun.value = "15";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Glifo_15.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 16) {
| |
− | date.tun.value = "16";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/87/Glifo_16.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 17) {
| |
− | date.tun.value = "17";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/af/Glifo_17.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 18) {
| |
− | date.tun.value = "18";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5f/Glifo_18.gif" width="29px">';
| |
− | }
| |
− | else if (tun == 19) {
| |
− | date.tun.value = "19";
| |
− | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c0/Glifo_19.gif" width="29px">';
| |
− | }
| |
− | else if (tun > 19) date.tun.value = "error";
| |
| | | |
| + | <!------uinal radical------> |
| + | if (uinal == 0) { |
| + | date.uinal.value = "0"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 1) { |
| + | date.uinal.value = "1"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 2) { |
| + | date.uinal.value = "2"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_2.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 3) { |
| + | date.uinal.value = "3"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_3.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 4) { |
| + | date.uinal.value = "4"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/79/Glifo_4.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 5) { |
| + | date.uinal.value = "5"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0f/Glifo_5.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 6) { |
| + | date.uinal.value = "6"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a3/Glifo_6.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 7) { |
| + | date.uinal.value = "7"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/27/Glifo_7.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 8) { |
| + | date.uinal.value = "8"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/8b/Glifo_8.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 9) { |
| + | date.uinal.value = "9"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Glifo_9.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 10) { |
| + | date.uinal.value = "10"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/96/Glifo_10.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 11) { |
| + | date.uinal.value = "11"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a6/Glifo_11.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 12) { |
| + | date.uinal.value = "12"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/42/Glifo_12.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 13) { |
| + | date.uinal.value = "13"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Glifo_13.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 14) { |
| + | date.uinal.value = "14"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5d/Glifo_14.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 15) { |
| + | date.uinal.value = "15"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Glifo_15.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 16) { |
| + | date.uinal.value = "16"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/87/Glifo_16.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 17) { |
| + | date.uinal.value = "17"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/af/Glifo_17.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 18) { |
| + | date.uinal.value = "18"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5f/Glifo_18.gif" width="29px">'; |
| + | } |
| + | else if (uinal == 19) { |
| + | date.uinal.value = "19"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c0/Glifo_19.gif" width="29px">'; |
| + | } |
| + | else if (uinal > 19) date.uinal.value = "error"; |
| | | |
− | <
| |
− | !------uinal
| |
− | radical--
| |
− | ---- >
| |
− | if (uinal == 0) {
| |
− | date.uinal.value = "0";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 1) {
| |
− | date.uinal.value = "1";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 2) {
| |
− | date.uinal.value = "2";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_2.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 3) {
| |
− | date.uinal.value = "3";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_3.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 4) {
| |
− | date.uinal.value = "4";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/79/Glifo_4.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 5) {
| |
− | date.uinal.value = "5";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0f/Glifo_5.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 6) {
| |
− | date.uinal.value = "6";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a3/Glifo_6.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 7) {
| |
− | date.uinal.value = "7";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/27/Glifo_7.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 8) {
| |
− | date.uinal.value = "8";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/8b/Glifo_8.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 9) {
| |
− | date.uinal.value = "9";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Glifo_9.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 10) {
| |
− | date.uinal.value = "10";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/96/Glifo_10.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 11) {
| |
− | date.uinal.value = "11";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a6/Glifo_11.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 12) {
| |
− | date.uinal.value = "12";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/42/Glifo_12.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 13) {
| |
− | date.uinal.value = "13";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Glifo_13.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 14) {
| |
− | date.uinal.value = "14";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5d/Glifo_14.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 15) {
| |
− | date.uinal.value = "15";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Glifo_15.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 16) {
| |
− | date.uinal.value = "16";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/87/Glifo_16.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 17) {
| |
− | date.uinal.value = "17";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/af/Glifo_17.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 18) {
| |
− | date.uinal.value = "18";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5f/Glifo_18.gif" width="29px">';
| |
− | }
| |
− | else if (uinal == 19) {
| |
− | date.uinal.value = "19";
| |
− | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c0/Glifo_19.gif" width="29px">';
| |
− | }
| |
− | else if (uinal > 19) date.uinal.value = "error";
| |
| | | |
| + | <!------kin radical------> |
| + | if (kin == 0) { |
| + | date.kin.value = "0"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="29px">'; |
| + | } |
| + | else if (kin == 1) { |
| + | date.kin.value = "1"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="29px">'; |
| + | } |
| + | else if (kin == 2) { |
| + | date.kin.value = "2"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_2.gif" width="29px">'; |
| + | } |
| + | else if (kin == 3) { |
| + | date.kin.value = "3"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_3.gif" width="29px">'; |
| + | } |
| + | else if (kin == 4) { |
| + | date.kin.value = "4"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/79/Glifo_4.gif" width="29px">'; |
| + | } |
| + | else if (kin == 5) { |
| + | date.kin.value = "5"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0f/Glifo_5.gif" width="29px">'; |
| + | } |
| + | else if (kin == 6) { |
| + | date.kin.value = "6"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a3/Glifo_6.gif" width="29px">'; |
| + | } |
| + | else if (kin == 7) { |
| + | date.kin.value = "7"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/27/Glifo_7.gif" width="29px">'; |
| + | } |
| + | else if (kin == 8) { |
| + | date.kin.value = "8"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/8b/Glifo_8.gif" width="29px">'; |
| + | } |
| + | else if (kin == 9) { |
| + | date.kin.value = "9"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Glifo_9.gif" width="29px">'; |
| + | } |
| + | else if (kin == 10) { |
| + | date.kin.value = "10"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/96/Glifo_10.gif" width="29px">'; |
| + | } |
| + | else if (kin == 11) { |
| + | date.kin.value = "11"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a6/Glifo_11.gif" width="29px">'; |
| + | } |
| + | else if (kin == 12) { |
| + | date.kin.value = "12"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/42/Glifo_12.gif" width="29px">'; |
| + | } |
| + | else if (kin == 13) { |
| + | date.kin.value = "13"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Glifo_13.gif" width="29px">'; |
| + | } |
| + | else if (kin == 14) { |
| + | date.kin.value = "14"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5d/Glifo_14.gif" width="29px">'; |
| + | } |
| + | else if (kin == 15) { |
| + | date.kin.value = "15"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Glifo_15.gif" width="29px">'; |
| + | } |
| + | else if (kin == 16) { |
| + | date.kin.value = "16"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/87/Glifo_16.gif" width="29px">'; |
| + | } |
| + | else if (kin == 17) { |
| + | date.kin.value = "17"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/af/Glifo_17.gif" width="29px">'; |
| + | } |
| + | else if (kin == 18) { |
| + | date.kin.value = "18"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5f/Glifo_18.gif" width="29px">'; |
| + | } |
| + | else if (kin == 19) { |
| + | date.kin.value = "19"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c0/Glifo_19.gif" width="29px">'; |
| + | } |
| + | else if (kin > 19) date.kin.value = "error"; |
| | | |
− | <
| |
− | !------kin
| |
− | radical--
| |
− | ---- >
| |
− | if (kin == 0) {
| |
− | date.kin.value = "0";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 1) {
| |
− | date.kin.value = "1";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 2) {
| |
− | date.kin.value = "2";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_2.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 3) {
| |
− | date.kin.value = "3";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_3.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 4) {
| |
− | date.kin.value = "4";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/79/Glifo_4.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 5) {
| |
− | date.kin.value = "5";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0f/Glifo_5.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 6) {
| |
− | date.kin.value = "6";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a3/Glifo_6.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 7) {
| |
− | date.kin.value = "7";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/27/Glifo_7.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 8) {
| |
− | date.kin.value = "8";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/8b/Glifo_8.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 9) {
| |
− | date.kin.value = "9";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Glifo_9.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 10) {
| |
− | date.kin.value = "10";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/96/Glifo_10.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 11) {
| |
− | date.kin.value = "11";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a6/Glifo_11.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 12) {
| |
− | date.kin.value = "12";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/42/Glifo_12.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 13) {
| |
− | date.kin.value = "13";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Glifo_13.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 14) {
| |
− | date.kin.value = "14";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5d/Glifo_14.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 15) {
| |
− | date.kin.value = "15";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Glifo_15.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 16) {
| |
− | date.kin.value = "16";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/87/Glifo_16.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 17) {
| |
− | date.kin.value = "17";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/af/Glifo_17.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 18) {
| |
− | date.kin.value = "18";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5f/Glifo_18.gif" width="29px">';
| |
− | }
| |
− | else if (kin == 19) {
| |
− | date.kin.value = "19";
| |
− | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c0/Glifo_19.gif" width="29px">';
| |
− | }
| |
− | else if (kin > 19) date.kin.value = "error";
| |
| | | |
| | | |
− | tzolradical = 4 + xdays - (13 * (Math.floor((xdays + 3) / 13)));
| + | tzolradical = 4 + xdays - (13 * (Math.floor((xdays + 3) / 13))); |
− | date.tzolrad.value = tzolradical;
| + | date.tzolrad.value = tzolradical; |
− | tzolkin = xdays - (20 * (Math.floor((xdays) / 20)));
| + | tzolkin = xdays - (20 * (Math.floor((xdays) / 20))); |
| | | |
− | <
| + | <!------tzolkin radical------> |
− | !------tzolkin
| + | if (tzolradical == 0) { |
− | radical--
| + | date.tzolrad.value = "0"; |
− | ---- >
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="29px">'; |
− | if (tzolradical == 0) {
| + | } |
− | date.tzolrad.value = "0";
| + | else if (tzolradical == 1) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="29px">';
| + | date.tzolrad.value = "1"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="29px">'; |
− | else if (tzolradical == 1) {
| + | } |
− | date.tzolrad.value = "1";
| + | else if (tzolradical == 2) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="29px">';
| + | date.tzolrad.value = "2"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_2.gif" width="29px">'; |
− | else if (tzolradical == 2) {
| + | } |
− | date.tzolrad.value = "2";
| + | else if (tzolradical == 3) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_2.gif" width="29px">';
| + | date.tzolrad.value = "3"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_3.gif" width="29px">'; |
− | else if (tzolradical == 3) {
| + | } |
− | date.tzolrad.value = "3";
| + | else if (tzolradical == 4) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_3.gif" width="29px">';
| + | date.tzolrad.value = "4"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/79/Glifo_4.gif" width="29px">'; |
− | else if (tzolradical == 4) {
| + | } |
− | date.tzolrad.value = "4";
| + | else if (tzolradical == 5) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/79/Glifo_4.gif" width="29px">';
| + | date.tzolrad.value = "5"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0f/Glifo_5.gif" width="29px">'; |
− | else if (tzolradical == 5) {
| + | } |
− | date.tzolrad.value = "5";
| + | else if (tzolradical == 6) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0f/Glifo_5.gif" width="29px">';
| + | date.tzolrad.value = "6"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a3/Glifo_6.gif" width="29px">'; |
− | else if (tzolradical == 6) {
| + | } |
− | date.tzolrad.value = "6";
| + | else if (tzolradical == 7) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a3/Glifo_6.gif" width="29px">';
| + | date.tzolrad.value = "7"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/27/Glifo_7.gif" width="29px">'; |
− | else if (tzolradical == 7) {
| + | } |
− | date.tzolrad.value = "7";
| + | else if (tzolradical == 8) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/27/Glifo_7.gif" width="29px">';
| + | date.tzolrad.value = "8"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/8b/Glifo_8.gif" width="29px">'; |
− | else if (tzolradical == 8) {
| + | } |
− | date.tzolrad.value = "8";
| + | else if (tzolradical == 9) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/8b/Glifo_8.gif" width="29px">';
| + | date.tzolrad.value = "9"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Glifo_9.gif" width="29px">'; |
− | else if (tzolradical == 9) {
| + | } |
− | date.tzolrad.value = "9";
| + | else if (tzolradical == 10) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Glifo_9.gif" width="29px">';
| + | date.tzolrad.value = "10"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/96/Glifo_10.gif" width="29px">'; |
− | else if (tzolradical == 10) {
| + | } |
− | date.tzolrad.value = "10";
| + | else if (tzolradical == 11) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/96/Glifo_10.gif" width="29px">';
| + | date.tzolrad.value = "11"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a6/Glifo_11.gif" width="29px">'; |
− | else if (tzolradical == 11) {
| + | } |
− | date.tzolrad.value = "11";
| + | else if (tzolradical == 12) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a6/Glifo_11.gif" width="29px">';
| + | date.tzolrad.value = "12"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/42/Glifo_12.gif" width="29px">'; |
− | else if (tzolradical == 12) {
| + | } |
− | date.tzolrad.value = "12";
| + | else if (tzolradical == 13) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/42/Glifo_12.gif" width="29px">';
| + | date.tzolrad.value = "13"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Glifo_13.gif" width="29px">'; |
− | else if (tzolradical == 13) {
| + | } |
− | date.tzolrad.value = "13";
| + | else if (tzolradical == 14) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Glifo_13.gif" width="29px">';
| + | date.tzolrad.value = "14"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5d/Glifo_14.gif" width="29px">'; |
− | else if (tzolradical == 14) {
| + | } |
− | date.tzolrad.value = "14";
| + | else if (tzolradical == 15) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5d/Glifo_14.gif" width="29px">';
| + | date.tzolrad.value = "15"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Glifo_15.gif" width="29px">'; |
− | else if (tzolradical == 15) {
| + | } |
− | date.tzolrad.value = "15";
| + | else if (tzolradical == 16) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Glifo_15.gif" width="29px">';
| + | date.tzolrad.value = "16"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/87/Glifo_16.gif" width="29px">'; |
− | else if (tzolradical == 16) {
| + | } |
− | date.tzolrad.value = "16";
| + | else if (tzolradical == 17) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/87/Glifo_16.gif" width="29px">';
| + | date.tzolrad.value = "17"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/af/Glifo_17.gif" width="29px">'; |
− | else if (tzolradical == 17) {
| + | } |
− | date.tzolrad.value = "17";
| + | else if (tzolradical == 18) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/af/Glifo_17.gif" width="29px">';
| + | date.tzolrad.value = "18"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5f/Glifo_18.gif" width="29px">'; |
− | else if (tzolradical == 18) {
| + | } |
− | date.tzolrad.value = "18";
| + | else if (tzolradical == 19) { |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5f/Glifo_18.gif" width="29px">';
| + | date.tzolrad.value = "19"; |
− | }
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c0/Glifo_19.gif" width="29px">'; |
− | else if (tzolradical == 19) {
| + | } |
− | date.tzolrad.value = "19";
| + | else if (tzolradical > 19) date.tzolrad.value = "error"; |
− | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c0/Glifo_19.gif" width="29px">';
| |
− | }
| |
− | else if (tzolradical > 19) date.tzolrad.value = "error";
| |
| | | |
− | <
| + | <!-----tzolkin------> |
− | !-----tzolkin--
| + | if (tzolkin == 1) { |
− | ---- >
| + | date.tzolkin.value = "Imix"; |
− | if (tzolkin == 1) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/cd/Imix.gif" width="38px">'; |
− | date.tzolkin.value = "Imix";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/cd/Imix.gif" width="38px">';
| + | else if (tzolkin == 2) { |
− | }
| + | date.tzolkin.value = "Ik"; |
− | else if (tzolkin == 2) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e6/Ik.gif" width="38px">'; |
− | date.tzolkin.value = "Ik";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e6/Ik.gif" width="38px">';
| + | else if (tzolkin == 3) { |
− | }
| + | date.tzolkin.value = "Ak'bal"; |
− | else if (tzolkin == 3) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/4c/Akbal.gif" width="38px">'; |
− | date.tzolkin.value = "Ak'bal";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/4c/Akbal.gif" width="38px">';
| + | else if (tzolkin == 4) { |
− | }
| + | date.tzolkin.value = "K'an"; |
− | else if (tzolkin == 4) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/9e/Kan.gif" width="38px">'; |
− | date.tzolkin.value = "K'an";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/9e/Kan.gif" width="38px">';
| + | else if (tzolkin == 5) { |
− | }
| + | date.tzolkin.value = "Chikchan"; |
− | else if (tzolkin == 5) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/4f/Chikchan.gif" width="38px">'; |
− | date.tzolkin.value = "Chikchan";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/4f/Chikchan.gif" width="38px">';
| + | else if (tzolkin == 6) { |
− | }
| + | date.tzolkin.value = "Kimi"; |
− | else if (tzolkin == 6) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/29/Kimi.gif" width="38px">'; |
− | date.tzolkin.value = "Kimi";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/29/Kimi.gif" width="38px">';
| + | else if (tzolkin == 7) { |
− | }
| + | date.tzolkin.value = "Manik"; |
− | else if (tzolkin == 7) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a9/Manik.gif" width="38px">'; |
− | date.tzolkin.value = "Manik";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a9/Manik.gif" width="38px">';
| + | else if (tzolkin == 8) { |
− | }
| + | date.tzolkin.value = "Lamat"; |
− | else if (tzolkin == 8) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/46/Lamat.gif" width="38px">'; |
− | date.tzolkin.value = "Lamat";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/46/Lamat.gif" width="38px">';
| + | else if (tzolkin == 9) { |
− | }
| + | date.tzolkin.value = "Muluk"; |
− | else if (tzolkin == 9) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/1/16/Muluk.gif" width="38px">'; |
− | date.tzolkin.value = "Muluk";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/1/16/Muluk.gif" width="38px">';
| + | else if (tzolkin == 10) { |
− | }
| + | date.tzolkin.value = "Ok"; |
− | else if (tzolkin == 10) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/ba/Ok.gif" width="38px">'; |
− | date.tzolkin.value = "Ok";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/ba/Ok.gif" width="38px">';
| + | else if (tzolkin == 11) { |
− | }
| + | date.tzolkin.value = "Chuen"; |
− | else if (tzolkin == 11) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3e/Chuen.gif" width="38px">'; |
− | date.tzolkin.value = "Chuen";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3e/Chuen.gif" width="38px">';
| + | else if (tzolkin == 12) { |
− | }
| + | date.tzolkin.value = "Eb"; |
− | else if (tzolkin == 12) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Eb.gif" width="38px">'; |
− | date.tzolkin.value = "Eb";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Eb.gif" width="38px">';
| + | else if (tzolkin == 13) { |
− | }
| + | date.tzolkin.value = "Ben"; |
− | else if (tzolkin == 13) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/b2/Ben.gif" width="38px">'; |
− | date.tzolkin.value = "Ben";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/b2/Ben.gif" width="38px">';
| + | else if (tzolkin == 14) { |
− | }
| + | date.tzolkin.value = "Ix"; |
− | else if (tzolkin == 14) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fb/Ix.gif" width="38px">'; |
− | date.tzolkin.value = "Ix";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fb/Ix.gif" width="38px">';
| + | else if (tzolkin == 15) { |
− | }
| + | date.tzolkin.value = "Men"; |
− | else if (tzolkin == 15) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f1/Men.gif" width="38px">'; |
− | date.tzolkin.value = "Men";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f1/Men.gif" width="38px">';
| + | else if (tzolkin == 16) { |
− | }
| + | date.tzolkin.value = "Kib"; |
− | else if (tzolkin == 16) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/bf/Kib.gif" width="38px">'; |
− | date.tzolkin.value = "Kib";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/bf/Kib.gif" width="38px">';
| + | else if (tzolkin == 17) { |
− | }
| + | date.tzolkin.value = "Kaban"; |
− | else if (tzolkin == 17) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Kaban.gif" width="38px">'; |
− | date.tzolkin.value = "Kaban";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Kaban.gif" width="38px">';
| + | else if (tzolkin == 18) { |
− | }
| + | date.tzolkin.value = "Etz'nab"; |
− | else if (tzolkin == 18) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f8/Etznab.gif" width="38px">'; |
− | date.tzolkin.value = "Etz'nab";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f8/Etznab.gif" width="38px">';
| + | else if (tzolkin == 19) { |
− | }
| + | date.tzolkin.value = "Kawak"; |
− | else if (tzolkin == 19) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/55/Kawak.gif" width="38px">'; |
− | date.tzolkin.value = "Kawak";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/55/Kawak.gif" width="38px">';
| + | else if (tzolkin == 0) { |
− | }
| + | date.tzolkin.value = "Ajau"; |
− | else if (tzolkin == 0) {
| + | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/2b/Ahau.gif" width="38px">'; |
− | date.tzolkin.value = "Ajau";
| + | } |
− | document.getElementById("tzolkinimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/2b/Ahau.gif" width="38px">';
| + | else if (tzolkin > 19) date.tzolkin.value = "error"; |
− | }
| |
− | else if (tzolkin > 19) date.tzolkin.value = "error";
| |
| | | |
− | xdays = days + 348 - (365 * (Math.floor((days + 348) / 365)));
| + | xdays = days + 348 - (365 * (Math.floor((days + 348) / 365))); |
| | | |
− | haabradical = xdays - (20 * (Math.floor(xdays / 20)));
| + | haabradical = xdays - (20 * (Math.floor(xdays / 20))); |
− | date.haabrad.value = haabradical;
| + | date.haabrad.value = haabradical; |
| | | |
− | if (xdays > 360) date.haab.value = "Uayeb";
| + | if (xdays > 360) date.haab.value = "Uayeb"; |
| | | |
− | haabkin = Math.floor(xdays / 20);
| + | haabkin = Math.floor(xdays / 20); |
| | | |
− | <
| + | <!-----haab radical-------> |
− | !-----haab
| + | if (haabradical == 0) { |
− | radical--
| + | date.haabrad.value = "0"; |
− | ----- >
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="29px">'; |
− | if (haabradical == 0) {
| + | } |
− | date.haabrad.value = "0";
| + | else if (haabradical == 1) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="29px">';
| + | date.haabrad.value = "1"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="29px">'; |
− | else if (haabradical == 1) {
| + | } |
− | date.haabrad.value = "1";
| + | else if (haabradical == 2) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="29px">';
| + | date.haabrad.value = "2"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_2.gif" width="29px">'; |
− | else if (haabradical == 2) {
| + | } |
− | date.haabrad.value = "2";
| + | else if (haabradical == 3) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_2.gif" width="29px">';
| + | date.haabrad.value = "3"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_3.gif" width="29px">'; |
− | else if (haabradical == 3) {
| + | } |
− | date.haabrad.value = "3";
| + | else if (haabradical == 4) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_3.gif" width="29px">';
| + | date.haabrad.value = "4"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/79/Glifo_4.gif" width="29px">'; |
− | else if (haabradical == 4) {
| + | } |
− | date.haabrad.value = "4";
| + | else if (haabradical == 5) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/79/Glifo_4.gif" width="29px">';
| + | date.haabrad.value = "5"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0f/Glifo_5.gif" width="29px">'; |
− | else if (haabradical == 5) {
| + | } |
− | date.haabrad.value = "5";
| + | else if (haabradical == 6) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0f/Glifo_5.gif" width="29px">';
| + | date.haabrad.value = "6"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a3/Glifo_6.gif" width="29px">'; |
− | else if (haabradical == 6) {
| + | } |
− | date.haabrad.value = "6";
| + | else if (haabradical == 7) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a3/Glifo_6.gif" width="29px">';
| + | date.haabrad.value = "7"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/27/Glifo_7.gif" width="29px">'; |
− | else if (haabradical == 7) {
| + | } |
− | date.haabrad.value = "7";
| + | else if (haabradical == 8) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/27/Glifo_7.gif" width="29px">';
| + | date.haabrad.value = "8"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/8b/Glifo_8.gif" width="29px">'; |
− | else if (haabradical == 8) {
| + | } |
− | date.haabrad.value = "8";
| + | else if (haabradical == 9) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/8b/Glifo_8.gif" width="29px">';
| + | date.haabrad.value = "9"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Glifo_9.gif" width="29px">'; |
− | else if (haabradical == 9) {
| + | } |
− | date.haabrad.value = "9";
| + | else if (haabradical == 10) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Glifo_9.gif" width="29px">';
| + | date.haabrad.value = "10"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/96/Glifo_10.gif" width="29px">'; |
− | else if (haabradical == 10) {
| + | } |
− | date.haabrad.value = "10";
| + | else if (haabradical == 11) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/96/Glifo_10.gif" width="29px">';
| + | date.haabrad.value = "11"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a6/Glifo_11.gif" width="29px">'; |
− | else if (haabradical == 11) {
| + | } |
− | date.haabrad.value = "11";
| + | else if (haabradical == 12) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a6/Glifo_11.gif" width="29px">';
| + | date.haabrad.value = "12"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/42/Glifo_12.gif" width="29px">'; |
− | else if (haabradical == 12) {
| + | } |
− | date.haabrad.value = "12";
| + | else if (haabradical == 13) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/42/Glifo_12.gif" width="29px">';
| + | date.haabrad.value = "13"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Glifo_13.gif" width="29px">'; |
− | else if (haabradical == 13) {
| + | } |
− | date.haabrad.value = "13";
| + | else if (haabradical == 14) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Glifo_13.gif" width="29px">';
| + | date.haabrad.value = "14"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5d/Glifo_14.gif" width="29px">'; |
− | else if (haabradical == 14) {
| + | } |
− | date.haabrad.value = "14";
| + | else if (haabradical == 15) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5d/Glifo_14.gif" width="29px">';
| + | date.haabrad.value = "15"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Glifo_15.gif" width="29px">'; |
− | else if (haabradical == 15) {
| + | } |
− | date.haabrad.value = "15";
| + | else if (haabradical == 16) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Glifo_15.gif" width="29px">';
| + | date.haabrad.value = "16"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/87/Glifo_16.gif" width="29px">'; |
− | else if (haabradical == 16) {
| + | } |
− | date.haabrad.value = "16";
| + | else if (haabradical == 17) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/8/87/Glifo_16.gif" width="29px">';
| + | date.haabrad.value = "17"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/af/Glifo_17.gif" width="29px">'; |
− | else if (haabradical == 17) {
| + | } |
− | date.haabrad.value = "17";
| + | else if (haabradical == 18) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/af/Glifo_17.gif" width="29px">';
| + | date.haabrad.value = "18"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5f/Glifo_18.gif" width="29px">'; |
− | else if (haabradical == 18) {
| + | } |
− | date.haabrad.value = "18";
| + | else if (haabradical == 19) { |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/5f/Glifo_18.gif" width="29px">';
| + | date.haabrad.value = "19"; |
− | }
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c0/Glifo_19.gif" width="29px">'; |
− | else if (haabradical == 19) {
| + | } |
− | date.haabrad.value = "19";
| + | else if (haabradical > 19) date.haabrad.value = "error"; |
− | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c0/Glifo_19.gif" width="29px">';
| |
− | }
| |
− | else if (haabradical > 19) date.haabrad.value = "error";
| |
| | | |
| | | |
− | <
| + | <!------haab------> |
− | !------haab--
| + | if (haabkin == 0) { |
− | ---- >
| + | date.haab.value = "Pop"; |
− | if (haabkin == 0) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0a/Pop.gif" width="38px">'; |
− | date.haab.value = "Pop";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/0a/Pop.gif" width="38px">';
| + | else if (haabkin == 1) { |
− | }
| + | date.haab.value = "Uo"; |
− | else if (haabkin == 1) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/58/Uo.gif" width="38px">'; |
− | date.haab.value = "Uo";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/58/Uo.gif" width="38px">';
| + | else if (haabkin == 2) { |
− | }
| + | date.haab.value = "Zip"; |
− | else if (haabkin == 2) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Sip.gif" width="38px">'; |
− | date.haab.value = "Zip";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3d/Sip.gif" width="38px">';
| + | else if (haabkin == 3) { |
− | }
| + | date.haab.value = "Zotz"; |
− | else if (haabkin == 3) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/bb/Zotz.gif" width="38px">'; |
− | date.haab.value = "Zotz";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/bb/Zotz.gif" width="38px">';
| + | else if (haabkin == 4) { |
− | }
| + | date.haab.value = "Tzec"; |
− | else if (haabkin == 4) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c1/Sek.gif" width="38px">'; |
− | date.haab.value = "Tzec";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c1/Sek.gif" width="38px">';
| + | else if (haabkin == 5) { |
− | }
| + | date.haab.value = "Xul"; |
− | else if (haabkin == 5) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/6/6d/Xul.gif" width="38px">'; |
− | date.haab.value = "Xul";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/6/6d/Xul.gif" width="38px">';
| + | else if (haabkin == 6) { |
− | }
| + | date.haab.value = "Yaxkin"; |
− | else if (haabkin == 6) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/55/Yaxkin.gif" width="38px">'; |
− | date.haab.value = "Yaxkin";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/55/Yaxkin.gif" width="38px">';
| + | else if (haabkin == 7) { |
− | }
| + | date.haab.value = "Mol"; |
− | else if (haabkin == 7) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/54/Mol.gif" width="38px">'; |
− | date.haab.value = "Mol";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/54/Mol.gif" width="38px">';
| + | else if (haabkin == 8) { |
− | }
| + | date.haab.value = "Chen"; |
− | else if (haabkin == 8) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/25/Chen.gif" width="38px">'; |
− | date.haab.value = "Chen";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/25/Chen.gif" width="38px">';
| + | else if (haabkin == 9) { |
− | }
| + | date.haab.value = "Yax"; |
− | else if (haabkin == 9) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/bd/Yax.gif" width="38px">'; |
− | date.haab.value = "Yax";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/bd/Yax.gif" width="38px">';
| + | else if (haabkin == 10) { |
− | }
| + | date.haab.value = "Zac"; |
− | else if (haabkin == 10) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c1/Sak.gif" width="38px">'; |
− | date.haab.value = "Zac";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c1/Sak.gif" width="38px">';
| + | else if (haabkin == 11) { |
− | }
| + | date.haab.value = "Ceh"; |
− | else if (haabkin == 11) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/51/Keh.gif" width="38px">'; |
− | date.haab.value = "Ceh";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/51/Keh.gif" width="38px">';
| + | else if (haabkin == 12) { |
− | }
| + | date.haab.value = "Mac"; |
− | else if (haabkin == 12) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/d/de/Mak.gif" width="38px">'; |
− | date.haab.value = "Mac";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/d/de/Mak.gif" width="38px">';
| + | else if (haabkin == 13) { |
− | }
| + | date.haab.value = "Kankin"; |
− | else if (haabkin == 13) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/58/Kankin.gif" width="38px">'; |
− | date.haab.value = "Kankin";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/58/Kankin.gif" width="38px">';
| + | else if (haabkin == 14) { |
− | }
| + | date.haab.value = "Muwan"; |
− | else if (haabkin == 14) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/ac/Muwan.gif" width="38px">'; |
− | date.haab.value = "Muwan";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/ac/Muwan.gif" width="38px">';
| + | else if (haabkin == 15) { |
− | }
| + | date.haab.value = "Pax"; |
− | else if (haabkin == 15) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Pax.gif" width="38px">'; |
− | date.haab.value = "Pax";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fe/Pax.gif" width="38px">';
| + | else if (haabkin == 16) { |
− | }
| + | date.haab.value = "Kayab"; |
− | else if (haabkin == 16) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e3/Kayab.gif" width="38px">'; |
− | date.haab.value = "Kayab";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e3/Kayab.gif" width="38px">';
| + | else if (haabkin == 17) { |
− | }
| + | date.haab.value = "Cumkú"; |
− | else if (haabkin == 17) {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/d/d4/Cumku.gif" width="38px">'; |
− | date.haab.value = "Cumkú";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/d/d4/Cumku.gif" width="38px">';
| + | else { |
− | }
| + | date.haab.value = "Uayeb"; |
− | else {
| + | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/bd/Wayeb.gif" width="38px">'; |
− | date.haab.value = "Uayeb";
| + | } |
− | document.getElementById("haabimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/bd/Wayeb.gif" width="38px">';
| |
− | }
| |
| | | |
| | | |
− | lonight = days - (9 * (Math.floor((days - 1) / 9)));
| + | lonight = days - (9 * (Math.floor((days - 1) / 9))); |
− | date.lon.value = lonight;
| + | date.lon.value = lonight; |
| | | |
− | <
| + | <!------ noche ------> |
− | !------noche--
| + | if (lonight == 1) { |
− | ---- >
| + | date.lon.value = "1"; |
− | if (lonight == 1) {
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c1/Glifo_G1.gif" width="50px">'; |
− | date.lon.value = "1";
| + | } |
− | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/c1/Glifo_G1.gif" width="50px">';
| + | else if (lonight == 2) { |
− | }
| + | date.lon.value = "2"; |
− | else if (lonight == 2) {
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/54/Glifo_G2.gif" width="50px">'; |
− | date.lon.value = "2";
| + | } |
− | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/54/Glifo_G2.gif" width="50px">';
| + | else if (lonight == 3) { |
− | }
| + | date.lon.value = "3"; |
− | else if (lonight == 3) {
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/70/Glifo_G3.gif" width="50px">'; |
− | date.lon.value = "3";
| + | } |
− | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/70/Glifo_G3.gif" width="50px">';
| + | else if (lonight == 4) { |
− | }
| + | date.lon.value = "4"; |
− | else if (lonight == 4) {
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/7b/Glifo_G4.gif" width="50px">'; |
− | date.lon.value = "4";
| + | } |
− | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/7b/Glifo_G4.gif" width="50px">';
| + | else if (lonight == 5) { |
− | }
| + | date.lon.value = "5"; |
− | else if (lonight == 5) {
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/37/Glifo_G5.gif" width="50px">'; |
− | date.lon.value = "5";
| + | } |
− | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/37/Glifo_G5.gif" width="50px">';
| + | else if (lonight == 6) { |
− | }
| + | date.lon.value = "6"; |
− | else if (lonight == 6) {
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/1/12/Glifo_G6.gif" width="50px">'; |
− | date.lon.value = "6";
| + | } |
− | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/1/12/Glifo_G6.gif" width="50px">';
| + | else if (lonight == 7) { |
− | }
| + | date.lon.value = "7"; |
− | else if (lonight == 7) {
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fa/Glifo_G7.gif" width="50px">'; |
− | date.lon.value = "7";
| + | } |
− | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fa/Glifo_G7.gif" width="50px">';
| + | else if (lonight == 8) { |
− | }
| + | date.lon.value = "8"; |
− | else if (lonight == 8) {
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_G8.gif" width="50px">'; |
− | date.lon.value = "8";
| + | } |
− | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/43/Glifo_G8.gif" width="50px">';
| + | else if (lonight == 9) { |
− | }
| + | date.lon.value = "9"; |
− | else if (lonight == 9) {
| + | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/7a/Glifo_G9.gif" width="50px">'; |
− | date.lon.value = "9";
| + | } |
− | document.getElementById("lonimg").innerHTML = '<img src="http://cnbguatemala.org/images/7/7a/Glifo_G9.gif" width="50px">';
| + | else if (kin > 9) date.lon.value = "error"; |
− | }
| |
− | else if (kin > 9) date.lon.value = "error";
| |
| | | |
| | | |
− | <!-- Sid Code Start -->
| + | <!-- Sid Code Start --> |
− | yb = (tzolkin - haabradical) % 20;
| + | yb = (tzolkin - haabradical) % 20; |
− | if (yb <= 0) yb = yb + 20;
| + | if (yb <= 0) yb = yb + 20; |
| | | |
− | if (yb == 1) {
| + | if (yb == 1) { |
− | date.yb.value = "Imix";
| + | date.yb.value = "Imix"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/cd/Imix.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/c/cd/Imix.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 2) {
| + | else if (yb == 2) { |
− | date.yb.value = "Ik";
| + | date.yb.value = "Ik"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e6/Ik.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e6/Ik.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 3) {
| + | else if (yb == 3) { |
− | date.yb.value = "Ak'bal";
| + | date.yb.value = "Ak'bal"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/4c/Akbal.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/4c/Akbal.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 4) {
| + | else if (yb == 4) { |
− | date.yb.value = "K'an";
| + | date.yb.value = "K'an"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/9e/Kan.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/9/9e/Kan.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 5) {
| + | else if (yb == 5) { |
− | date.yb.value = "Chikchan";
| + | date.yb.value = "Chikchan"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/4f/Chikchan.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/4f/Chikchan.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 6) {
| + | else if (yb == 6) { |
− | date.yb.value = "Kimi";
| + | date.yb.value = "Kimi"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/29/Kimi.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/29/Kimi.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 7) {
| + | else if (yb == 7) { |
− | date.yb.value = "Manik";
| + | date.yb.value = "Manik"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a9/Manik.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/a/a9/Manik.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 8) {
| + | else if (yb == 8) { |
− | date.yb.value = "Lamat";
| + | date.yb.value = "Lamat"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/46/Lamat.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/4/46/Lamat.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 9) {
| + | else if (yb == 9) { |
− | date.yb.value = "Muluk";
| + | date.yb.value = "Muluk"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/1/16/Muluk.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/1/16/Muluk.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 10) {
| + | else if (yb == 10) { |
− | date.yb.value = "Ok";
| + | date.yb.value = "Ok"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/ba/Ok.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/ba/Ok.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 11) {
| + | else if (yb == 11) { |
− | date.yb.value = "Chuen";
| + | date.yb.value = "Chuen"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3e/Chuen.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/3/3e/Chuen.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 12) {
| + | else if (yb == 12) { |
− | date.yb.value = "Eb";
| + | date.yb.value = "Eb"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Eb.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Eb.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 13) {
| + | else if (yb == 13) { |
− | date.yb.value = "Ben";
| + | date.yb.value = "Ben"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/b2/Ben.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/b2/Ben.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 14) {
| + | else if (yb == 14) { |
− | date.yb.value = "Ix";
| + | date.yb.value = "Ix"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fb/Ix.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/fb/Ix.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 15) {
| + | else if (yb == 15) { |
− | date.yb.value = "Men";
| + | date.yb.value = "Men"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f1/Men.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f1/Men.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 16) {
| + | else if (yb == 16) { |
− | date.yb.value = "Kib";
| + | date.yb.value = "Kib"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/bf/Kib.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/b/bf/Kib.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 17) {
| + | else if (yb == 17) { |
− | date.yb.value = "Kaban";
| + | date.yb.value = "Kaban"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Kaban.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/e/e5/Kaban.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 18) {
| + | else if (yb == 18) { |
− | date.yb.value = "Etz'nab";
| + | date.yb.value = "Etz'nab"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f8/Etznab.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f8/Etznab.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 19) {
| + | else if (yb == 19) { |
− | date.yb.value = "Kawak";
| + | date.yb.value = "Kawak"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/55/Kawak.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/5/55/Kawak.gif" width="50px">'; |
− | }
| + | } |
− | else if (yb == 0) {
| + | else if (yb == 0) { |
− | date.yb.value = "Ajau";
| + | date.yb.value = "Ajau"; |
− | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/2b/Ahau.gif" width="50px">';
| + | document.getElementById("ybimg").innerHTML = '<img src="http://cnbguatemala.org/images/2/2b/Ahau.gif" width="50px">'; |
− | }
| + | } |
| | | |
− | ybrad = (tzolradical - haabradical - (haabkin * 7)) % 13
| + | ybrad = (tzolradical - haabradical - (haabkin * 7)) % 13 |
| | | |
− | if (ybrad <= 0) ybrad = ybrad + 13;
| + | if (ybrad <= 0) ybrad = ybrad + 13; |
− | date.ybrad.value = ybrad;
| + | date.ybrad.value = ybrad; |
| | | |
− | <!-- Sid Code End -->
| + | <!-- Sid Code End --> |
| | | |
| | | |
− | }
| + | } |
| | | |
− | function getjulian(year, month, day) {
| + | function getjulian(year, month, day) { |
| | | |
− | if (month < 3) {
| + | if (month < 3) { |
− | month += 12;
| + | month += 12; |
− | year -= 1
| + | year -= 1 |
− | }
| + | } |
− | ;
| + | ; |
| | | |
− | a = Math.floor(year / 100);
| + | a = Math.floor(year / 100); |
− | b = 2 - a + Math.floor(a / 4);
| + | b = 2 - a + Math.floor(a / 4); |
− | j = Math.floor(365.25 * (year + 4716)) +
| + | j = Math.floor(365.25 * (year + 4716)) + |
− | Math.floor(30.6001 * (month + 1)) +
| + | Math.floor(30.6001 * (month + 1)) + |
− | day + b - 1524;
| + | day + b - 1524; |
| | | |
− | return j;
| + | return j; |
| | | |
− | }
| + | } |
| | | |
| | | |
− | //A required global variable for the loadImages() function
| + | //A required global variable for the loadImages() function |
− | loadedImages = null;
| + | loadedImages = null; |
| | | |
− | function loadImages() {
| + | function loadImages() { |
− | var img;
| + | var img; |
− | if (document.images) {
| + | if (document.images) { |
− | if (!loadedImages) loadedImages = new Array();
| + | if (!loadedImages) loadedImages = new Array(); |
− | for (var i = 0; i < arguments.length; i++) {
| + | for (var i = 0; i < arguments.length; i++) { |
− | img = new Image();
| + | img = new Image(); |
− | img.src = arguments[i];
| + | img.src = arguments[i]; |
− | loadedImages[loadedImages.length] = img;
| + | loadedImages[loadedImages.length] = img; |
− | }
| + | } |
− | }
| + | } |
− | }
| + | } |
| | | |
− | /**
| + | /** |
− | * flip(imgName, imgSrc) sets the src attribute of a named
| + | * flip(imgName, imgSrc) sets the src attribute of a named |
− | * image in the current document. The function must be passed
| + | * image in the current document. The function must be passed |
− | * two strings. The first is the name of the image in the document
| + | * two strings. The first is the name of the image in the document |
− | * and the second is the source to set it to.
| + | * and the second is the source to set it to. |
− | **/
| + | **/ |
− | function flip(imgName, imgSrc) {
| + | function flip(imgName, imgSrc) { |
− | if (document.images) {
| + | if (document.images) { |
− | document[imgName].src = imgSrc
| + | document[imgName].src = imgSrc |
− | }
| + | } |
− | }
| + | } |
| | | |
− | //-->
| + | //--> |
| | | |
| | | |
− | </script>
| + | </script> |
− | <></div>
| |
− | </div>
| |
− | </form>
| |