/** 根据生日计算 生肖和星座*/
/** 五个参数分别为:年份 月份 日期 生肖文本框的id 星座文本框的id*/
function getpet (birthyear,month,day,lunarnewyear,constellation)
{
var toyear = 1997;
var birthpet="Ox";
var star = "";
var x = (toyear - birthyear) % 12;
if ((x == 1) || (x == -11))
{
birthpet="鼠";
}
else
{
if (x == 0)
{
birthpet="牛";
}
else
{
if ((x == 11) || (x == -1))
{
birthpet="虎";
}
else
{
if ((x == 10) || (x == -2))
{
birthpet="兔";
}
else
{
if ((x == 9) || (x == -3))
{
birthpet="龙";
}
else
{
if ((x == 8) || (x == -4))
{
birthpet="蛇";
}
else