function lunarCalAdjust() {
	if (year >= 1900 && year <=2020) {
		lunar="0131 0219 0208 0129 0216 0204 0125 0213 0202 0122 0210 0130 ";
		lunar+="0218 0206 0126 0214 0203 0123 0211 0201 0220 0208 0128 0216 ";
		lunar+="0205 0125 0213 0202 0123 0210 0130 0217 0206 0126 0214 0204 ";
		lunar+="0124 0211 0131 0219 0204 0127 0215 0205 0125 0213 0202 0122 ";
		lunar+="0210 0129 0217 0206 0127 0214 0203 0124 0212 0131 0218 0208 ";
		lunar+="0128 0215 0205 0125 0213 0202 0121 0209 0130 0217 0206 0127 ";
		lunar+="0215 0203 0123 0211 0131 0218 0207 0128 0216 0205 0125 0213 ";
		lunar+="0202 0220 0209 0129 0217 0206 0127 0215 0204 0123 0210 0131 ";
		lunar+="0219 0207 0128 0216 0205 0124 0212 0201 0122 0209 0129 0218 ";
		lunar+="0207 0126 0214 0203 0123 0210 0131 0219 0208 0128 0216 0205 ";
		lunar+="0125 ";

		chk=parseFloat(((m)*100)+day);
//		chk=parseFloat(((m+1)*100)+day);
		chk1=year-1900;

		if (chk < lunar.substring(chk1*5,(chk1*5)+4)) {
			year--;
			adjust=1;
			}
		}
}
		
