google.load('search', '1.0');

function OnLoad() {

  // set the new searchControl & specifies that results will open in original page
  var searchControl = new google.search.SearchControl();
  searchControl.setLinkTarget(google.search.Search.LINK_TARGET_BLANK);

  // specifies that it's site-specific and uses a custom search engine & results template
  var siteSearch = new google.search.WebSearch();
  siteSearch.setUserDefinedLabel("Forms & Publications");
  siteSearch.setSiteRestriction("007363603668117538395:bxguw1royfy", null, "http://tax.utah.gov/search.html?cx=007363603668117538395%3Abxguw1royfy&cof=FORID%3A11&q=__QUERY__&sa=Search&hl=__HL__");

  // specifies searcher options
  var searcherOptions = new google.search.SearcherOptions();
  searcherOptions.setNoResultsString("No results found. Please try a different search phrase.");

  // adds the searcher with the various options
  searchControl.addSearcher(siteSearch, searcherOptions);
  
    // specifies drawing options
  var drawOptions = new google.search.DrawOptions();
    drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED);
    searchControl.draw(document.getElementById("searchcontent"), drawOptions);

  //searchControl.execute("tc-40");
}

google.setOnLoadCallback(OnLoad);

