
function Header(page,MenuRequest){
//
// Generate header
//
//    document.write("Doing header<BR>");
  document.write(
//    "<STYLE>a:hover {text-decoration: none; font-style: italic; color:darkgreen}</STYLE>" +
//	 "<img width=1 height=25 border=0 src='spacer.gif'>" +
    "<table border=0 width='100%' cellpadding=10><tr><td width='80%'>" +
    "<div align=right><TABLE BORDER=5 CELLSPACING=5 CELLPADDING=5 WIDTH='75%' bgcolor='#ffffcc'><TR>" +
    "<TD ALIGN=center VALIGN=TOP><B><I><FONT SIZE=6>" +
    "<a href='home.htm' style='text-decoration: none; color:black '>Escondido Genealogical Society<BR>" + page +
    "</FONT></I></B>" +
    "</td>" +
    "</TR></TABLE>" +
    "</div>" +
    "</td><td>" +
    "<form method=GET action='http://www.google.com/search'><br>" +
	 "<input type=hidden name=ie value=UTF-8>" +
	 "<input type=hidden name=oe value=UTF-8>" +
	 "<input TYPE=text name=q size=15 maxlength=255 value='Search Our Site'>&nbsp;&nbsp;" +
	 "<input type=submit name=btnG VALUE='Search'>&nbsp;&nbsp;" +
	 "<input type=hidden name=domains value='http://www.rootsweb.com/~caegs/'>" +
    "<font size=-1>" +
	 "<input type=hidden name=sitesearch value='http://www.rootsweb.com/~caegs/' checked>" +
	 "<a href='search.htm'>Searching Tips</a>" +
	 "</font>" +
	 "</form>" +
	 "</td></tr></table>" +
	 "</div>" +
    "" );
  if (MenuRequest != 'None') Menu(page);
  }

function Trailer(page,pdf) {
//
// Generate Trailer
//
//    document.write("Doing trailer<BR>");
   document.write("<br>");
   if (pdf == "pdf") {
	document.write("<hr><center>To view the PDF documents on this page, you will need a copy of Adobe® Reader. <br><a href='http://www.adobe.com/products/acrobat/readstep2.html' target='egs_off'><img src='adobe_reader.jpg'></a></center>");  
      };
//
//   document.write( 
//   "<hr>" +
//   "<p>Help us with our fund raising.</p>" +
//   "<center><table><tr><td>" + 
//   "<a href='https://secure.palmcoastd.com/pcd/eAfil?iId=61401G1109&iPM=box1_ad_071707.gif' target='egs_off'>EGS Gets $6 for every Family Tree Magazine Subscription<br><img src='https://secure.palmcoastd.com/ows-img/familytree/affil/box1_ad_071707.gif'></a>" +
//   "</td></tr></table></center>" +
//   "") ;
//      
//	document.write("<BR>");
  var monthArray = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
  var now = new Date();
  var nowYear = now.getYear();
  if (nowYear < 200) {nowYear += 1900};
  var lastUpdate = new Date(document.lastModified);
  var modifiedyear=lastUpdate.getYear();
  if (modifiedyear < 200) {modifiedyear+=1900};
//    window.location + "<BR>" +
  document.write(
    "<HR>" +
    "Site: Escondido Genealogical Society<BR>" +
    "Page: " + page + "<BR>" +
    "Page last updated: " + monthArray[lastUpdate.getMonth()] + " " + lastUpdate.getDate() + ", " + modifiedyear + "<BR>" +
    "Please report any problems to our <A href='&#109;&#097;&#105;&#108;&#116;&#111;:&#098;&#111;&#118;&#097;&#045;&#103;&#101;&#110;&#101;&#097;&#108;&#111;&#103;&#121;&#064;&#099;&#111;&#120;&#046;&#110;&#101;&#116;?subject=EGS Web Site - '>Web Master</a> " +
    "&lt;&#098;&#111;&#118;&#097;&#045;&#103;&#101;&#110;&#101;&#097;&#108;&#111;&#103;&#121;&#064;&#099;&#111;&#120;&#046;&#110;&#101;&#116;&gt;<BR>" +
	"To see a list of all of the web pages at this site, visit our <a href='sitemap.htm'>Site Map</a>." +	
    "");
  }


