
//document.write("<TABLE WIDTH=\"99%\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\">");
//document.write("<TR>");
//	document.write("<TD>");

       function trimString (str) {
              while (str.charAt(0) == ' ')
                str = str.substring(1);
              while (str.charAt(str.length - 1) == ' ')
                str = str.substring(0, str.length - 1);
              return str;
            }

document.write("<TABLE WIDTH=\"425\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\">");
document.write("<TR BGCOLOR=\"#005A9C\"> ");
	document.write("<TD COLSPAN=\"6\"><IMG SRC=\"/images/spacer.gif\" WIDTH=\"1\" HEIGHT=\"2\"></TD>");
document.write("</TR>");
document.write("<TR BGCOLOR=\"#005A9C\"> ");
	document.write("<TD ALIGN=\"left\" nowrap><IMG SRC=\"/images/search_for.gif\" WIDTH=\"62\" HEIGHT=\"13\"></TD>");
document.write("<form name=\"search\" action=\"/search/query.idq\" method=\"get\" onSubmit=\"if (trimString(document.search.CiRestriction.value) == '') return false\">");
	document.write("<TD><FONT FACE=\"Trebuchet MS, Verdana, Arial, MS Sans Serif, Helvetica\" SIZE=\"2\"><input name=\"CiRestriction\" type=\"text\" size=10></FONT></TD>");
document.write("");
	document.write("<TD ALIGN=\"left\"><IMG SRC=\"/images/search_in.gif\"></TD>");
document.write("");
document.write("");
	document.write("<TD ALIGN=\"left\"><FONT FACE=\"Trebuchet MS, Verdana, Arial, MS Sans Serif, Helvetica\" SIZE=\"1\">");

	document.write("<!-- Form gets submitted to the 'query.idq' file, which passes the request to the Index Server, No paramaters need to be set or modified in the 'query.idq' file, as all paramaters are set from this page by either the user, or by default in the list below -->");

			document.write("<INPUT name=CiMaxRecordsPerPage type=hidden value=10> <!-- Number of search results displayed per page -->");
			document.write("<INPUT name=CiMaxRecordsInResultSet type=hidden value=100> <!-- Maximum total number of search results that can be returned -->");
			document.write("<INPUT name=CiCatalog type=hidden value=c:\\catalogs\\acc.org> <!-- Absolute path on web server where index catalogs reside -->");
			document.write("<INPUT name=CiFlags type=hidden value=DEEP> <!-- Set to 'deep' to recursively search all subdirectories of CiScope, set to 'shallow' to search only specified directory  -->");
			document.write("<INPUT name=CiUserParam3 type=hidden value=" + document.location.pathname + "> <!-- Relative path on web server (starting from root of web) where search page is located (this page!) -->");
			document.write("<INPUT name=CiUserParam2 type=hidden value=/search/query.idq> <!-- Relative path on web server (starting from root of web) where .IDQ paramter file is found -->");
			document.write("<INPUT name=CiTemplate type=hidden value=/search/query.htx> <!-- Relative path on web server (starting from root of web) where results template page is located -->");
			document.write("<INPUT name=CiColumns type=hidden value=filename,rank,characterization,vpath,DocTitle> <!-- Columns to be displayed in the results page, this information is then referenced in the 'query.htx' file -->");
			document.write("<INPUT name=CiSort type=hidden value=rank[d]> <!-- Specifies that the results should be sorted in descending order according to the 'rank' column (part of the returned result set specified in the 'CiColumns' paramater set above -->");

document.write("<select name=\"CiScope\">");

	document.write("<OPTION VALUE=\"/\">Entire ACC site");
	
	// mainSecDesc and the strings are declared in nav.js

	if(mainSecDesc == "ABOUT") 
		document.write("<OPTION VALUE=\"/about/\" selected>About ACC/Members ");
	else
		document.write("<OPTION VALUE=\"/about/\">About ACC/Members ");

	if(mainSecDesc == "CLINICAL") 
		document.write("<OPTION VALUE=\"/clinical/\" selected>Clinical Stmt./Guides. ");
	else
		document.write("<OPTION VALUE=\"/clinical/\">Clinical Stmt./Guides. ");

	if(mainSecDesc == "GAP") 
		 document.write("<OPTION VALUE=\"/gap/\" selected>Guidelines Applied In Practice ");
	else
	 document.write("<OPTION VALUE=\"/gap/\">Guidelines Applied In Practice ");

	if(mainSecDesc == "EDUCATION") 
		document.write("<OPTION VALUE=\"/education/\" selected>Educational Catalog ");
	else
		document.write("<OPTION VALUE=\"/education/\">Educational Catalog ");

	if(mainSecDesc == "HOME") 
		document.write("<OPTION VALUE=\"/2006ann_meeting/\" selected>2006 Annual Scientific Session ");
	else
		document.write("<OPTION VALUE=\"/2006ann_meeting/\">2006 Annual Scientific Session ");

	if(mainSecDesc == "ADVOCACY") 
		document.write("<OPTION VALUE=\"/advocacy/\" selected>Advocacy ");
	else
		document.write("<OPTION VALUE=\"/advocacy/\">Advocacy ");

	if(mainSecDesc == "PMR") 
		document.write("<OPTION VALUE=\"/pmr/\" selected>Prac. Mgmt/Payer Res. ");
	else
		document.write("<OPTION VALUE=\"/pmr/\">Prac. Mgmt/Payer Res. ");

	if(mainSecDesc == "MEDIA") 
	         document.write("<OPTION VALUE=\"/media/\" selected>Media/Jour./News ");
	else
	         document.write("<OPTION VALUE=\"/media/\">Media/Jour./News ");

	if(mainSecDesc == "NCDR") 
	         document.write("<OPTION VALUE=\"/ncdr/\" selected>Data Registry ");
	else
	         document.write("<OPTION VALUE=\"/ncdr/\">Data Registry ");
	
	if(mainSecDesc == "COMMUNITY") 
	         document.write("<OPTION VALUE=\"/community/\" selected>Community ");
	else
	         document.write("<OPTION VALUE=\"/community/\">Community ");

	if(mainSecDesc == "QUALITY") 
	         document.write("<OPTION VALUE=\"/quality/\" selected>Quality@ACC ");
	else
	         document.write("<OPTION VALUE=\"/quality/\">Quality@ACC ");
	

        document.write("</select>");
	document.write("</font></TD>");
	document.write("<TD ALIGN=\"left\"><input type=\"image\" src=\"/images/search_go.gif\" border=\"0\" value=\"Search\"></td><TD BGCOLOR=\"#ffffff\" ALIGN=\"left\"><IMG SRC=\"/images/search_curve.gif\"></td>");
document.write("</FORM>");
document.write("</TR>");
document.write("</TABLE>");

