var today = new Date();
var chkdate = new Date();
var showflag = "Y";
function checkdate(chkYYYY,chkMM,chkDD) {
	chkdate.setFullYear(chkYYYY);
	chkMM -= 1;
	chkdate.setMonth(chkMM);
	chkdate.setDate(chkDD);
	if (today > chkdate) {showflag = "N";}
	else {showflag = "Y";}
	}

function wrthead () {
	document.write('<center>\n');
	document.write('<table cellspacing=0 cellpadding=0 border=0 width=1000>\n');
	document.write('<tr valign=top  bgcolor="#e3dacb"><td width=800>\n');
	document.write('<img src="images/spacer.gif" height=18><br>\n');
	document.write('<center><span class="topline"><b>ANGELS IN THE OUTFIELD</b></span>\n');
	document.write('<br><img src="images/spacer.gif" height=17>\n');

	document.write('<table width=78% cellspacing=0 cellpadding=0 border=0 align=center><tr>\n');
	document.write('<td><a class="btnmenu" href="index.html">Home</a></td>\n');
	document.write('<td><a class="btnmenu" href="support.html">How to Help Us</a></td>\n');
	document.write('<td><a class="btnmenu" href="sponsors.html">Our Sponsors</a></td>\n');
	document.write('<td><a class="btnmenu" href="kids.html">Our Kids</a></td>\n');
	document.write('<td><a class="btnmenu" href="board.html">Our Board</a></td>\n');
	document.write('<td><a class="btnmenu" href="refer.html">Refer a Child</a></td>\n');
	document.write('</td></tr></table>\n');

	document.write('</td>\n');
	document.write('<td bgcolor=white><img src="images/angel1A.jpg"><img src="images/angel2A.jpg"><img src="images/angel3A.jpg">\n');
	document.write('</td></tr>\n');
	document.write('<tr valign=top height=500><td bgcolor=white>\n');
	}
	
function wrtend () {
	document.write('</td><td bgcolor="#e3dacb"><table cellspacing=0 cellpadding=0 border=0 width=200>\n');

	upcoming_events();
	past_events();
	contact_us();
	face_book();
	news_letter();
	make_donation();

	document.write('</table></td></tr></table>\n');

	document.write('<br>&copy; Angels in the Outfield, 2010\n');
	document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n');

	document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n');
	document.write('Web Design by <a class="copyright" href="http://www.northwestpages.com" target=new><u>Northwestpages.com</u></a>\n');
	}
	
function whoto(add_email1,add_where) {
	document.write('<a class="inner" HREF="mailto:'+add_email1+'@'+add_where+'">'+add_email1+'@'+add_where+'</a>\n');
	}

function face_book() {
	document.write('<tr><td bgcolor=#996666><font color=white>FACEBOOK</font></td></tr>\n');
	document.write('<tr><td><img src="images/spacer.gif" height=5><br>\n');
	document.write('Find us on \n');
	document.write('<a href="http://www.facebook.com/AngelsintheOutfield" target=_blank><u>Facebook.</u></a>\n');
	document.write('<br>&nbsp;</td></tr>\n');
	}

function contact_us() {
	document.write('<tr><td bgcolor=#996666><font color=white>CONTACT US</font></td></tr>\n');
	document.write('<tr><td><img src="images/spacer.gif" height=5><br>\n');
	document.write('Angels in the Outfield<br>P.O. Box 2347<br>Oregon City, OR 97045\n');
	document.write('<br><br><a href="mailto:theangelsintheoutfield@hotmail.com">theangelsintheoutfield<br>@hotmail.com</a>\n');
	document.write('<br>&nbsp;</td></tr>\n');
	}
function news_letter() {
	document.write('<tr><td bgcolor=#996666><font color=white>NEWSLETTER</font></td></tr>\n');
	document.write('<tr><td><img src="images/spacer.gif" height=5><br>\n');
	document.write('<a href="newsletter/AiO Newsletter Issue No2.pdf" target=_blank><u>Issue #2.</u></a>\n');
	document.write('<br>&nbsp;</td></tr>\n');
	}
function make_donation() {
	document.write('<tr><td bgcolor=#996666><font color=white>MAKE A DONATION</font></td></tr>\n');
	document.write('<tr><td><img src="images/spacer.gif" height=5><br>\n');
document.write('<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target=_blank>\n');
document.write('<input type="hidden" name="cmd" value="_s-xclick">\n');
document.write('<input type="hidden" name="hosted_button_id" value="ZDBE3QAHU7GU2">\n');
document.write('<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" \n');
document.write('alt="PayPal - The safer, easier way to pay online!">\n');
document.write('<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">\n');
document.write('</form>\n');
	document.write('<br><a href="support.html"><u>Click here for more options.</u></a>\n');;
	document.write('<br><br>501(c)(3)<br>#27-1248762<br>&nbsp;</td></tr>\n');
	}

function past_events() {
	document.write('<tr><td bgcolor=#996666><font color=white>RECENT EVENTS</font></td></tr>\n');
	document.write('<tr><td><img src="images/spacer.gif" height=5>\n');
	document.write('<br>January 2011 Fundraiser<br><a href="Jan 2011.html"><u>Photos</u></a>\n');
	document.write('&nbsp;&nbsp;&nbsp;&nbsp;<a href="Jan 2011 Sponsors.html"><u>Event Sponsors</u></a><br>\n');
	document.write('<br>April 2010 Fundraiser<br><a href="Apr2010.html"><u>Photos</u></a>\n');
	document.write('&nbsp;&nbsp;&nbsp;&nbsp;<a href="Apr2010 Sponsors.html"><u>Event Sponsors</u></a><br>\n');
	document.write('<br>February 2010 Fundraiser<br><a href="Feb 2010.html"><u>Photos</u></a><br>\n');

	document.write('<br>&nbsp;</td></tr>\n');
	}

function upcoming_events() {
	document.write('<tr><td bgcolor=#996666><font color=white>UPCOMING EVENTS</font></td></tr>\n');
	document.write('<tr><td><img src="images/spacer.gif" height=5>\n');

	checkdate(2011,07,23);
	if (showflag == 'Y') {
		document.write('<br>Milwaukie Daze Parade<br>July 23, 2011<br>9:00am - noon.<br>\n');
		}

	checkdate(2012,02,25);
	if (showflag == 'Y') {
		document.write('<br>3rd Annual Angels in the Outfield Auction Dinner<br>February 25, 2012.<br>Willamette Valley Country Club\n');
		document.write('<br><a href="data/auction flyer 2012.pdf" target=_blank><u>Click here for flyer</u></a>\n');
		document.write('<br>\n');
		}

	document.write('<br><br>Stay Tuned For More<br>\n');
	document.write('&nbsp;\n');
	document.write('</td></tr>\n');
	}
