
d=new Date("January 31,1900")
d1=new Date("February 18,1901")
d2=new Date("February 16,1912")
d3=new Date("February 5,1913")
d4=new Date("February 5,1924")
d5=new Date("January 24,1925")
d6=new Date("January 24,1936")
d7=new Date("February 10,1937")
d8=new Date("February 10,1948")
d9=new Date("January 28,1949")
d10=new Date("January 28,1960")
d11=new Date("February 14,1961")
d12=new Date("January 16,1972")
d13=new Date("February 2,1973")
d14=new Date("February 2,1984")
d15=new Date("February 19,1985")
d16=new Date("February 19,1996")
d17=new Date("February 7,1997")
//end of rat

d18=new Date("February 19,1901")
d19=new Date("February 7,1902")
d20=new Date("February 6,1913")
d21=new Date("January 25,1914")
d22=new Date("January 25,1925")
d23=new Date("February 25,1926")
d24=new Date("February 11,1937")
d25=new Date("January 30,1938")
d26=new Date("January 29,1949")
d27=new Date("February 16,1950")
d28=new Date("February 16,1961")
d29=new Date("February 4,1962")
d30=new Date("February 3,1973")
d31=new Date("January 22,1974")
d32=new Date("February 20,1985")
d33=new Date("February 8,1986")
d34=new Date("February 8,1997")
d35=new Date("January 27,1998")
//End of Ox

