Línea 2: |
Línea 2: |
| <div style="text-align:left; background-color:#ffffff; width:734px"> | | <div style="text-align:left; background-color:#ffffff; width:734px"> |
| <div style="padding:40px 15px 0 30px"> | | <div style="padding:40px 15px 0 30px"> |
− | <span class="title">Ancient Mayan Calendars</span> | + | <span class="title">Calendario maya</span> |
− | <!-- <img src="images/header_ancientMayan.png" title="Ancient Mayan Calendars" alt="Ancient Mayan Calendars" width="383" height="36" border="0"> --> | + | <!-- <img src="images/header_ancientMayan.png" title="Ancient Mayan Calendars" alt="Ancient Mayan Calendars" width="383" height="36" border="0"> |
| | | |
− | <div style="background-image:url(images/calculator_bkgd.jpg); background-repeat: no-repeat; width:690px; height:294px"> | + | <div style="background-image:url(images/calculator_bkgd.jpg); background-repeat: no-repeat; width:690px; height:294px"> --> |
| <div style="margin:20px 0 0 20px"> | | <div style="margin:20px 0 0 20px"> |
| <table border="0" cellspacing="0" cellpadding="0" width="600" style="padding-top:30px"> | | <table border="0" cellspacing="0" cellpadding="0" width="600" style="padding-top:30px"> |
Línea 12: |
Línea 12: |
| <table border="0" cellspacing="4" width="280"> | | <table border="0" cellspacing="4" width="280"> |
| <tbody><tr> | | <tbody><tr> |
− | <td valign="top" class="calc">Year</td> | + | <td valign="top" class="calc">Año</td> |
− | <td valign="top"><input type="text" name="year" value="2008" size="5"></td> | + | <td valign="top"><input type="text" name="year" value="2017" size="5"></td> |
| | | |
| </tr> | | </tr> |
| <tr> | | <tr> |
− | <td valign="top" class="calc">Month</td> | + | <td valign="top" class="calc">Mes</td> |
| <td valign="top"> | | <td valign="top"> |
− | <select name="month"> | + | <select name="mes"> |
− | <option>January</option> | + | <option>Enero</option> |
− | <option>February</option> | + | <option>Febrero</option> |
| | | |
− | <option>March</option> | + | <option>Marzo</option> |
− | <option>April</option> | + | <option>Abril</option> |
− | <option>May</option> | + | <option>Mayo</option> |
− | <option>June</option> | + | <option>Junio</option> |
− | <option>July</option> | + | <option>Julio</option> |
− | <option>August</option> | + | <option>Agosto</option> |
| | | |
− | <option>September</option> | + | <option>Septiembre</option> |
− | <option>October</option> | + | <option>Octubre</option> |
− | <option>November</option> | + | <option>Noviembre</option> |
− | <option>December</option> | + | <option>Diciembre</option> |
| </select> | | </select> |
| </td> | | </td> |
Línea 39: |
Línea 39: |
| | | |
| <tr> | | <tr> |
− | <td valign="top" class="calc">Day</td> | + | <td valign="top" class="calc">Día</td> |
| <td valign="top"> | | <td valign="top"> |
− | <select name="day"> | + | <select name="día"> |
| <option>1</option> | | <option>1</option> |
| <option>2</option> | | <option>2</option> |
Línea 88: |
Línea 88: |
| | | |
| <tr> | | <tr> |
− | <td valign="top" class="calc">Correlation Number</td> | + | <td valign="top" class="calc">Correlativo (calendario juliano)</td> |
| <td> | | <td> |
| <select name="corrType"> | | <select name="corrType"> |
− | <option>584,283</option><!-- modern maya --> | + | <option>584,283</option><!-- maya moderno --> |
− | <option>584,285</option><!-- scolars --> | + | <option>584,285</option><!-- académico --> |
| </select> | | </select> |
| | | |
Línea 98: |
Línea 98: |
| </tr> | | </tr> |
| <tr> | | <tr> |
− | <td colspan="2" style="padding:15px 0 0 0" align="center"><input type="button" style="color:#a91200" value="Calculate" onclick="maya(document.dayForm)"></td> | + | <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> | | </tr> |
| </tbody></table> | | </tbody></table> |
Línea 110: |
Línea 110: |
| <td valign="top" align="right" nowrap=""><input type="button" name="ybrad" value="9" size="5"> | | <td valign="top" align="right" nowrap=""><input type="button" name="ybrad" value="9" size="5"> |
| <input type="button" name="yb" value="Eb" size="9"></td> | | <input type="button" name="yb" value="Eb" size="9"></td> |
− | <td valign="top" class="calc2">Year Bearer</td> | + | <td valign="top" class="calc2">Día</td> |
| | | |
| </tr> | | </tr> |
Línea 131: |
Línea 131: |
| </tr> | | </tr> |
| <tr> | | <tr> |
− | <td valign="top" align="right"><input type="button" name="winal" value="2" size="4"></td> | + | <td valign="top" align="right"><input type="button" name="uinal" value="2" size="4"></td> |
− | <td valign="top" class="calc2">Winal</td> | + | <td valign="top" class="calc2">Uinal</td> |
| | | |
| </tr> | | </tr> |
Línea 151: |
Línea 151: |
| <td valign="top" align="right" nowrap=""><input type="button" name="haabrad" value="10" size="5">, | | <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> | | <input type="button" name="haab" value="Kayab" size="9"></td> |
− | <td valign="top" class="calc2">HAAB</td> | + | <td valign="top" class="calc2">Haab'</td> |
| | | |
| </tr> | | </tr> |
Línea 157: |
Línea 157: |
| <tr> | | <tr> |
| <td valign="top" align="right" nowrap=""><input type="button" name="lon" value="6" size="4"></td> | | <td valign="top" align="right" nowrap=""><input type="button" name="lon" value="6" size="4"></td> |
− | <td valign="top" class="calc2">Lord of the Night<!-- <img src="../images/calc_lord.gif" alt="Lord of the Night" width="115" height="18" /> --> | + | <td valign="top" class="calc2">Señor de la noche<!-- <img src="../images/calc_lord.gif" alt="Lord of the Night" width="115" height="18" /> --> |
| </td></tr> | | </td></tr> |
| </tbody></table> | | </tbody></table> |
Línea 201: |
Línea 201: |
| date.tun.value=tun; | | date.tun.value=tun; |
| xdays-=tun*360; | | xdays-=tun*360; |
− | winal=Math.floor(xdays/20); | + | uinal=Math.floor(xdays/20); |
− | date.winal.value=winal; | + | date.uinal.value=uinal; |
− | kin=xdays-(winal*20); | + | kin=xdays-(uinal*20); |
| date.kin.value=kin; | | date.kin.value=kin; |
| | | |
Línea 214: |
Línea 214: |
| if (tzolkin==1)date.tzolkin.value ="Imix"; | | if (tzolkin==1)date.tzolkin.value ="Imix"; |
| else if (tzolkin==2) date.tzolkin.value ="Ik"; | | else if (tzolkin==2) date.tzolkin.value ="Ik"; |
− | else if (tzolkin==3) date.tzolkin.value ="Akbal"; | + | else if (tzolkin==3) date.tzolkin.value ="Ak'bal"; |
− | else if (tzolkin==4) date.tzolkin.value ="Kan"; | + | else if (tzolkin==4) date.tzolkin.value ="K'an"; |
− | else if (tzolkin==5) date.tzolkin.value ="Chicchan"; | + | else if (tzolkin==5) date.tzolkin.value ="Chikchan"; |
| else if (tzolkin==6) date.tzolkin.value ="Kimi"; | | else if (tzolkin==6) date.tzolkin.value ="Kimi"; |
| else if (tzolkin==7) date.tzolkin.value ="Manik"; | | else if (tzolkin==7) date.tzolkin.value ="Manik"; |
| else if (tzolkin==8) date.tzolkin.value ="Lamat"; | | else if (tzolkin==8) date.tzolkin.value ="Lamat"; |
− | else if (tzolkin==9) date.tzolkin.value ="Muluc"; | + | else if (tzolkin==9) date.tzolkin.value ="Muluk"; |
− | else if (tzolkin==10) date.tzolkin.value ="Oc"; | + | else if (tzolkin==10) date.tzolkin.value ="Ok"; |
| else if (tzolkin==11) date.tzolkin.value ="Chuen"; | | else if (tzolkin==11) date.tzolkin.value ="Chuen"; |
| else if (tzolkin==12) date.tzolkin.value ="Eb"; | | else if (tzolkin==12) date.tzolkin.value ="Eb"; |
Línea 227: |
Línea 227: |
| else if (tzolkin==14) date.tzolkin.value ="Ix"; | | else if (tzolkin==14) date.tzolkin.value ="Ix"; |
| else if (tzolkin==15) date.tzolkin.value ="Men"; | | else if (tzolkin==15) date.tzolkin.value ="Men"; |
− | else if (tzolkin==16) date.tzolkin.value ="Cib"; | + | else if (tzolkin==16) date.tzolkin.value ="Kib"; |
− | else if (tzolkin==17) date.tzolkin.value ="Caban"; | + | else if (tzolkin==17) date.tzolkin.value ="Kaban"; |
− | else if (tzolkin==18) date.tzolkin.value ="Etznab"; | + | else if (tzolkin==18) date.tzolkin.value ="Etz'nab"; |
− | else if (tzolkin==19) date.tzolkin.value ="Cauac"; | + | else if (tzolkin==19) date.tzolkin.value ="Kawak"; |
− | else if (tzolkin==0) date.tzolkin.value ="Ahau"; | + | else if (tzolkin==0) date.tzolkin.value ="Ajau"; |
| else if (tzolkin>19) date.tzolkin.value = "error"; | | else if (tzolkin>19) date.tzolkin.value = "error"; |
| | | |
Línea 247: |
Línea 247: |
| else if(haabkin==2) date.haab.value ="Zip"; | | else if(haabkin==2) date.haab.value ="Zip"; |
| else if(haabkin==3) date.haab.value ="Zotz"; | | else if(haabkin==3) date.haab.value ="Zotz"; |
− | else if(haabkin==4) date.haab.value ="Zec" ; | + | else if(haabkin==4) date.haab.value ="Tzec" ; |
| else if(haabkin==5) date.haab.value ="Xul"; | | else if(haabkin==5) date.haab.value ="Xul"; |
| else if(haabkin==6) date.haab.value ="Yaxkin" ; | | else if(haabkin==6) date.haab.value ="Yaxkin" ; |
Línea 253: |
Línea 253: |
| else if(haabkin==8) date.haab.value ="Chen"; | | else if(haabkin==8) date.haab.value ="Chen"; |
| else if(haabkin==9) date.haab.value ="Yax" ; | | else if(haabkin==9) date.haab.value ="Yax" ; |
− | else if(haabkin==10) date.haab.value ="Sac" ; | + | else if(haabkin==10) date.haab.value ="Zac" ; |
| else if(haabkin==11) date.haab.value ="Ceh" ; | | else if(haabkin==11) date.haab.value ="Ceh" ; |
| else if(haabkin==12) date.haab.value ="Mac" ; | | else if(haabkin==12) date.haab.value ="Mac" ; |
| else if(haabkin==13) date.haab.value ="Kankin"; | | else if(haabkin==13) date.haab.value ="Kankin"; |
− | else if(haabkin==14) date.haab.value ="Muan" ; | + | else if(haabkin==14) date.haab.value ="Muwan" ; |
| else if(haabkin==15) date.haab.value ="Pax" ; | | else if(haabkin==15) date.haab.value ="Pax" ; |
| else if(haabkin==16) date.haab.value ="Kayab"; | | else if(haabkin==16) date.haab.value ="Kayab"; |
− | else if(haabkin==17) date.haab.value ="Cumku"; | + | else if(haabkin==17) date.haab.value ="Cumkú"; |
− | else date.haab.value ="Wayeb"; | + | else date.haab.value ="Uayeb"; |
| | | |
| | | |
Línea 274: |
Línea 274: |
| if (yb==1)date.yb.value ="Imix"; | | if (yb==1)date.yb.value ="Imix"; |
| else if (yb==2) date.yb.value ="Ik"; | | else if (yb==2) date.yb.value ="Ik"; |
− | else if (yb==3) date.yb.value ="Akbal"; | + | else if (yb==3) date.yb.value ="Ak'bal"; |
| else if (yb==4) date.yb.value ="Kan"; | | else if (yb==4) date.yb.value ="Kan"; |
− | else if (yb==5) date.yb.value ="Chicchan"; | + | else if (yb==5) date.yb.value ="Chikchan"; |
| else if (yb==6) date.yb.value ="Kimi"; | | else if (yb==6) date.yb.value ="Kimi"; |
| else if (yb==7) date.yb.value ="Manik"; | | else if (yb==7) date.yb.value ="Manik"; |
| else if (yb==8) date.yb.value ="Lamat"; | | else if (yb==8) date.yb.value ="Lamat"; |
− | else if (yb==9) date.yb.value ="Muluc"; | + | else if (yb==9) date.yb.value ="Muluk"; |
− | else if (yb==10) date.yb.value ="Oc"; | + | else if (yb==10) date.yb.value ="Ok"; |
| else if (yb==11) date.yb.value ="Chuen"; | | else if (yb==11) date.yb.value ="Chuen"; |
| else if (yb==12) date.yb.value ="Eb"; | | else if (yb==12) date.yb.value ="Eb"; |
Línea 287: |
Línea 287: |
| else if (yb==14) date.yb.value ="Ix"; | | else if (yb==14) date.yb.value ="Ix"; |
| else if (yb==15) date.yb.value ="Men"; | | else if (yb==15) date.yb.value ="Men"; |
− | else if (yb==16) date.yb.value ="Cib"; | + | else if (yb==16) date.yb.value ="Kib"; |
− | else if (yb==17) date.yb.value ="Caban"; | + | else if (yb==17) date.yb.value ="Kaban"; |
− | else if (yb==18) date.yb.value ="Etznab"; | + | else if (yb==18) date.yb.value ="Etz'nab"; |
− | else if (yb==19) date.yb.value ="Cauac"; | + | else if (yb==19) date.yb.value ="Kawac"; |
| else if (yb==0) date.yb.value ="Ahau"; | | else if (yb==0) date.yb.value ="Ahau"; |
| else if (yb>19) date.yb.value = "error"; | | else if (yb>19) date.yb.value = "error"; |