function Menu (page) {
//
//  Generate Menu
//
//  document.write("Doing Buttons<BR>");
    MenuBG = "'#b8b8ff'";
    document.write(
    "<table border=0 cellpadding=2 cellspacing=0 bgcolor=" + MenuBG +" width=100%><TR>" +
      "<td><a href='president.htm'title='President&rsquo;s Message'>President&rsquo;s Message</a></td><td>|</td>" +
      "<td><a href='meetings.htm' title='Monthly Meetings'>Meetings</a></td><td>|</td>" +
      "<td><a href='join.htm' title='How to join the Escondido Genealogical Society'>Join Us</a></td><td>|</td>" +
		"<td><a href='resources.htm' title='Escondido Databases'>Escondido Databases</a></td><td>|</td>" +
      "<td><a href='store.htm' title='EGS Publications and Products'>Store</a></td><td>|</td>" +
      "<td><a href='started.htm' title='Tips if you are just Getting Started'>Getting Started</a></td><td>|</td>" +   
      "<td><a href='links.htm' title='Links to other Genealogical Web Sites'>Links</a></td><td>|</td>" +
      "<td><a href='guests.htm' title='Our Guest Book'>Guest Book</a></td><td>|</td>" +      
      "<td><a href='about.htm' title='Learn about us and what we do'>About Us</a></td><td>|</td>" +
      "<td><a href='pictures.htm' title='Pictures of us and Escondido'>Pictures</a></td><td>|</td>" +
      "<td><a href='contact.htm' title='How to contact us'>Contact Us</a></td><td>|</td>" +  
      "<td><a href='sitechgs.htm' title='Changes made to our Web Site'>Site Changes</a></td>" +
//    "<td width=5>&nbsp;</td>" +
      "</tr></TABLE>" +
    "<div align=right>" +
	 "<form name='jump'>" +
    "<select NAME='site' SIZE='1' onChange='formHandler(this.form)'>" +
       "<option VALUE='#' selected>Find it Fast ... </option>" +
       "<option VALUE='0about.htm'>Board Members</option>" +
       "<option VALUE='1EGS_brochure.pdf'>Brochure</option>" +
       "<option VALUE='0res_online.htm#CA_Iraq'>CA Iraq Deaths DB</option>" +       
       "<option VALUE='2http://www.cgssd.org/events.php'>Calendar of Events (CGSSD)</option>" +       
       "<option VALUE='0res_offline.htm#colelib'>Carlsbad Cole Library</option>" +
       "<option VALUE='0res_online.htm'>Escondido Internet Databases</option>" +
       "<option VALUE='0res_offline.htm#escfhc'>Escondido Family History Center</option>" +
       "<option VALUE='0res_offline.htm#pioneer'>Escondido Library</option>" +
       "<option VALUE='0esc_obits.htm'>Escondido Obituaries DB</option>" +
       "<option VALUE='1esc_obits.pdf'>Escondido Obituaries Order Form</option>" +
       "<option VALUE='0res_offline.htm'>Escondido Non Internet Resources</option>" +
       "<option VALUE='0res_online.htm#Burial_places'>Escondido Soldiers Burial Places DB</option>" +
       "<option VALUE='0res_online.htm#esc_vitals'>Escondido Vitals Announcements DB</option>" +
       "<option VALUE='1esc_vitals.pdf'>Escondido Vitals Order Form</option>" +
//       "<option VALUE='0fgsftm.htm'>FGS FTM Fund Raising</option>" +
       "<option VALUE='0about.htm#ourfundraising'>Fund Raising</option>" +
       "<option VALUE='0about.htm#ourpub'>Hidden Valley Journal</option>" +
       "<option VALUE='0res_online.htm#HVJ_TOC'>Hidden Valley Journal TOC Index</option>" +
       "<option VALUE='1store.pdf'>Hidden Valley Journal Order Form</option>" +
       "<option VALUE='0links.htm#databases'>Links: Databases for Escondido</option>" +
       "<option VALUE='0links.htm#escondido'>Links: Escondido Sites</option>" +
       "<option VALUE='0links.htm#general'>Links: General Sites</option>" +
       "<option VALUE='0links.htm#members'>Links: Members Sites</option>" +
       "<option VALUE='0links.htm#sdca'>Links: San Diego & CA Sites</option>" +
       "<option VALUE='0links.htm#visiting'>Links: Visiting Escondido</option>" +
       "<option VALUE='1application.pdf'>Membership Application Form</option>" +
       "<option VALUE='1membership_application.pdf'>Membership Renewal Form</option>" +
       "<option VALUE='1nlnov06.pdf'>Newsletter Sample</option>" +
       "<option VALUE='0res_offline.htm#pioneer'>Pioneer Room</option>" +
       "<option VALUE='0points.htm'>Points For Profit</option>" +
       "<option VALUE='0res_offline.htm#powayfhc'>Poway Family History Center</option>" +
       "<option VALUE='1EGS_promotional_flyer.pdf'>Promotional Flyer</option>" +
       "<option VALUE='0res_offline.htm#sdfhc'>San Diego Family History Center</option>" +
       "<option VALUE='0res_online.htm#Vietnam'>SD Vietnam Deaths DB</option>" +
       "<option VALUE='1store.pdf'>Store Order Form</option>" +
       "<option VALUE='0names.htm'>Surnames We are Researching</option>" +
       "<option VALUE='0about.htm#whoweare'>Who We Are</option>" +
       "<option VALUE='0res_online.htm#WW_I'>WWI Vets DB</option>" +
    "</select>" +
    "</form>" +
    "</div>" +
      "<br>" +
      "")


//  document.write("end of buttons");
  }  
  
  