d36=new Date("February 8,1902")
d37=new Date("January 28,1903")
d38=new Date("January 26,1914")
d39=new Date("February 13,1915")
d40=new Date("February 13,1926")
d41=new Date("February 1,1927")
d42=new Date("February 31,1938")
d43=new Date("February 18,1939")
d44=new Date("February 17,1950")
d45=new Date("February 5,1951")
d46=new Date("February 5,1962")
d47=new Date("January 24,1963")
d48=new Date("January 23,1974")
d49=new Date("February 10,1975")
d50=new Date("February 9,1986")
d51=new Date("January 28,1987")
d52=new Date("January 28,1997")
d53=new Date("February 5,1999")
//end of Tiger
d54=new Date("January 29,1903")
d55=new Date("February 15,1904")
d56=new Date("February 14,1915")
d57=new Date("February 2,1916")
d58=new Date("February 2,1927")
d59=new Date("January 22,1928")
d60=new Date("February 19,1939")
d61=new Date("February 7,1940")
d62=new Date("February 6,1951")
d63=new Date("January 26,1952")
d64=new Date("January 25,1963")
d65=new Date("February 12,1964")
d66=new Date("February 11,1975")
d67=new Date("January 30,1976")
d68=new Date("January 29,1987")
d69=new Date("February 16,1988")
d70=new Date("February 6,1999")
d71=new Date("January 27,2000")
//end of rabbit
d72=new Date("February 16,1904")
d73=new Date("February 3,1905")
d74=new Date("February 3,1916")
d75=new Date("January 22,1917")
d76=new Date("January 23,1928")
d77=new Date("February 9,1929")
d78=new Date("February 8,1940")
d79=new Date("January 26,1941")
d80=new Date("January 27,1952")
d81=new Date("February 13,1953")
d82=new Date("February 13,1964")
d83=new Date("February 1,1965")
d84=new Date("January 31,1976")
d85=new Date("February 17,1977")
d86=new Date("February 17,1988")
d87=new Date("February 5,1989")
//end of dragon
d88=new Date("February 4,1905")
d89=new Date("January 24,1906")
d90=new Date("January 23,1917")
d91=new Date("February 10,1918")
d92=new Date("February 10,1929")
d93=new Date("January 29,1930")
d94=new Date("January 27,1941")
d95=new Date("February 14,1942")
d96=new Date("February 14,1953")
d97=new Date("February 2,1954")
d98=new Date("February 2,1965")
d99=new Date("January 20,1966")
d100=new Date("February 18,1977")
d101=new Date("February 6,1978")
d102=new Date("February 6,1989")
d103=new Date("January 26,1990")
//end of snake
d104=new Date("January 25,1906")
d105=new Date("February 12,1907")
d106=new Date("February 11,1918")
d107=new Date("January 31,1919")
d108=new Date("January 30,1930")
d109=new Date("February 16,1931")
d110=new Date("February 15,1942")
d111=new Date("February 4,1943")
d112=new Date("February 3,1954")
d113=new Date("January 23,1955")
d114=new Date("January 21,1966")
d115=new Date("February 8,1967")
d116=new Date("February 7,1978")
d117=new Date("January 27,1979")
d118=new Date("January 27,1990")
d119=new Date("February 14,1991")
//end of horse
d120=new Date("February 13,1907")
d121=new Date("February 1,1908")
d122=new Date("February 1,1919")
d123=new Date("February 20,1920")
d124=new Date("February 17,1931")
d125=new Date("February 5,1932")
d126=new Date("February 5,1943")
d127=new Date("January 24,1944")
d128=new Date("January 24,1955")
d129=new Date("February 11,1956")
d130=new Date("February 9,1967")
d131=new Date("January 29,1968")
d132=new Date("January 28,1979")
d133=new Date("February 15,1980")
d134=new Date("February 15,1991")
d135=new Date("February 3,1992")
//end of sheep
d136=new Date("February 2,1908")
d137=new Date("January 21,1909")
d138=new Date("February 20,1920")
d139=new Date("February 7,1921")
d140=new Date("February 6,1932")
d141=new Date("January 25,1933")
d142=new Date("January 25,1944")
d143=new Date("February 12,1945")
d144=new Date("February 12,1956")
d145=new Date("January 30,1957")
d146=new Date("January 30,1968")
d147=new Date("February 16,1969")
d148=new Date("February 16,1980")
d149=new Date("February 4,1981")
d150=new Date("February 4,1992")
d151=new Date("February 22,1993")
//end of monkey
d152=new Date("January 22,1909")
d153=new Date("February 9,1910")
d154=new Date("February 8,1921")
d155=new Date("January 27,1922")
d156=new Date("January 26,1933")
d157=new Date("February 13,1934")
d158=new Date("February 13,1945")
d159=new Date("February 1,1946")
d160=new Date("January 31,1957")
d161=new Date("February 17,1958")
d162=new Date("February 17,1969")
d163=new Date("February 5,1970")
d164=new Date("February 5,1981")
d165=new Date("January 24,1982")
d166=new Date("January 23,1993")
d167=new Date("February 9,1994")
//end of rooster
d168=new Date("February 10,1910")
d169=new Date("January 29,1911")
d170=new Date("January 28,1922")
d171=new Date("February 15,1923")
d172=new Date("February 14,1934")
d173=new Date("February 3,1935")
d174=new Date("February 2,1946")
d175=new Date("January 29,1947")
d176=new Date("February 18,1958")
d177=new Date("February 7,1959")
d178=new Date("February 6,1970")
d179=new Date("January 26,1971")
d180=new Date("January 25,1982")
d181=new Date("February 12,1983")
d182=new Date("February 10,1994")
d183=new Date("February 30,1995")
//end of dog
d184=new Date("January 30,1911")
d185=new Date("February 17,1912")
d186=new Date("February 16,1923")
d187=new Date("February 4,1924")
d188=new Date("February 4,1935")
d189=new Date("January 23,1936")
d190=new Date("January 22,1947")
d191=new Date("February 9,1948")
d192=new Date("February 8,1959")
d193=new Date("January 27,1960")
d194=new Date("January 27,1971")
d195=new Date("January 15,1972")
d196=new Date("February 13,1983")
d197=new Date("February 1,1984")
d198=new Date("January 31,1995")
d199=new Date("February 18,1996")
//end of boar





