function SetSunDate()
{
var RightNow=new Date();
var dy=RightNow.getDate();
var mth=RightNow.getMonth()+1;

if (mth == 1 && dy >=21 || mth == 2 && dy <=19){sign="Aquarius";dates="Jan 21 - Feb 19<br>";features=" Ruled by Uranus - Planet of Progress <br> Element: Air :: Color: Electric blue <br> Gem: Amethyst :: Metal: Uranium"}
if (mth == 2 && dy >=20 || mth == 3 && dy <=20){sign="Pisces";dates="Feb 20 - Mar 20<br>";features=" Ruled by Neptune - Planet of  Inspiration <br> Element: Water :: Color: Soft Sea Green <br> Gem: Moonstone :: Metal: Tin"}
if (mth == 3 && dy >=21 || mth == 4 && dy <=20){sign="Aries :";dates=" Mar 21 - Apr 20<br>";features=" Ruled by Mars - Planet of Survival <br> Element: Fire :: Color: Red <br> Gemstone: Diamond"}
if (mth == 4 && dy >=21 || mth == 5 && dy <=21){sign="Taurus";dates="Apr 21 - May 21<br>";features=" Ruled by Venus - Planet of Love and Money <br> Element: Earth :: Color: Pale blue <br>: Gem: Sapphire :: Metal: Copper"}
if (mth == 5 && dy >=22 || mth == 6 && dy <=21){sign="Gemeni";dates="May 22 - Jun21<br>";features=" Ruled by Mercury - Planet of Communication <br> Element: Air :: Color: All shades of yellow <br> Gem: Agate :: Metal: Mercury"}
if (mth == 6 && dy >=22 || mth == 7 && dy <=22){sign="Cancer";dates="Jun 22 - Jul 22<br>";features=" Ruled by the Moon - Planet of Emotions <br> Element: Water :: Color: shades of Gray and Green <br> Gem: Pearl :: Metal: Silver"}
if (mth == 7 && dy>=23 || mth == 8 && dy <=21){sign="Leo";dates="Jul 23 - Aug 21<br>";features=" Ruled by the Sun - Planet of Leadership <br> Element: Fire :: Color: Golden yellow and Orange <br> Gem: Ruby :: Metal: Gold"}
if (mth == 8 && dy >=22 || mth == 9 && dy <=23){sign="Virgo";dates="Aug 22 - Sep 23<br>";features=" Ruled by Mercury - Planet of Communication <br> Element: Earth :: Color: Dark blues, Grays and Browns <br> Gem: Sardonyx :: Metal: Mercury - An Earth Sign"}
if (mth == 9 && dy >=24 || mth == 10 && dy <=23){sign="Libra";dates="Sep 24 - Oct 23<br>";features=" Ruled by Venus - Planet of Love and Money <br> Element: Air :: Color: Pale blue and pink <br> Gem: Sapphire :: Metal: Copper"}
if (mth == 10 && dy >=24 || mth == 11 && dy <=22){sign="Scorpio";dates="Oct 24 - Nov 22<br>";features=" Ruled by Pluto - Planet of Regeneration <br> Element: Water :: Color: Dark Red and Maroon <br> Gem: Opal :: Metal: Iron"}  
if (mth == 11 && dy >=23 || mth == 12 && dy <=22){sign="Sagittarius";dates="Nov 23 - Dec 22<br>";features=" Ruled by Jupiter - Planet of Expansion <br> Element: Fire :: Color: Purple <br> Gem: Topaz :: Metal: Iron"}
if (mth == 12 && dy >=23 || mth == 1 && dy <=20){sign="Capricorn";dates = "Dec 23 - Jan 20<br>";features=" Ruled by Saturn - Planet of  Authority <br> Element: Earth :: Color: Dark Gray, Dark Green and Brown <br> Gem: Turquoise :: Metal: Lead"}
sunsigns.innerHTML="Today's Sun Sign :: "+sign+dates+features
}