function ContactMail (dept) {
//
//  Print Contact mailing address
//
//  document.write("Doing ContactMail<BR>");
    if (dept != '') {dept = ", Dept " + dept};  
    document.write(
      "ESCONDIDO GENEALOGICAL SOCIETY, INC.<br>" +
      "P. O. Box 2190" + dept + "<br>" +
      "Escondido, CA. 92033-2190<br>" + 
      "")

//  document.write("end of ContactMail");
  } 
  
 function ContactEmail () {
//
//  Print Contact email address
//
//  document.write("Doing ContactEmail<BR>");
     
    document.write(
      "<A href='&#109;&#097;&#105;&#108;&#116;&#111;:&#098;&#111;&#118;&#097;&#045;&#103;&#101;&#110;&#101;&#097;&#108;&#111;&#103;&#121;&#064;&#099;&#111;&#120;&#046;&#110;&#101;&#116;?subject=EGS Web Site - '>&#098;&#111;&#118;&#097;&#045;&#103;&#101;&#110;&#101;&#097;&#108;&#111;&#103;&#121;&#064;&#099;&#111;&#120;&#046;&#110;&#101;&#116;</a><br>" +
      "")

//  document.write("end of ContactEmail");
  }  
  
 function MeetingTimeDay (link) {
//
//  Print Meeting Time and Day 
//
//  document.write("Doing MeetingTimeDay<BR>");

    var mm = "monthly meetings";
    if (link != '') {mm = "<a href='meetings.htm'>monthly meetings</a>"} ;
    document.write("Our " + mm + " are normally held at 10:00 a.m. on the 4th Saturday of each month, September through May" +
      "");

//  document.write("End of MeetingTimeDay");
  }  
  
 function GoogleSearch () {
//
//  Generate a Google Search Box
//
//  document.write("Doing GoogleSearch<BR>");
     
    document.write(
      "<form method=GET action='http://www.google.com/search'>" +
		"<input type=hidden name=ie value=UTF-8>" +
		"<input type=hidden name=oe value=UTF-8>" +
		"<a HREF='http://www.google.com/'>" +
		"<img SRC='http://www.google.com/logos/Logo_25wht.gif' border='0' ALT='Google'></a><br>" +
		"<input TYPE=text name=q size=15 maxlength=255 value=''><br>" +
		"<input type=submit name=btnG VALUE='Google Search'><br>" +
		"<input type=hidden name=domains value='http://www.rootsweb.com/~caegs/'>" +
    	"<font size=-1>" +
		"<input type=radio name=sitesearch value=''> Web <br>" +
		"<input type=radio name=sitesearch value='http://www.rootsweb.com/~caegs/' checked> Our EGS Site <br>" +
		"<a href='search.htm'>Searching Tips &amp; Help</a>" +
		"</font>" +
		"</form>" +
      "")

//  document.write("end of GoogleSearch");
  } 
  
  function formHandler(form){
//
//  Find it Fast Jump Drop Down Box
//
//  document.write("Doing formhandler<BR>");
  var URL1 = form.site.options[form.site.selectedIndex].value;
  var urllen = URL1.length;
  var URL = URL1.substring(1,urllen);
  var type = URL1.substring(0,1);
  if  (type == 1) {
    URL1 = window.open(URL,"egs_pdf");
    return	  	
    };
  if (type == 2){
    URL1 = window.open(URL,"egs_off");
    return	  	
    };  
  window.location.href = URL;
//  document.write("end of formhandler");
  }

function TestEGSHDRTR () {
//
//  Test java script member
//
  document.write("Doing TestEGSHDRTR<BR>");
  }
    
