﻿//<![CDATA[
google.load("search", "1");
function OnLoad() {
var searchControl = new google.search.SearchControl();

var siteSearch = new google.search.WebSearch();
siteSearch.setSiteRestriction("www.charic.jp");


searchControl.setResultSetSize(GSearch.LARGE_RESULTSET);

//オプションを追加   
options = new GsearcherOptions();
//検索結果を表示する
options.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);
searchControl.addSearcher(siteSearch,options)
//searchControl.addSearcher(new google.search.WebSearch(),options);
searchControl.draw(document.getElementById("searchcontrol"));

//searchControl.setSiteRestriction('www.charic.jp');
// Execute an inital search
//searchControl.execute("Google");



}
google.setOnLoadCallback(OnLoad);
//]]> 
