function junishi() {

var DateDuJour = new Date();
var ThisYear = DateDuJour.getYear();
var ThisYear2 = ThisYear;
var version = navigator.appVersion.charAt(0);

if (ThisYear > 99 && ThisYear < 1970) ThisYear = ThisYear + 1900;

ThisYear2 = ThisYear;
BirthYear = document.uranai.birthyear.value;
if (BirthYear == "" || BirthYear <= 0)
{
alert('The year must be greater than 0!');
document.uranai.birthyear.value = "";
document.uranai.birthyear.focus();
}

else
{
ThisYear = ThisYear % 12; BirthYear = BirthYear % 12;

switch (BirthYear)
{
case 0:
{ if (BirthYear == ThisYear)
{
alert('Your sign corresponds to the one of the current year.\n' + ThisYear2 + ' is a great year for you!');
if (version >= 3) document.uranai.sign.value = " Monkey"; break;
}
else
{ if (version >= 3) document.uranai.sign.value = " Monkey"; break; }
}
case 1:
{ if (BirthYear == ThisYear)
{
alert('Your sign corresponds to the one of the current year.\n' + ThisYear2 + ' is a great year for you!');
if (version >= 3) document.uranai.sign.value = " Cock"; break;
}
else
{ if (version >= 3) document.uranai.sign.value = " Cock"; break; }
}
case 2:
{ if (BirthYear == ThisYear)
{
alert('Your sign corresponds to the one of the current year.\n' + ThisYear2 + ' is a great year for you!');
if (version >= 3) document.uranai.sign.value = " Dog"; break;
}
else
{ if (version >= 3) document.uranai.sign.value = " Dog"; break; }
}
case 3:
{ if (BirthYear == ThisYear)
{
alert('Your sign corresponds to the one of the current year.\n' + ThisYear2 + ' is a great year for you!');
if (version >= 3) document.uranai.sign.value = " Boar"; break;
}
else
{ if (version >= 3) document.uranai.sign.value = " Boar"; break; }
}
case 4:
{ if (BirthYear == ThisYear)
{
alert('Your sign corresponds to the one of the current year.\n' + ThisYear2 + ' is a great year for you!');
if (version >= 3) document.uranai.sign.value = " Rat"; break;
}
else
{ if (version >= 3) document.uranai.sign.value = " Rat"; break; }
}
case 5:
{ if (BirthYear == ThisYear)
{
alert('Your sign corresponds to the one of the current year.\n' + ThisYear2 + ' is a great year for you!');
if (version >= 3) document.uranai.sign.value = " Ox"; break;
}
else
{ if (version >= 3) document.uranai.sign.value = " Ox"; break; }
}
case 6:
{ if (BirthYear == ThisYear)
{
alert('Your sign corresponds to the one of the current year.\n' + ThisYear2 + ' is a great year for you!');
if (version >= 3) document.uranai.sign.value = " Tiger"; break;
}
else
{ if (version >= 3) document.uranai.sign.value = " Tiger"; break; }
}
case 7:
{ if (BirthYear == ThisYear)
{
alert('Your sign corresponds to the one of the current year.\n' + ThisYear2 + ' is a great year for you!');
if (version >= 3) document.uranai.sign.value = " Hase"; break;
}
else
{ if (version >= 3) document.uranai.sign.value = " Hase"; break; }
}
case 8:
{ if (BirthYear == ThisYear)
{
alert('Your sign corresponds to the one of the current year.\n' + ThisYear2 + ' is a great year for you!');
if (version >= 3) document.uranai.sign.value = " Dragon"; break;
}
else
{ if (version >= 3) document.uranai.sign.value = " Dragon"; break; }
}
case 9:
{ if (BirthYear == ThisYear)
{
alert('Your sign corresponds to the one of the current year.\n' + ThisYear2 + ' is a great year for you!');
if (version >= 3) document.uranai.sign.value = " Snake"; break;
}
else
{ if (version >= 3) document.uranai.sign.value = " Snake"; break; }
}
case 10:
{ if (BirthYear == ThisYear)
{
alert('Your sign corresponds to the one of the current year.\n' + ThisYear2 + ' is a great year for you!');
if (version >= 3) document.uranai.sign.value = " Horse"; break;
}
else
{ if (version >= 3) document.uranai.sign.value = " Horse"; break; }
}
case 11:
{ if (BirthYear == ThisYear)
{
alert('Your sign corresponds to the one of the current year.\n' + ThisYear2 + ' is a great year for you!');
if (version >= 3) document.uranai.sign.value = " Goat"; break;
}
else
{ if (version >= 3) document.uranai.sign.value = " Goat"; break; }
} } } }

function KeyInhib()  // Prevents users from entering letters and performing a return.
{
if (event.keyCode != 13 && (event.keyCode <= 47 || event.keyCode >= 58)) event.returnValue = false;
else
{
if (event.keyCode == 13) event.returnValue = false;
}
} 