function signs() {
var start = 1901; birthyear = document.zodiac.year.value; date=document.zodiac.date.selectedIndex; month=document.zodiac.month.selectedIndex;

if (birthyear%4=="0"){FebVal=30}else{FebVal=29}

if (month == 1 && date >=21 || month == 2 && date <=19) {sign="Aquarius";zdate="Jan 21 - Feb 19";traits="Friendly and humanitarian; honest and loyal; original and inventive; independent and intellectual"}
if (month == 2 && date >=20 || month == 3 && date <=20) {sign = "Pisces";zdate="Feb 20 - Mar 20";traits="Imaginative and sensitive; compassionate and kind; selfless and unworldly; intuitive and sympathetic"}
if (month == 2 && date > 29) {alert("Please select a number under "+FebVal+"  please!")}
if (month == 3 && date >=21 || month == 4 && date <=20) {sign = "Aries";zdate="Mar 21 - Apr 20";traits="Adventurous and energetic; pioneering and courageous; enthusiastic and confident; dynamic and quick-witted"}
if (month == 4 && date >=21 || month == 5 && date <=21) {sign = "Taurus";zdate="Apr 21 - May 21";traits="Patient and reliable; warm-hearted and loving; persistent and determined; placid and security loving"}
if (month == 4 && date > 30) {alert("Please select a number under 31!")}
if (month == 5 && date >=22 || month == 6 && date <=21) {sign = "Gemini";zdate="May 22 - Jun 21";traits="Adaptable and versatile; communicative and witty; intellectual and eloquent; youthful and lively"}
if (month == 6 && date >=22 || month == 7 && date <=22) {sign = "Cancer";zdate="Jun 22 - Jul 22";traits="Emotional and loving; intuitive and imaginative; shrewd and cautious; protective and sympathetic";}
if (month == 6 && date > 30) {alert("Please select a number under 31!")}
if (month == 7 && date >=23 || month == 8 && date <=21) {sign = "Leo";zdate="Jul 23 - Aug 21";traits="Generous and warmhearted; creative and enthusiastic; broad-minded and expansive; faithful and loving";}
if (month == 8 && date >=22 || month == 9 && date <=23) {sign = "Virgo";zdate="Aug 22 - Sep 23";traits="Modest and shy; meticulous and reliable; practical and diligent; intelligent and analytical"}
if (month == 9 && date >=24 || month == 10 && date <=23) {sign = "Libra";zdate="Sep 24 - Oct 23";traits="Diplomaitic and urbane; romantic and charming; easygoing and sociable; idealistic and peaceable"}
if (month == 9 && date > 30) {alert("Please select a number under 31!")}
if (month == 10 && date >=24 || month == 11 && date <=22) {sign = "Scorpio";zdate="Oct 24 - Nov 22";traits="Determined and forceful; emotional and intuitive; powerful and passionate; exciting and magnetic"}  
if (month == 11 && date >=23 || month == 12 && date <=22) {sign = "Sagittarius";zdate="Nov 23 - Dec 22";traits="Optimistic and freedom-loving; jovial and good-humored; honest and straightforward; intellectual and philosophical"}
if (month == 11 && date > 30) {alert("Please select a number under 31!")}
if (month == 12 && date >=23 || month == 1 && date <=20) {sign = "Capricorn";zdate="Dec 23 - Jan 20";traits="Practical and prudent; ambitious and disciplined; patient and careful; humorous and reserved";}

x = (start - birthyear) % 12
if (x == 1 || x == -11) {csigns = "Rat";}
if (x == 0) {csigns = "Ox";}
if (x == 11 || x == -1) {csigns = "Tiger";}
if (x == 10 || x == -2) {csigns = "Rabbit";}
if (x == 9 || x == -3)  {csigns = "Dragon";}
if (x == 8 || x == -4)  {csigns ="Snake";}
if (x == 7 || x == -5)  {csigns = "Horse";}
if (x == 6 || x == -6)  {csigns = "Ram";}
if (x == 5 || x == -7)  {csigns = "Monkey";}
if (x == 4 || x == -8)  {csigns = "Rooster";}
if (x == 3 || x == -9)  {csigns = "Dog";}
if (x == 2 || x == -10)  {csigns = "Boar/Pig";} 

zsign.innerHTML="&nbsp;&nbsp;<b>Sun Sign:</b>  "+sign;
zzdate.innerHTML="&nbsp;&nbsp;<b>Zodiac dates:</b>  "+zdate;
ztraits.innerHTML="&nbsp;&nbsp;<b>Zodiac traits:</b>  "+traits;
csign.innerHTML="&nbsp;&nbsp;<b>Chinese Sign:</b> Year of the "+csigns
}

function addbookmark()
{
if (document.all)
{window.external.AddFavorite(document.location,document.title)}
}

var clockID=0
function UpdateClock()
{
if (clockID)
{clearTimeout(clockID);
clockID = 0;}

var H,M,S,Mth,Day,AMPM,Yr
var tDate = new Date();
Day=tDate.getDate()
if (Day<10)
{Day="0"+Day;}

Mth=tDate.getMonth()+1
if (Mth==1){Mth="Jan"}
if (Mth==2){Mth="Feb"}
if (Mth==3){Mth="Mar"}
if (Mth==4){Mth="Apr"}
if (Mth==5){Mth="May"}
if (Mth==6){Mth="Jun"}
if (Mth==7){Mth="Jul"}
if (Mth==8){Mth="Aug"}
if (Mth==9){Mth="Sep"}
if (Mth==10){Mth="Oct"}
if (Mth==11){Mth="Nov"}
if (Mth==12){Mth="Dec"}

Yr=tDate.getFullYear()

H=tDate.getHours();
if (H>11)
{AMPM="pm";}
else
{AMPM="am";}

if (H>12)
{H=H-12;}

if (H<10)
{H="0"+H;}

M=tDate.getMinutes()
if (M<10)
{M="0"+M;}

S=tDate.getSeconds()
if (S<10)
{S="0"+S;}

theTime.innerHTML = Day + " " + Mth + " " + Yr + "::"
+ H + ":" + M + ":" + S + AMPM;
clockID = setTimeout("UpdateClock()",1000);
}

function StartClock() {
clockID = setTimeout("UpdateClock()",1000);
}

function KillClock() {
if (clockID)
 {clearTimeout(clockID);
 clockID = 0;}
}


