Línea 273: |
Línea 273: |
| | | |
| <!------baktun radical------> | | <!------baktun radical------> |
− | if (baktun == 1) { | + | if (baktun == 0) { |
| + | date.baktun.value = "0"; |
| + | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="50px">'; |
| + | } |
| + | else if (baktun == 1) { |
| date.baktun.value = "1"; | | date.baktun.value = "1"; |
| document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="50px">'; | | document.getElementById("baktunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="50px">'; |
Línea 353: |
Línea 357: |
| | | |
| <!------katun radical------> | | <!------katun radical------> |
− | if (katun == 1) { | + | if (katun == 0) { |
| + | date.katun.value = "0"; |
| + | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="50px">'; |
| + | } |
| + | else if (katun == 1) { |
| date.katun.value = "1"; | | date.katun.value = "1"; |
| document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="50px">'; | | document.getElementById("katunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="50px">'; |
Línea 433: |
Línea 441: |
| | | |
| <!------tun radical------> | | <!------tun radical------> |
− | if (tun == 1) { | + | if (tun == 0) { |
| + | date.tun.value = "0"; |
| + | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="50px">'; |
| + | } |
| + | else if (tun == 1) { |
| date.tun.value = "1"; | | date.tun.value = "1"; |
| document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="50px">'; | | document.getElementById("tunimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="50px">'; |
Línea 513: |
Línea 525: |
| | | |
| <!------uinal radical------> | | <!------uinal radical------> |
− | if (uinal == 1) { | + | if (uinal == 0) { |
| + | date.uinal.value = "0"; |
| + | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="50px">'; |
| + | } |
| + | else if (uinal == 1) { |
| date.uinal.value = "1"; | | date.uinal.value = "1"; |
| document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="50px">'; | | document.getElementById("uinalimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="50px">'; |
Línea 593: |
Línea 609: |
| | | |
| <!------kin radical------> | | <!------kin radical------> |
− | if (kin == 1) { | + | if (kin == 0) { |
| + | date.kin.value = "0"; |
| + | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="50px">'; |
| + | } |
| + | else if (kin == 1) { |
| date.kin.value = "1"; | | date.kin.value = "1"; |
| document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="50px">'; | | document.getElementById("kinimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="50px">'; |
Línea 678: |
Línea 698: |
| | | |
| <!------tzolkin radical------> | | <!------tzolkin radical------> |
− | if (tzolradical == 1) { | + | if (tzolradical == 0) { |
| + | date.tzolrad.value = "0"; |
| + | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="50px">'; |
| + | } |
| + | else if (tzolradical == 1) { |
| date.tzolrad.value = "1"; | | date.tzolrad.value = "1"; |
| document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="50px">'; | | document.getElementById("tzolradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="50px">'; |
Línea 849: |
Línea 873: |
| | | |
| <!-----haab radical-------> | | <!-----haab radical-------> |
− | if (haabradical == 1) { | + | if (haabradical == 0) { |
| + | date.haabrad.value = "0"; |
| + | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/f/f4/Glifo_0.gif" width="50px">'; |
| + | } |
| + | else if (haabradical == 1) { |
| date.haabrad.value = "1"; | | date.haabrad.value = "1"; |
| document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="50px">'; | | document.getElementById("haabradimg").innerHTML = '<img src="http://cnbguatemala.org/images/0/01/Glifo_1.gif" width="50px">'; |