/////////////////////////////////////////////////////////////////////////////
//
// Copyright © 2002-2007 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.
// - Date: v2.0c June 18, 2007
//    Version for use in Multiflex-2 customized for 2nd St.Albert Scout Group
//
// Usage: Insert the following line where ever you want to have the
//   search box appear:
//
//     <script language="JavaScript" src="gsearch.js"></script>
//
/////////////////////////////////////////////////////////////////////////////
function SearchCode()
{
 // *** START of customizable options section
 var Prompt="Site search";
 var SiteURL="www.2nd-st-albert-scouts.org";
 var SiteLogo="/badges/img/group-patch.jpg"; var LogoH="137"; var LogoW="200"; var LogoA="left";
 var txtColor="black"; bgColor="FFFFFF";
 // *** END of customizable options section

 var frm='<form action="http:&#047;&#047;www.goo';frm+='gle.ca/custom" class="form"><fieldset>';
 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="field"';
 frm+=' onBlur = "if(this.value == \'\')this.value = \''+Prompt+'\';"';
 frm+=' onFocus= "if(this.value == \''+Prompt+'\')this.value = \'\';" />&nbsp;';
 frm+='<input type="submit" value="GO!" name="button" class="button" /></fieldset></form>';
 return(frm);
}
document.write(SearchCode());

