var GoogleSearch={Valid:function(googleSearchControlFormName){return Utils.GetControlByName(googleSearchControlFormName).valid()},HideErrorMessage:function(googleSearchControlFormName){jQuery(Utils.GetControlById("errorsLabel"),Utils.GetControlByName(googleSearchControlFormName)).hide()},ShowErrorMessage:function(googleSearchControlFormName,message){jQuery(Utils.GetControlById("errorsLabel"),Utils.GetControlByName(googleSearchControlFormName)).append(message);jQuery(Utils.GetControlById("errorsLabel"),Utils.GetControlByName(googleSearchControlFormName)).show()},Search:function(googleSearchControlFormName){if(GoogleSearch.Valid(googleSearchControlFormName)){GoogleSearch.HideErrorMessage(googleSearchControlFormName);jQuery.post("/Members/Search/GoogleSearch",Utils.GetControlByName(googleSearchControlFormName).serialize(),function(data){if(data.Success)window.location=unescape(data.Result.replace(/\+/g," "));else GoogleSearch.ShowErrorMessage(googleSearchControlFormName,data.Result)},"json")}}};
