/**
* $Id: mod_pixgsearch.js 57 2009-05-11 07:27:08Z johan $
* $Date: 2009-05-11 09:27:08 +0200 (Mon, 11 May 2009) $
* $Revision: 57 $
*/

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

function OnLoad()
{
	gSearchForm = new google.search.SearchForm( false, document.getElementById("searchform_module") );
	gSearchForm.setOnSubmitCallback( null, CaptureForm );
	
	SetDefaultSearchText( gSearchForm );
}

function CaptureForm(searchForm)
{
	//
	//alert( searchForm.input.value );
	document.mod_pixgsearch_form.searchText.value = searchForm.input.value;
	//alert( document.mod_pixgsearch_form.searchText.value );
	document.mod_pixgsearch_form.submit();
	return false;
}

google.setOnLoadCallback(OnLoad, true);