function get_zodiac(form) {
	zsign=new Array(12);
	zsign[0]="Rat";
	zsign[1]="Ox";
	zsign[2]="Tiger";
	zsign[3]="Rabbit";
	zsign[4]="Dragon";
	zsign[5]="Snake";
	zsign[6]="Horse";
	zsign[7]="Goat";
	zsign[8]="Monkey";
	zsign[9]="Rooster";
	zsign[10]="Dog";
	zsign[11]="Pig";

	zsign1=new Array(12);
	zsign1[0]="rat";
	zsign1[1]="ox";
	zsign1[2]="tiger";
	zsign1[3]="rabbit";
	zsign1[4]="dragon";
	zsign1[5]="snake";
	zsign1[6]="horse";
	zsign1[7]="goat";
	zsign1[8]="monkey";
	zsign1[9]="rooster";
	zsign1[10]="dog";
	zsign1[11]="pig";

	zsign2=new Array(12);
	zsign2[0]="Rat people are born under the sign of charm and aggressiveness. They are expressive and can be talkative sometimes. They like to go to parties and usually spend quite some time chatting with their friends. Although the Rat can be quiet sometime, it is rare to catch a Rat sitting quietly. ";
	zsign2[1]="Ox people are hard-working and persistent, they can stick at a task longer and go at it harder than anybody. They believe in themselves and tend to classify almost everything into two basic categories, bad and good. They hold up their high standards as a model and severely judge those who don't aspire to maintain these same ideals. ";
	zsign2[2]="\"Born leader\" is the key word for the Tigers. They are always in the lead and are most likely the ones to cry out \"Let's Go\"! Noble and Fearless, Tigers are respected for their courage, even from those working against them. Tiger people are daring fighters, they are capable of standing up to the better end for what they think is right. ";
	zsign2[3]="The rabbit is one of the most delicate animals among all 12 animals. Rabbits are usually kind and sweet and of course, popular people. Nobody ignores them, for they are good company and know how to make the best of themselves. A rabbit's home is always a beautiful one cause Rabbit people are famous for their artistic sense and good taste. ";
	zsign2[4]="As the noble animal symbol that represents the Chinese emperors, Dragons are born leaders and masters of ceremonies. And because of this, every Chinese parent is hoping to have a Dragon child. Dragon people get things started and keep them moving. They are feisty and gifted with power and luck. Most people look up to the Dragon. ";
	zsign2[5]="Snakes have always been the seducers of human beings. If you know the story of \"The White Snake\", you will understand what I mean. In reality, Snake people are born charming and popular. Snakes are spotlight magnets, and they will not be ignored. Peer group attention and public recognition are the least of what he expects. ";
	zsign2[6]="Horse people are active and energetic. They got plenty of sex-appeal and know how to dress. Horses love to be in the crowd, maybe that is why they can usually be seen in such occasions like concerts, theaters, meetings, sporting occasions, and of course, parties. ";
	zsign2[7]="Goat people are elegant, charming, artistic, gifted and fond of nature. People born under this sign are also the most creative. They are also very delicate, their good manners and charms always bring many admirers and friends. ";
	zsign2[8]="Monkeys are fun and loving persons who are always cheerful and energetic. They are very clever. Give a monkey a boring book to read and he'll turn it into a Musical. Better yet, he'll invite everyone to see it free! That's how talented, creative and generous monkeys usually are. ";
	zsign2[9]="Rooster people are very observant. And most of the time, they are very accurate and precise with their observation. Perhaps, you can say that Roosters have a very keen \"sixth-sense\". With Roosters, what you see is exactly what you get. ";
	zsign2[10]="Dog people are honest, faithful and sincere. They respect tradition and value honor, and enjoy helping people. The Dog is very righteous, and always is the first to speak out against injustice. He is not good at socializing with friends, and rarely shines in company, but he is intelligent, caring and a good listener. ";
	zsign2[11]="Pigs are models of sincerity, purity, tolerance, and honor. When you first meet them, Pigs seem too good to be true. They are careful and caring, obliging and chivalrous. Put your trust in him, he won't let you down and he will never try to. The Pigs simply want to do everything right. ";

	earthE=new Array(5);
	earthE[0]="Fire";
	earthE[1]="Earth";
	earthE[2]="Metal";
	earthE[3]="Water";
	earthE[4]="Wood";

	earthE1=new Array(5);
	earthE1[0]="fire";
	earthE1[1]="earth";
	earthE1[2]="metal";
	earthE1[3]="water";
	earthE1[4]="wood";

	earthE2=new Array(5);
	earthE2[0]="People born in the years of the Fire element are born-leaders. They are decisive and confident. They are also more aggressive and positive than other natives of their particular sign. ";
	earthE2[1]="People born under the Earth element are serious, logical and methodical. They also possess foresight and excellent deductive powers. They are intelligent and objective and they know where best to direct their resources for the best possible results. ";
	earthE2[2]="Individuals born in the years of the Metal element are success- driven. They will pursue their goals with confidence and determination. They are unwavering in their efforts to achieve their objectives and are undeterred by setbacks, failures or hardships. ";
	earthE2[3]="People born under the Water element have above average skills in interpersonal relations and persuasion. They communicate well and are able to wear away any opposition from others through their firm, constant but unobtrusive efforts. ";
	earthE2[4]="Those born in the years dominated by the Wood element are people of high morals and great confidence. They know the intrinsic value of things and are apt to appreciate all that they have. ";

	year=form.year.value;
	day=form.day.value;
	m=0;
	adjust=0;
  while(!(form.month.options[m].selected)) {
	m++;
}
      month=form.month.options[m].text;
  if (isEmpty()) {
  if (allNumbers()) {
      day=parseFloat(day);
      year=parseFloat(year);
  if (isDateValid()) {
  if (year<1876) {
     alert(year+"?  I don\'t think your that old!");
     document.astro.year.focus();
     return false;
      }
  if ((year>=2020) && (day>24) || (year>2020)){
     alert("Date out of range!  Please select again.");
     document.astro.year.focus();
     return false;
      }
  else {
	lunarCalAdjust()
	chk=1876;    
    while ((chk+11)<year) {
	chk+=12;
       }
	zpage=0;
    while (chk!=year) {
	zpage++;
	chk++;
       }
	chk=1876;    
    while ((chk+9)<year) {
	chk+=10;
       }
	ee=0;
        chk++;
    while (chk<year) {
	ee++;
	chk+=2;
       }
	chk=day;
	dt="th";
  if (chk>9) {
    if (chk<21) {
	chk=0;
  }
	chk=(chk%10);
}
  if (chk==1) {
	dt="st";
}
  if (chk==2) {
	dt="nd";
}
  if (chk==3) {
	dt="rd";
}

if (adjust==1) {
	year++;
	}

head="<HTML><HEAD><TITLE>Chinese Astrology - Chinese-Astrology.co.uk</TITLE>";
head+="<META content='Chinese Astrology Prints, Chinese-Astrology.co.uk, Chinese Astrology, Astrology' name=keywords>";
head+="<META content='Chinese Astrology Prints - Chinese-Astrology.co.uk' name=description>";
head+="<META content='Aaron Brigatti' name='Author'>";
head+="<META content='text/html; charset=iso-8859-1' http-equiv=Content-Type>";
head+="<META content=en-uk http-equiv=Content-Language>";
head+="<META content=ALL name=ROBOTS>";
head+="<LINK rel=stylesheet type=text/css href='style.css'>";
head+="<SCRIPT language=JavaScript1.2 src='scripts/date.js'></SCRIPT>";
head+="<SCRIPT language=JavaScript1.2 src='scripts/astrology.js'></SCRIPT>";
head+="<SCRIPT language=JavaScript1.2 src='scripts/navigation.js'></SCRIPT>";
head+="</HEAD>";

page1="<BODY bgColor=#6B0000 background=images/background.gif>";
page1+="<A name=top>";
page1+="<CENTER>";
page1+="<TABLE bgColor=#dddddd border=0 cellPadding=1 cellSpacing=0 width=660>";
page1+="  <TBODY>";
page1+="  <TR>";
page1+="   <TD>";
page1+="      <CENTER>";
page1+="      <TABLE bgColor=#f1bd5c border=0 cellPadding=0 cellSpacing=0 width=660>";
page1+="        <TBODY>";
page1+="        <TR>";
page1+="          <TD align=left colSpan=2 vAlign=top width=660>";
page1+="            <TABLE border=0 cellPadding=0 cellSpacing=0 width=100%>";
page1+="              <TBODY>";
page1+="              <TR>";
page1+="                <TD align=center>";
page1+="			<!-- The following places the header image -->";
page1+="            	<img src='images/banner.gif' alt='Chinese-Astrology.co.uk' width=552 height=74 align=center>";
page1+="		     </TD>";
page1+="              </TR>";
page1+="              </TBODY>";
page1+="            </TABLE>";
page1+="          </TD>";
page1+="        </TR>";
page1+="        <TR>";
page1+="          <TD colSpan=2 vAlign=top width=660><IMG border=0 height=1 hspace=0 src='images/black.gif' width=660></TD>";
page1+="        </TR>";
page1+="        <TR>";
page1+="          <!-- The following places the light blue navigation bar (with black outline on the top and bottom) -->";
page1+="          <TD align=left bgColor=#ffda77 height=24 vAlign=center width=150>";
page1+="		 <FONT face=ARIAL size=-2>&nbsp;&nbsp;";

date="		 <NOBR>";
date+="	       " + datetext + ", ";
date+=		 myhour + ":" + myminute + ":" + mysecond + mymidday;
//date+="		 <SCRIPT language=JavaScript1.2 src='scripts/liveclock.js'></SCRIPT>";
date+="		 </NOBR>";

page2="        	 </FONT>";
page2+="          </TD>";
page2+="          <TD align=right bgColor=#ffda77 height=24 vAlign=center width=482>";
page2+="		 <B><FONT face='Arial, Verdana, Helvetica' size=1>|&nbsp;";
page2+="		 <A href='index.html' onMouseOver=\"self.status='Home';return true\" onMouseOut=\"self.status='';return true\" title='Home'>Home</A>&nbsp;|&nbsp;";
page2+="		 <A href='zodiac.html' onMouseOver=\"self.status='Brief History';return true\" onMouseOut=\"self.status='';return true\" title='Brief History'>Brief History</A>&nbsp;|&nbsp;";
page2+="		 <A href='zodiactable.html' onMouseOver=\"self.status='Chinese Zodiac Table';return true\" onMouseOut=\"self.status='';return true\" title='Chinese Zodiac Table'>Table</A>&nbsp;|&nbsp;";
page2+="		 <A href='prints.html' onMouseOver=\"self.status='Zodiac Prints';return true\" onMouseOut=\"self.status='';return true\" title='Zodiac Prints'>Zodiac Prints</A>&nbsp;|&nbsp;";
page2+="		 <A href='contact.html' onMouseOver=\"self.status='Contact Details';return true\" onMouseOut=\"self.status='';return true\" title='Contact Details'>Contact Details</A>&nbsp;|&nbsp;&nbsp;";
page2+="		 </FONT></B>";
page2+="          </TD>";
page2+="        <TR>";
page2+="          <TD align=left colSpan=2 vAlign=top width=660><IMG border=0 height=1 hspace=0 src='images/black.gif' width=660></TD>";
page2+="        </TR>";
page2+="        </TBODY>";
page2+="      </TABLE>";
page2+="      <TABLE border=0 cellPadding=0 cellSpacing=0 width=660>";
page2+="        <TBODY>";
page2+="        <TR>";
page2+="          <TD bgColor=#ffda77 rowSpan=2 vAlign=top width=220>";
page2+="            <!-- LHS Column with Other Links (That Ought to Be Present on Every Page) -->";
page2+="          <br>";
page2+="          <FONT color=#f0b850 face=arial size=3>";
page2+="          <a href='zodiac.html#signselements' onMouseOver=\"self.status='Chinese Zodiac Animal Signs';return true\" onMouseOut=\"self.status='';return true\">";
page2+="          <img src='images/title_animalsigns.gif' align=center width=198 height=37 border=0 alt='Chinese Zodiac Animal Signs'></a><BR>";
page2+="          </FONT>";
page2+="		<table border=0 align=center cellpadding=7 cellspacing=0 width=100%>";
page2+="		 <tr>";
page2+="		  <td valign=top width=50%>";
page2+="			<FONT face=arial size=2><p>";
page2+="			<ul>";
page2+="			<li><a href='rat.html' onMouseOver=\"self.status='Rat';return true\" onMouseOut=\"self.status='';return true\" title='Rat'>Rat</a>";
page2+="			<li><a href='ox.html' onMouseOver=\"self.status='Ox';return true\" onMouseOut=\"self.status='';return true\" title='Ox'>Ox</a>";
page2+="			<li><a href='tiger.html' onMouseOver=\"self.status='Tiger';return true\" onMouseOut=\"self.status='';return true\" title='Tiger'>Tiger</a>";
page2+="			<li><a href='rabbit.html' onMouseOver=\"self.status='Rabbit';return true\" onMouseOut=\"self.status='';return true\" title='Rabbit'>Rabbit</a>";
page2+="			<li><a href='dragon.html' onMouseOver=\"self.status='Dragon';return true\" onMouseOut=\"self.status='';return true\" title='Dragon'>Dragon</a>";
page2+="			<li><a href='snake.html' onMouseOver=\"self.status='Snake';return true\" onMouseOut=\"self.status='';return true\" title='Snake'>Snake</a>";
page2+="			<li><a href='horse.html' onMouseOver=\"self.status='Horse';return true\" onMouseOut=\"self.status='';return true\" title='Horse'>Horse</a>";
page2+="			<li><a href='goat.html' onMouseOver=\"self.status='Goat';return true\" onMouseOut=\"self.status='';return true\" title='Goat'>Goat</a>";
page2+="			<li><a href='monkey.html' onMouseOver=\"self.status='Monkey';return true\" onMouseOut=\"self.status='';return true\" title='Monkey'>Monkey</a>";
page2+="			<li><a href='rooster.html' onMouseOver=\"self.status='Rooster';return true\" onMouseOut=\"self.status='';return true\" title='Rooster'>Rooster</a>";
page2+="			<li><a href='dog.html' onMouseOver=\"self.status='Dog';return true\" onMouseOut=\"self.status='';return true\" title='Dog'>Dog</a>";
page2+="			<li><a href='pig.html' onMouseOver=\"self.status='Pig';return true\" onMouseOut=\"self.status='';return true\" title='Pig'>Pig</a>";
page2+="			</ul>";
page2+="			</p></font>";
page2+="		  </td>";
page2+="		 </tr>";
page2+="		</table>";
page2+="          <IMG height=1 hspace=0 src='images/black.gif' width=220><BR><BR>";
page2+="          <FONT color=#f0b850 face=arial size=3>";
page2+="          <a href='zodiac.html#signselements' onMouseOver=\"self.status='Chinese Zodiac Elements';return true\" onMouseOut=\"self.status='';return true\">";
page2+="          <img src='images/title_elements.gif' align=center width=140 height=37 border=0 alt='Chinese Zodiac Elements'></a><BR>";
page2+="          </FONT>";
page2+="		<table border=0 align=center cellpadding=7 cellspacing=0 width=100%>";
page2+="		 <tr>";
page2+="		  <td valign=top width=50%>";
page2+="			<FONT face=arial size=2><p>";
page2+="			<ul>";
page2+="			<li><a href='fire.html' onMouseOver=\"self.status='Fire';return true\" onMouseOut=\"self.status='';return true\" title='Fire'>Fire</a>";
page2+="			<li><a href='earth.html' onMouseOver=\"self.status='Earth';return true\" onMouseOut=\"self.status='';return true\" title='Earth'>Earth</a>";
page2+="			<li><a href='metal.html' onMouseOver=\"self.status='Metal';return true\" onMouseOut=\"self.status='';return true\" title='Metal'>Metal</a>";
page2+="			<li><a href='water.html' onMouseOver=\"self.status='Water';return true\" onMouseOut=\"self.status='';return true\" title='Water'>Water</a>";
page2+="			<li><a href='wood.html' onMouseOver=\"self.status='Wood';return true\" onMouseOut=\"self.status='';return true\" title='Wood'>Wood</a>";
page2+="			</ul>";
page2+="			</p></font>";
page2+="		  </td>";
page2+="		 </tr>";
page2+="		</table>";
page2+="          <IMG height=1 hspace=0 src='images/black.gif' width=220><BR><BR>";
page2+="          <FONT color=#f0b850 face=arial size=3>";
page2+="          <a href='prints.html' onMouseOver=\"self.status='Zodiac Prints';return true\" onMouseOut=\"self.status='';return true\">";
page2+="          <img src='images/title_zodiacprints.gif' align=center width=190 height=33 border=0 alt='Zodiac Prints'></a><BR>";
page2+="          </FONT>";
page2+="		<table border=0 align=center cellpadding=7 cellspacing=0 width=100%>";
page2+="		 <tr>";
page2+="		  <td valign=top width=50%>";
page2+="			<FONT face=arial size=2><p>";
page2+="			<a href='prints.html' onMouseOver=\"self.status='Zodiac Prints';return true\" onMouseOut=\"self.status='';return true\" title='Zodiac Prints'>Zodiac Prints</a><br>";
page2+="			Why not purchase a print of the year of your birth, or as a gift for a friend or relative.  They are an ideal gift containing a high-quality ";
page2+="			print of the animal and displaying a small extract of the background behind your Animal Sign.<br>";
page2+="			<a href='prints.html' onMouseOver=\"self.status='Zodiac Prints';return true\" onMouseOut=\"self.status='';return true\" title='Zodiac Prints'>[more information]</a><br><br>";
page2+="			</p></font>";
page2+="		  </td>";
page2+="		 </tr>";
page2+="		</table>";
page2+="          <IMG height=1 hspace=0 src='images/black.gif' width=220><BR><BR>";
page2+="          <FONT color=#f0b850 face=arial size=3>";
page2+="          <a href='contact.html' onMouseOver=\"self.status='Contact Details';return true\" onMouseOut=\"self.status='';return true\">";
page2+="          <img src='images/title_contact.gif' align=center width=125 height=37 border=0 alt='Contact Details'></a><BR>";
page2+="          </FONT>";
page2+="		<table border=0 align=center cellpadding=7 cellspacing=0 width=100%>";
page2+="		 <tr>";
page2+="		  <td valign=top>";
page2+="			<FONT face='Verdana, Arial, Helvetica, sans-serif' size=1>";
page2+="			<b>Chinese-Astrology.co.uk</b><br>";
page2+="			42 Marlow Drive,<br>";
page2+="			Haywards Heath,<br>";
page2+="			West Sussex,<br>";
page2+="			RH16 3SH,<br>";
page2+="			United Kingdom.<br>";
page2+="			Tel: +44 (0)7020 968082<br>";
page2+="			Fax: +44 (0)7020 968084<br>";
page2+="			Email: <a href='mailto:info@chinese-astrology.co.uk' onMouseOver=\"self.status='E-mail Chinese-Astrology.co.uk - info@chinese-astrology.co.uk';return true\" onMouseOut=\"self.status='';return true\" title='E-mail Chinese-Astrology.co.uk - info@chinese-astrology.co.uk'>info@chinese-astrology.co.uk</a>";
page2+="			</font>";
page2+="		  </td>";
page2+="		 </tr>"; 
page2+="		</table>";
page2+="          </TD>";
page2+="          <TD align=left bgColor=#000000 vAlign=top width=1><IMG border=0 height=2 hspace=0 src='images/spacer.gif' width=1></TD>";
page2+="          <TD align=left bgColor=#f1bd5c vAlign=top width=419>";
page2+="            <!-- The following places the inner table for the 'main' section -->";
page2+="            <TABLE border=0 cellPadding=0 cellSpacing=0 width=419>";
page2+="              <TBODY>";
page2+="              <TR>";
page2+="                <TD colSpan=3 height=10 width=419><IMG border=0 height=10 hspace=0 src='images/spacer.gif' width=2></TD>";
page2+="              </TR>";
page2+="              <TR>";
page2+="                <TD width=10><IMG border=0 height=2 hspace=0 src='images/spacer.gif' width=10></TD>";
page2+="                <TD align=left vAlign=top width=417>";
page2+="			<table align=right width=100%>";
page2+="			<tr>";
page2+="			<td align=right><a href='javascript:bookmark()' onMouseOver=\"self.status='Bookmark Us!';return true\" onMouseOut=\"self.status='';return true\" title='Bookmark Us!'><font face=Verdana size=2 color='darkblue'><b>Bookmark Us!</font></b></a></td>";
page2+="			</tr></table>";
page2+="				<br>";
page2+="          	     	<img src='images/divider_birthsign.gif' alt='Your Chosen Birth Sign' width=340 height=22>";
page2+="				<FONT face='Verdana, Arial, Helvetica, sans-serif' size=3><p align=center>";
page2+="				You entered the following date of birth: <BR>";
page2+="				<B><I><FONT COLOR=#000066>"+(day+dt+" "+month+" "+year+" </FONT></I></B><BR></P></FONT>");
page2+="        	       	<p align=center>The information about the chosen birth sign is as follows:</p>";
page2+="				<br>";
page2+="          	     	<img src='images/divider_animalsign.gif' alt='Animal Sign' width=340 height=22>";
page2+="				<br>";
page2+="				<FONT face='Verdana, Arial, Helvetica, sans-serif' size=3><p align=center>";
page2+="				<B>This date is in the 'Year of the <a href='" + zsign1[zpage] + ".html'";
page2+="				onMouseOver=\"self.status='Year of the " + zsign1[zpage] + "';return true\" onMouseOut=\"self.status='';return true\" title='Year of the " + zsign[zpage] + "'>" + zsign[zpage] + "</a>'.</B><BR></P></FONT>";
page2+="				<TABLE CELLSPACING=10 align=center width=95%><TR><TD>";
page2+="				<a href='" + zsign1[zpage] + ".html'";
page2+="				onMouseOver=\"self.status='Year of the " + zsign[zpage] + "';return true\" onMouseOut=\"self.status='';return true\">";
page2+="				<img src='images/animal_" + zsign1[zpage] + ".jpg' align=left width=140 height=140 border=0 alt='Year of the " + zsign[zpage] + "'></a>";
page2+="				<FONT face='Verdana, Arial, Helvetica, sans-serif' size=3><I>";
page2+=				zsign2[zpage];
page2+="				</I></FONT>";
page2+="				</TD></TR>";
page2+="				<TR><TD>";
page2+="				<FONT face='Helvetica, sans-serif, Verdana, Arial' color=#990033 size=2><I><p align=center>";
page2+="				For more information about the " + zsign1[zpage] + " Animal Sign, click <a href='" + zsign1[zpage] + ".html'";
page2+="				onMouseOver=\"self.status='Year of the " + zsign1[zpage] + "';return true\" onMouseOut=\"self.status='';return true\" title='Year of the " + zsign[zpage] + "'>here</a>.";
page2+="				</P></I></FONT>";
page2+="				</TD></TR></TABLE>";
page2+="				<br>";
page2+="          	     	<img src='images/divider_element.gif' alt='Element' width=340 height=22>";
page2+="				<br>";
page2+="				<FONT face='Verdana, Arial, Helvetica, sans-serif' size=3><p align=center>";
page2+="				<B>This date has the Elemental <br>(known as 'Chi' Characteristic) of '<a href='" + earthE1[ee] + ".html'";
page2+="				onMouseOver=\"self.status='Element of " + earthE[ee] + "';return true\" onMouseOut=\"self.status='';return true\" title='Element of " + earthE[ee] + "'>" + earthE[ee] + "</a>'.</B><BR></P></FONT>";
page2+="				<TABLE CELLSPACING=10 align=center width=95%><TR><TD>";
page2+="				<a href='" + earthE1[ee] + ".html'";
page2+="				onMouseOver=\"self.status='Element of " + earthE[ee] + "';return true\" onMouseOut=\"self.status='';return true\">";
page2+="				<img src='images/element_" + earthE1[ee] + ".gif' align=left width=140 height=140 border=0 alt='Element of " + earthE[ee] + "'></a>";
page2+="				<FONT face='Verdana, Arial, Helvetica, sans-serif' size=3><I>";
page2+=				earthE2[ee];
page2+="				</I></FONT>";
page2+="				</TD></TR>";
page2+="				<TR><TD>";
page2+="				<FONT face='Helvetica, sans-serif, Verdana, Arial' color=#990033 size=2><I><p align=center>";
page2+="				For more information about the " + earthE[ee] + " Element, click <a href='" + earthE1[ee] + ".html'";
page2+="				onMouseOver=\"self.status='Element of " + earthE[ee] + "';return true\" onMouseOut=\"self.status='';return true\" title='Element of " + earthE[ee] + "'>here</a>.";
page2+="				</P></I></FONT>";
page2+="				</TD></TR></TABLE>";
page2+="                </TD>";
page2+="                <TD width=10><IMG border=0 height=2 hspace=0 src='images/spacer.gif' width=10></TD>";
page2+="              </TR>";
page2+="              <TR>";
page2+="                <TD colSpan=3 height=10 width=419><IMG border=0 height=10 hspace=0 src='images/spacer.gif' width=2></TD>";
page2+="              </TR>";
page2+="              </TBODY>";
page2+="            </TABLE>";
page2+="          </TD>";
page2+="        </TR>";
page2+="        </TBODY>";
page2+="      </TABLE>";
page2+="      <!-- The following places the 'top of page' detail -->";
page2+="      <TABLE border=0 height=30 cellPadding=0 cellSpacing=0 width=660>";
page2+="        <TBODY>";
page2+="        <TR>";
page2+="          <TD bgColor=#ffda77 rowSpan=2 vAlign=top width=220>";
page2+="		&nbsp;";
page2+="          </TD>";
page2+="          <TD align=left bgColor=#000000 vAlign=top width=1><IMG border=0 height=2 hspace=0 src='images/spacer.gif' width=1></TD>";
page2+="          <TD align=right bgColor=#f1bd5c vAlign=top width=419>";
page2+="		<a href='#top' onMouseOver=\"self.status='Top of the Page';return true\" onMouseOut=\"self.status='';return true\" title='Top of the Page'><FONT face='Verdana, Arial, Helvetica, sans-serif' size=-2>Top</font>";
page2+="		<img src='images/topofpage.jpg' align=absMiddle valign=middle border=0 width=15 height=11></a>";
page2+="          </TD>";
page2+="        </TR>";
page2+="        </TBODY>";
page2+="      </TABLE>";

foot="      <!-- The following places the lower row section and displays copyright and designer details -->";
foot+="      <TABLE bgColor=#a32e21 border=0 cellPadding=0 cellSpacing=0 width=660>";
foot+="        <TR>";
foot+="          <TD align=left vAlign=top><IMG border=0 height=1 hspace=0 src='images/black.gif' width=660 vspace=0 hspace=0></TD>";
foot+="        </TR>";
foot+="        <TR>";
foot+="          <TD height=27 valign=center align=center>";
foot+="          	  <font face='Arial, Verdana, Helvetica' size=1 color='#ffffff'>Any Comments or Suggestions? E-mail ";
foot+="          	  <a href='mailto:info@chinese-astrology.co.uk' onMouseOver=\"self.status='E-mail your Comments and/or Suggestions to info@chinese-astrology.co.uk';return true\" onMouseOut=\"self.status='';return true\" title='info@chinese-astrology.co.uk'><font face='Arial, Verdana, Helvetica' size=1 color=#ccccff>info@chinese-astrology.co.uk</font></a><br>";
foot+="          	  &copy; <A href='copyright.html' onMouseOver=\"self.status='Copyright';return true\" onMouseOut=\"self.status='';return true\" title='Copyright'><font face='Arial, Verdana, Helvetica' size=1 color='#ccccff'>Copyright</font></a> 2001-<SCRIPT type='text/javascript' language='JavaScript'>document.write(y0);</SCRIPT>";
foot+="          	  <a href='mailto:webmaster@chinese-astrology.co.uk' onMouseOver=\"self.status='For all Website Related Problems, Questions or Enquiries E-mail webmaster@chinese-astrology.co.uk';return true\" onMouseOut=\"self.status='';return true\" title='webmaster@chinese-astrology.co.uk'><font face='Arial, Verdana, Helvetica' size=1 color=#ccccff>Chinese-Astrology.co.uk</font></a>.  ";
foot+="          	  &reg; All Rights Reserved.<br>";
foot+="          	  <A href='disclaimer.html' onMouseOver=\"self.status='Disclaimer';return true\" onMouseOut=\"self.status='';return true\" title='Disclaimer'><font face='Arial, Verdana, Helvetica' size=1 color=#ccccff>Disclaimer</font></a> | ";
foot+="          	  <A href='privacy.html' onMouseOver=\"self.status='Privacy Policy';return true\" onMouseOut=\"self.status='';return true\" title='Privacy Policy'><font face='Arial, Verdana, Helvetica' size=1 color=#ccccff>Privacy Policy</font></a> | ";
foot+="          	  <A href='termsofuse.html' onMouseOver=\"self.status='Terms of Use';return true\" onMouseOut=\"self.status='';return true\" title='Terms of Use'><font face='Arial, Verdana, Helvetica' size=1 color=#ccccff>Terms of Use</font></a>.";
foot+="          	  </font>";
foot+="          </TD>";
foot+="        </TR>";
foot+="        <TR>";
foot+="          <TD align=left vAlign=top><IMG border=0 height=1 hspace=0 src='images/black.gif' width=660 vspace=0 hspace=0></TD>";
foot+="        </TR>";
foot+="      </TABLE>";
foot+="      </CENTER>";
foot+="   </TD>";
foot+="  </TR>";
foot+="  </TBODY>";
foot+="</TABLE>";
foot+="<FONT color=white size=1>Site Designed and Maintained by </FONT>";
foot+="<a href='http://www.brigatti.co.uk' target='_blank' onMouseOver=\"self.status='Site Designed and Maintained by Aaron Brigatti - Aaron@Brigatti.co.uk';return true\" onMouseOut=\"self.status='';return true\" title='Site Designed and Maintained by Aaron Brigatti - Aaron@Brigatti.co.uk'><I><FONT color=#ffdc78 size=1>Aaron Brigatti</FONT></I></A><BR>";
//foot+="<script language=javascript>document.write(datetext);</script><BR><BR>";


date2="<font color=white size=-2><i>Page last updated: " + mydate + suffix + " " + MonthName [mymonth] + " " + myyear + ", ";
date2+=myhour + ":" + myminute + ":" + mysecond + mymidday + "</i></font><br><br>";


//foot+="</CENTER>";
//foot+="</BODY></HTML>";

  document.write(head);
  document.write(page1);
  document.write(date);
  document.write(page2);
  document.write(foot);
  document.write(date2);

  document.write("<!--WEBBOT bot='HTMLMarkup' startspan ALT='Site Meter' -->");
  document.write("<script type='text/javascript' language='JavaScript'>var site='sm1chineseastrology'</script>");
  document.write("<script type='text/javascript' language='JavaScript1.2' src='http://sm1.sitemeter.com/js/counter.js?site=sm1chineseastrology'>");
  document.write("</script>");
  document.write("<noscript>");
  document.write("<a href='http://sm1.sitemeter.com/stats.asp?site=sm1chineseastrology' target='_blank'>");
  document.write("<img src='http://sm1.sitemeter.com/meter.asp?site=sm1chineseastrology' alt='Site Meter' border=0></a>");
  document.write("</noscript>");
  document.write("<!-- Copyright (c)2000 Site Meter -->");
  document.write("<!--WEBBOT bot='HTMLMarkup' Endspan -->");
  document.write("</CENTER>");
  document.write("</BODY></HTML>");

      }
     }
    }
  }
}
function isEmpty() {
  if (day == "") {
      alert("Please enter a day.  \n(All fields need to be completed!)");
      document.astro.day.focus();
      return false;
     }
  else
  //  if (document.astro.month.value.indexOf ('') == -1) {
  if (document.astro.month.selectedIndex == 0) {
      alert("Please select a month.  \n(All fields need to be completed!)");
      document.astro.month.focus();
      return false;
     }
  else
  if (year == "") {
      alert("Please enter a year.  \n(All fields need to be completed!)");
      document.astro.year.focus();
      return false;
     }
  else {
      return true;
    }
 }
