Type.registerNamespace('SA');
SA.LeadFormElement=function() {
SA.LeadFormElement.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
SA.LeadFormElement.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return SA.LeadFormElement._staticInstance.get_path();},
Submit:function(accountId,pageElementId,loggedUserContactId,values,captchaText,cypher,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Submit',false,{accountId:accountId,pageElementId:pageElementId,loggedUserContactId:loggedUserContactId,values:values,captchaText:captchaText,cypher:cypher},succeededCallback,failedCallback,userContext); }}
SA.LeadFormElement.registerClass('SA.LeadFormElement',Sys.Net.WebServiceProxy);
SA.LeadFormElement._staticInstance = new SA.LeadFormElement();
SA.LeadFormElement.set_path = function(value) { SA.LeadFormElement._staticInstance.set_path(value); }
SA.LeadFormElement.get_path = function() { return SA.LeadFormElement._staticInstance.get_path(); }
SA.LeadFormElement.set_timeout = function(value) { SA.LeadFormElement._staticInstance.set_timeout(value); }
SA.LeadFormElement.get_timeout = function() { return SA.LeadFormElement._staticInstance.get_timeout(); }
SA.LeadFormElement.set_defaultUserContext = function(value) { SA.LeadFormElement._staticInstance.set_defaultUserContext(value); }
SA.LeadFormElement.get_defaultUserContext = function() { return SA.LeadFormElement._staticInstance.get_defaultUserContext(); }
SA.LeadFormElement.set_defaultSucceededCallback = function(value) { SA.LeadFormElement._staticInstance.set_defaultSucceededCallback(value); }
SA.LeadFormElement.get_defaultSucceededCallback = function() { return SA.LeadFormElement._staticInstance.get_defaultSucceededCallback(); }
SA.LeadFormElement.set_defaultFailedCallback = function(value) { SA.LeadFormElement._staticInstance.set_defaultFailedCallback(value); }
SA.LeadFormElement.get_defaultFailedCallback = function() { return SA.LeadFormElement._staticInstance.get_defaultFailedCallback(); }
SA.LeadFormElement.set_path("/PageElements/LeadFormElement.asmx");
SA.LeadFormElement.Submit= function(accountId,pageElementId,loggedUserContactId,values,captchaText,cypher,onSuccess,onFailed,userContext) {SA.LeadFormElement._staticInstance.Submit(accountId,pageElementId,loggedUserContactId,values,captchaText,cypher,onSuccess,onFailed,userContext); }
