// searchEngine.js: 2012-09-13 //This file calls the Google Custome Search Engine functions.. /* * This function should be called in the search form's "onsubmit". * This function should be customized based on what parameters the existing search engine requires (e.g. search form action and search form inputs). */ function gs_handleSearch(searchForm) { searchForm.action = '/MVPThemesSkins/themes/html/mvp.largegroups.theme/js/SearchEngineResultsGE.jsp'; } function initForm(oForm) { var params = {}; var parts = window.location.search.substr(1).split('\x26'); for (var i = 0; i < 1; i++) { var keyValuePair = parts[i].split('='); var key = decodeURIComponent(keyValuePair[0]); params[key] = keyValuePair[1] ? decodeURIComponent(keyValuePair[1].replace(/\+/g, ' ')) : keyValuePair[1]; frmElement = oForm.elements["q"]; frmElement.value = keyValuePair[1]; } }