/////////////////////////////////////////////////////////////////////////////
//
// Copyright © 2002 TNG Consulting Inc. All Rights Reserved.
// Please do not modify, use or redistribute without permission.
//
// Filename: search.js
// Purpose: Add local site search engine using minimal screen real estate.
// Author: Michael Milette
// Written: v1.0 July 25th, 2002
// Requirements: Site must already be listed in Google search engine.
// Changes:
// - Date: v2.0 July 27th, 2002
//   Better google interface, no longer limited to one instance per page,
//   more customizable options at the top of the code and it now remembers
//   the users last search criteria when you click the back button.
//
// Usage: Insert the following line where ever you want to have the
//   search box appear:
//
//     <script language="JavaScript" src="search.js"></script>
//
// NOTE: You can also control the style of the search box by using the 
// "GGSearch" class. Example:
//
//  <style>
//   .GGSearch {font-size:10pt;}
//  </style>
//
/////////////////////////////////////////////////////////////////////////////
function SearchCode()
{
 // *** START of customizable options section
 var Prompt="Chercher: ";
 var SiteURL="www.egliselutherienne.org";
 var SiteLogo="/bibliotheque/searchlogo.gif"; var LogoH="120"; var LogoW="287"; var LogoA="left";
 var txtColor="black"; bgColor="FFFFEE";
 // *** END of customizable options section

 var frm='<table><tr><form style="margin-top:0px;margin-bottom:0px;" action="http:&#047;&#047;www.goo';frm+='gle.com/custom"><td>';
 frm+='<input name="cof" type="hidden" value="T:'+txtColor+';BGC:'+bgColor+';';
 frm+='LW:'+LogoW+';LH:'+LogoH+';AH:'+LogoA+';L:http:&#047;&#047;'+SiteURL+SiteLogo+';">';
 frm+='<input name="domains" type="hidden" value="'+SiteURL+'">';
 frm+='<input name="sitesearch" type="hidden" value="'+SiteURL+'">';
 frm+='<input name="q" type="text" value="'+Prompt+'" class="GGSearch"';
 frm+=' onBlur = "if(this.value == \'\')this.value = \''+Prompt+'\';"';
 frm+=' onFocus= "if(this.value == \''+Prompt+'\')this.value = \'\';">';
 frm+='</td></form></tr></table>';
 return(frm);
}
document.write(SearchCode());