function allNumbers() {
  dlen=parseFloat(day.length);
  ylen=parseFloat(year.length);
  gdat=true;

  if (ylen==4) {
      for (i=0; i<dlen; i++) {
	chk=day.substring(i,i+1);
    if (chk<"0" || chk>"9") {
	gdat=false;
     }
    }
  for (i=0; i<ylen; i++) {
	chk=year.substring(i,i+1);
    if (chk<"0" || chk>"9") {
	gdat=false;
   }
  }
  if (gdat==false) {
	alert("Invalid date!  Please enter numerals only.");
	document.astro.day.focus();
	return false;
 }
  else {
	return true;
 }
 }
  else {
	alert("Please enter FOUR figures for the year, e.g. 1990.");
	document.astro.year.focus();
	return false;
 }
}
function isDateValid() {
	vdat=true
  if ((day==0) || (day>31)) {
	vdat=false;
 }
  if (m==2) {
	chk=(year%4);
    if (((chk==0)&&(day>29)) || ((chk>0)&&(day>28))) {
	vdat=false;
  }        
 }
  else {
    if ((m==4) || (m==6) || (m==9) || (m==11)) {
      if (day>30) {
	vdat=false;
   }
  }
 }
  if (vdat==false) {
	alert("Invalid date!  Please try again.");
	document.astro.day.focus();
	return false;
}
  else {
    return true;
}
}    
