  google.load("search", "1");

    function OnLoad() {
      // Create a search control
      var searchControl = new google.search.SearchControl();
      // open search result links in same window
      searchControl.setLinkTarget(GSearch.LINK_TARGET_SELF);

      var searchOptions = new GsearcherOptions();
      searchOptions.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);

      // Add in a full set of searchers
      var capsSearch = new GwebSearch();
      capsSearch.setUserDefinedLabel("caps.ou.edu");
      capsSearch.setUserDefinedClassSuffix("capsSearch");
      capsSearch.setSiteRestriction("caps.ou.edu");
      searchControl.addSearcher(capsSearch, searchOptions);

      /*
      var localSearch = new google.search.LocalSearch();
      searchControl.addSearcher(localSearch);
      searchControl.addSearcher(new google.search.WebSearch());
      searchControl.addSearcher(new google.search.VideoSearch());
      searchControl.addSearcher(new google.search.BlogSearch());
      */

      // Set the Local Search center point
      //localSearch.setCenterPoint("New York, NY");

      // Tell the searcher to draw itself and tell it where to attach
      searchControl.draw(document.getElementById("searchcontrol"));

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

  google.setOnLoadCallback(OnLoad);