function display1(abc)
{
dd=new Date(abc)
if((dd>=d) && (dd<=d1))
window.location="mrat.htm"
else if((dd>=d2) && (dd<=d3))
window.location="wrat.htm"
else if((dd>=d4) && (dd<=d5))
window.location="woorat.htm"
else if((dd>=d6) && (dd<=d7))
window.location="frat.htm"
else if((dd>=d8) && (dd<=d9))
window.location="erat.htm"
else if((dd>=d10) && (dd<=d11))
window.location="mrat.htm"
else if((dd>=d12) && (dd<=d13))
window.location="wrat.htm"
else if((dd>=d14) && (dd<=d15))
window.location="woorat.htm"
else if((dd>=d16) && (dd<=d17))
window.location="frat.htm"
//end of rat

else if((dd>=d18) && (dd<=d19))
window.location="mox.htm"
else if((dd>=d20) && (dd<=d21))
window.location="wox.htm"
else if((dd>=d22) && (dd<=d23))
window.location="wooox.htm"
else if((dd>=d24) && (dd<=d25))
window.location="fox.htm"
else if((dd>=d26) && (dd<=d27))
window.location="eox.htm"
else if((dd>=d28) && (dd<=d29))
window.location="mox.htm"
else if((dd>=d30) && (dd<=d31))
window.location="wox.htm"
else if((dd>=d32) && (dd<=d33))
window.location="wooox.htm"
else if((dd>=d34) && (dd<=d35))
window.location="fox.htm"
//end of ox

else if((dd>=d36) && (dd<=d37))
window.location="wtiger.htm"
else if((dd>=d38) && (dd<=d39))
window.location="wootiger.htm"
else if((dd>=d40) && (dd<=d41))
window.location="ftiger.htm"
else if((dd>=d42) && (dd<=d43))
window.location="etiger.htm"
else if((dd>=d44) && (dd<=d45))
window.location="mtiger.htm"
else if((dd>=d46) && (dd<=d47))
window.location="wtiger.htm"
else if((dd>=d48) && (dd<=d49))
window.location="wootiger.htm"
else if((dd>=d50) && (dd<=d51))
window.location="ftiger.htm"
else if((dd>=d52) && (dd<=d53))
window.location="etiger.htm"
//end of tiger
else if((dd>=d54) && (dd<=d55))
window.location="wrabbit.htm"
else if((dd>=d56) && (dd<=d57))
window.location="woorabbit.htm"
else if((dd>=d58) && (dd<=d59))
window.location="frabbit.htm"
else if((dd>=d60) && (dd<=d61))
window.location="erabbit.htm"
else if((dd>=d62) && (dd<=d63))
window.location="mrabbit.htm"
else if((dd>=d64) && (dd<=d65))
window.location="wrabbit.htm"
else if((dd>=d66) && (dd<=d67))
window.location="woorabbit.htm"
else if((dd>=d68) && (dd<=d69))
window.location="frabbit.htm"
else if((dd>=d70) && (dd<=d71))
window.location="erabbit.htm"
//end of rabbit
else if((dd>=d72) && (dd<=d73))
window.location="woodrag.htm"
else if((dd>=d74) && (dd<=d75))
window.location="fdrag.htm"
else if((dd>=d76) && (dd<=d77))
window.location="edrag.htm"
else if((dd>=d78) && (dd<=d79))
window.location="mdrag.htm"
else if((dd>=d80) && (dd<=d81))
window.location="wdrag.htm"
else if((dd>=d82) && (dd<=d83))
window.location="woodrag.htm"
else if((dd>=d84) && (dd<=d85))
window.location="fdrag.htm"
else if((dd>=d86) && (dd<=d87))
window.location="edrag.htm"
//end of dragon
else if((dd>=d88) && (dd<=d89))

window.location="woosnake.htm"
else if((dd>=d90) && (dd<=d91))

window.location="fsnake.htm"
else if((dd>=d92) && (dd<=d93))

window.location="esnake.htm"
else if((dd>=d94) && (dd<=d95))

window.location="msnake.htm"
else if((dd>=d96) && (dd<=d97))

window.location="wsnake.htm"
else if((dd>=d98) && (dd<=d99))

window.location="woosnake.htm"
else if((dd>=d100) && (dd<=d101))

window.location="fsnake.htm"
else if((dd>=d102) && (dd<=d103))

window.location="esnake.htm"
//end of snake
else if((dd>=d104) && (dd<=d105))

window.location="fhorse.htm"
else if((dd>=d106) && (dd<=d107))

window.location="ehorse.htm"
else if((dd>=d108) && (dd<=d109))

window.location="mhorse.htm"
else if((dd>=d110) && (dd<=d111))

window.location="whorse.htm"
else if((dd>=d112) && (dd<=d113))

window.location="woohorse.htm"
else if((dd>=d114) && (dd<=d115))

window.location="fhorse.htm"

else if((dd>=d116) && (dd<=d117))

window.location="ehorse.htm"
else if((dd>=d118) && (dd<=d119))

window.location="mhorse.htm"
//end of horse
else if((dd>=d120) && (dd<=d121))
window.location="fsheep.htm"
else if((dd>=d122) && (dd<=d123))

window.location="esheep.htm"
else if((dd>=d124) && (dd<=d125))
window.location="msheep.htm"
else if((dd>=d126) && (dd<=d127))
window.location="wsheep.htm"
else if((dd>=d128) && (dd<=d129))
window.location="woosheep.htm"
else if((dd>=d130) && (dd<=d131))
window.location="fsheep.htm"
else if((dd>=d132) && (dd<=d133))
window.location="esheep.htm"
else if((dd>=d134) && (dd<=d135))
window.location="msheep.htm"
//end of sheep
else if((dd>=d136) && (dd<=d137))
window.location="emonkey.htm"
else if((dd>=d138) && (dd<=d139))
window.location="mmonkey.htm"
else if((dd>=d140) && (dd<=d141))
window.location="wmonkey.htm"
else if((dd>=d142) && (dd<=d143))
window.location="woomonkey.htm"
else if((dd>=d144) && (dd<=d145))

window.location="fmonkey.htm"
else if((dd>=d146) && (dd<=d147))

window.location="emonkey.htm"
else if((dd>=d148) && (dd<=d149))

window.location="mmonkey.htm"
else if((dd>=d150) && (dd<=d151))

window.location="wmonkey.htm"
//end of monkey
else if((dd>=d152) && (dd<=d153))

window.location="erooster.htm"
else if((dd>=d154) && (dd<=d155))

window.location="mrooster.htm"
else if((dd>=d156) && (dd<=d157))

window.location="wrooster.htm"
else if((dd>=d158) && (dd<=d159))

window.location="woorooster.htm"
else if((dd>=d160) && (dd<=d161))

window.location="frooster.htm"
else if((dd>=d162) && (dd<=d163))

window.location="erooster.htm"
else if((dd>=d164) && (dd<=d165))

window.location="mrooster.htm"
else if((dd>=d166) && (dd<=d167))

window.location="wrooster.htm"
//enf of rooster
else if((dd>=d168) && (dd<=d169))
window.location="mdog.htm"
else if((dd>=d170) && (dd<=d171))
window.location="wdog.htm"
else if((dd>=d172) && (dd<=d173))
window.location="woodog.htm"
else if((dd>=d174) && (dd<=d175))
window.location="fdog.htm"
else if((dd>=d176) && (dd<=d177))
window.location="edog.htm"
else if((dd>=d178) && (dd<=d179))
window.location="mdog.htm"
else if((dd>=d180) && (dd<=d181))
window.location="wdog.htm"
else if((dd>=d182) && (dd<=d183))
window.location="woodog.htm"
//end of dog
else if((dd>=d184) && (dd<=d185))
window.location="mboar.htm"
else if((dd>=d186) && (dd<=d187))
window.location="wboar.htm"
else if((dd>=d188) && (dd<=d189))
window.location="wooboar.htm"
else if((dd>=d190) && (dd<=d191))
window.location="fboar.htm"
else if((dd>=d192) && (dd<=d193))
window.location="eboar.htm"
else if((dd>=d194) && (dd<=d195))
window.location="mboar.htm"
else if((dd>=d196) && (dd<=d197))
window.location="wboar.htm"
else if((dd>=d198) && (dd<=d199))
window.location="wooboar.htm"
//end of boar
else{alert("Try again")}
}



function display(ff)
{
flag=true
str=ff.select1.value
str1=ff.select2.value
str2=ff.text1.value
if((str=="April"||str=="June"||str=="November"||str=="September") && (str1=="31"))
	{
	flag=false
	alert("check date")
	ff.select2.focus()
	}
	else if((str=="February") && ((str1=="30")||(str1=="31") || (str1=="29")))
	{
		if((str1=="29") && (str2%4==0))
		{
		flag=true
		}
		else
		{
		flag=false
		alert("check date")
		ff.select2.focus()
		}
	}
	else
	{
	//alert("date is right")
	}

str3=str + str1 + "," + str2
	if(flag==true)
	{
	display1(str3)
	}

}

