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

function onLoad() {
// Create a Custom Search control that uses a CSE restricted to code.google.com
// Change the customSearchId string to the ID of your own Custom Search engine.
var customSearchControl = new google.search.CustomSearchControl('015652768468911651389:g3bv40-z-s0');
customSearchControl.enableAds(/* put your publisher ID here */);

// Set drawing options to use my text box as input instead of having the library create one.
var drawOptions = new google.search.DrawOptions();
drawOptions.setInput(document.getElementById('query_input'));

// Draw the control in content div
customSearchControl.draw('searchresults', drawOptions);
}

google.setOnLoadCallback(onLoad);
