
    //<![CDATA[

    function gSearchLoad() {
        // create a search control
        var searchControl = new GSearchControl();

		//providex.com search, open full.
		var homeSearch = new GwebSearch();
		homeSearch.setResultSetSize(GSearch.LARGE_RESULTSET); 
	    homeSearch.setUserDefinedLabel(" ProvideX");
		homeSearch.setSiteRestriction("www.pvx.com");

		var options = new GsearcherOptions();
        options.setRoot(document.getElementById("searchResults"));		
		options.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);
		searchControl.setResultSetSize(GSearch.LARGE_RESULTSET); 
		searchControl.addSearcher(homeSearch, options);
		
		var sageUSASearch = new GwebSearch();
		sageUSASearch.setUserDefinedLabel(" Sage Software");
		sageUSASearch.setSiteRestriction("www.sagesoftware.com");

		var options = new GsearcherOptions();
        options.setRoot(document.getElementById("searchResults"));		
		options.setExpandMode(GSearchControl.EXPAND_MODE_PARTIAL);
		searchControl.addSearcher(sageUSASearch, options);


		var sageSearch = new GwebSearch();
		sageSearch.setUserDefinedLabel(" The Sage Group plc");
		sageSearch.setSiteRestriction("www.sage.com");

		var options = new GsearcherOptions();
        options.setRoot(document.getElementById("searchResults"));		
		options.setExpandMode(GSearchControl.EXPAND_MODE_PARTIAL);
		searchControl.addSearcher(sageSearch, options);
		
		
        var drawOptions = new GdrawOptions();
        drawOptions.setDrawMode(GSearchControl.DRAW_MODE_LINEAR);

		
        // tell the searcher to draw itself and tell it where to attach
		searchControl.draw(document.getElementById("searchForm"), drawOptions);


        // execute an inital search
//        searchControl.execute("pvx");
      }

    GSearch.setOnLoadCallback(gSearchLoad);

    //]]>
    