//By Sandeep Gangadharan (http://www.sivamdesign.com/home/)
//For this script and more, visit http://javascriptkit.com

function sunsign() {
   document.form1.day.selectedIndex;
   document.form1.month.selectedIndex;
//   document.form1.sign.value;

// NOTE Computers start counting with 0 ex:  months 0-11  days 0-30
   if (document.form1.month.selectedIndex == 0 && document.form1.day.selectedIndex <=18) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Capricorn.swf\" alt=\"Capricorn\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "capricorn.swf'  alt='Capricorn' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "capricorn.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 0 && document.form1.day.selectedIndex >=19) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Aquarius.swf\" alt=\"Aquarius\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Aquarius.swf' alt='Aquarius' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "aquarius.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 1 && document.form1.day.selectedIndex <=17) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Aquarius.swf\" alt=\"Aquarius\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Aquarius.swf' alt='Aquarius' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "aquarius.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 1 && document.form1.day.selectedIndex >=17) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Pisces.swf\" alt=\"Pisces\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Pisces.swf' alt='Pisces' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "pisces.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 2 && document.form1.day.selectedIndex <=19) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Pisces.swf\" alt=\"Pisces\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Pisces.swf' alt='Pisces' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "Pisces.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 2 && document.form1.day.selectedIndex >=20) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Aries.swf\" alt=\"Aries\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Aries.swf' alt='Aries' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "aries.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 3 && document.form1.day.selectedIndex <=18) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Aries.swf\" alt=\"Aries\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Aries.swf' alt='Aries' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "aries.htm' width='275' height='200'></iframe>"; }


   if (document.form1.month.selectedIndex == 3 && document.form1.day.selectedIndex >=19) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Taurus.swf\" alt=\"Taurus\" border=\"0\"><br>" + tagline + "</a>";  document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Taurus.swf' alt='Taurus' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "taurus.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 4 && document.form1.day.selectedIndex <=19) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Taurus.swf\" alt=\"Taurus\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Taurus.swf' alt='Taurus' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "taurus.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 4 && document.form1.day.selectedIndex >=20) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Gemini.swf\" alt=\"Gemini\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Gemini.swf' alt='Gemini' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "gemini.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 5 && document.form1.day.selectedIndex <=19) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Gemini.swf\" alt=\"Gemini\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Gemini.swf' alt='Gemini' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "gemini.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 5 && document.form1.day.selectedIndex >=20) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Cancer.swf\" alt=\"Cancer\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Cancer.swf' alt='Cancer' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "cancer.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 6 && document.form1.day.selectedIndex <=21) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Cancer.swf\" alt=\"Cancer\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Cancer.swf' alt='Cancer' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "cancer.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 6 && document.form1.day.selectedIndex >=22) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Leo.swf\" alt=\"Leo\" border=\"0\"><br>" + tagline + "</a>";  document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Leo.swf' alt='Leo' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "leo.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 7 && document.form1.day.selectedIndex <=21) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Leo.swf\" alt=\"Leo\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Leo.swf' alt='Leo' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "leo.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 7 && document.form1.day.selectedIndex >=22) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Virgo.swf\" alt=\"Virgo\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Virgo.swf' alt='Virgo' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "virgo.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 8 && document.form1.day.selectedIndex <=21) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Virgo.swf\" alt=\"Virgo\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Virgo.swf' alt='Virgo' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "virgo.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 8 && document.form1.day.selectedIndex >=22) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Libra.swf\" alt=\"Libra\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Libra.swf' alt='Libra' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "libra.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 9 && document.form1.day.selectedIndex <=21) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Libra.swf\" alt=\"Libra\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Libra.swf' alt='Libra' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "libra.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 9 && document.form1.day.selectedIndex >=22) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Scorpio.swf\" alt=\"Scorpio\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Scorpio.swf' alt='Scorpio' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "scorpio.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 10 && document.form1.day.selectedIndex <=20) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Scorpio.swf\" alt=\"Scorpio\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Scorpio.swf' alt='Scorpio' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "scorpio.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 10 && document.form1.day.selectedIndex >=21) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Sagittarius.swf\" alt=\"Sagittarius\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Sagittarius.swf' alt='Sagittarius' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "sagittarius.htm' width='275' height='200'></iframe>"}

   if (document.form1.month.selectedIndex == 11 && document.form1.day.selectedIndex <=20) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Sagittarius.swf\" alt=\"Sagittarius\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Sagittarius.swf' alt='Sagittarius' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "sagittarius.htm' width='275' height='200'></iframe>"}


   if (document.form1.month.selectedIndex == 11 && document.form1.day.selectedIndex >=21) 
{document.getElementById("sign").value = "<a href=\"" + siteurl + "\"><embed src=\""+ siteurl + Himagepath + "Capricorn.swf\" alt=\"Capricorn\" border=\"0\"><br>" + tagline + "</a>"; document.getElementById("image").innerHTML = "<embed src='" + siteurl + Himagepath + "Capricorn.swf' alt='Capricorn' class='h_image'></embed><iframe src='" + siteurl + Himagepath + "capricorn.htm' width='275' height='200'></iframe>"}


   if (document.form1.month.selectedIndex == "x" || document.form1.day.selectedIndex == "y") return;

 }

function validate() {
   if (document.form1.month.selectedIndex == 1 && document.form1.day.selectedIndex > 28) {alert("There are only a maximum of 29 days in February."); return false;}
   if (document.form1.month.selectedIndex == 3 && document.form1.day.selectedIndex == 30) {alert("There are only 30 days in April."); return false;}
   if (document.form1.month.selectedIndex == 5 && document.form1.day.selectedIndex == 30) {alert("There are only 30 days in June."); return false;}
   if (document.form1.month.selectedIndex == 8 && document.form1.day.selectedIndex == 30) {alert("There are only 30 days in September."); return false;}
   if (document.form1.month.selectedIndex == 10 && document.form1.day.selectedIndex == 30) {alert("There are only 30 days in November."); return false;}
else{
return true;
}
 }
