Widget:Calendario maya
<form name="dayForm" style="margin:0; padding:0">
Calendario maya
<tbody>
</tbody>
|
<tbody>
|
</form>
<script>
yb=(tzolkin-haabradical)%20; if(yb <=0) yb=yb + 20;
if (yb==1) {date.yb.value ="Imix"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==2) {date.yb.value ="Ik"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==3) {date.yb.value ="Ak'bal"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==4) {date.yb.value ="K'an"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==5) {date.yb.value ="Chikchan"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==6) {date.yb.value ="Kimi"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==7) {date.yb.value ="Manik"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==8) {date.yb.value ="Lamat"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==9) {date.yb.value ="Muluk"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==10) {date.yb.value ="Ok"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==11) {date.yb.value ="Chuen"; document.getElementById("tzolkinimg").innerHTML= '<img src="http://cnbguatemala.org/wiki/Archivo:Chuen.gif" width="64px">';} else if (yb==12) {date.yb.value ="Eb"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==13) {date.yb.value ="Ben"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==14) {date.yb.value ="Ix"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==15) {date.yb.value ="Men"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==16) {date.yb.value ="Kib"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==17) {date.yb.value ="Kaban"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==18) {date.yb.value ="Etz'nab"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==19) {date.yb.value ="Kawak"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';} else if (yb==0) {date.yb.value ="Ajau"; document.getElementById("tzolkinimg").innerHTML= '<img src="" width="64px">';}
ybrad = (tzolradical-haabradical-(haabkin * 7))%13
if(ybrad <=0) ybrad=ybrad + 13; date.ybrad.value =ybrad;
}
function getjulian(year,month,day){
if (month < 3) {month += 12; year -= 1};
a = Math.floor(year/100); b = 2-a+Math.floor(a/4); j = Math.floor(365.25*(year+4716))+ Math.floor(30.6001*(month+1))+ day+b-1524;
return j;
} // -->
</script>