var EmailForm=function() {
EmailForm.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
EmailForm.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return EmailForm._staticInstance.get_path();},
SaveContact:function(emailId,newName,newAddress,oldName,oldAddress,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveContact',false,{emailId:emailId,newName:newName,newAddress:newAddress,oldName:oldName,oldAddress:oldAddress},succeededCallback,failedCallback,userContext); },
MoveContactUp:function(emailId,name,address,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'MoveContactUp',false,{emailId:emailId,name:name,address:address},succeededCallback,failedCallback,userContext); },
MoveContactDown:function(emailId,name,address,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'MoveContactDown',false,{emailId:emailId,name:name,address:address},succeededCallback,failedCallback,userContext); },
DeleteContact:function(emailId,name,address,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteContact',false,{emailId:emailId,name:name,address:address},succeededCallback,failedCallback,userContext); },
SendEmail:function(itemId,from,toId,subject,body,composeTime,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendEmail',false,{itemId:itemId,from:from,toId:toId,subject:subject,body:body,composeTime:composeTime},succeededCallback,failedCallback,userContext); },
VerifyEmailAddress:function(address,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'VerifyEmailAddress',false,{address:address},succeededCallback,failedCallback,userContext); }}
EmailForm.registerClass('EmailForm',Sys.Net.WebServiceProxy);
EmailForm._staticInstance = new EmailForm();
EmailForm.set_path = function(value) { EmailForm._staticInstance.set_path(value); }
EmailForm.get_path = function() { return EmailForm._staticInstance.get_path(); }
EmailForm.set_timeout = function(value) { EmailForm._staticInstance.set_timeout(value); }
EmailForm.get_timeout = function() { return EmailForm._staticInstance.get_timeout(); }
EmailForm.set_defaultUserContext = function(value) { EmailForm._staticInstance.set_defaultUserContext(value); }
EmailForm.get_defaultUserContext = function() { return EmailForm._staticInstance.get_defaultUserContext(); }
EmailForm.set_defaultSucceededCallback = function(value) { EmailForm._staticInstance.set_defaultSucceededCallback(value); }
EmailForm.get_defaultSucceededCallback = function() { return EmailForm._staticInstance.get_defaultSucceededCallback(); }
EmailForm.set_defaultFailedCallback = function(value) { EmailForm._staticInstance.set_defaultFailedCallback(value); }
EmailForm.get_defaultFailedCallback = function() { return EmailForm._staticInstance.get_defaultFailedCallback(); }
EmailForm.set_path("/Services/EmailForm.svc");
EmailForm.SaveContact= function(emailId,newName,newAddress,oldName,oldAddress,onSuccess,onFailed,userContext) {EmailForm._staticInstance.SaveContact(emailId,newName,newAddress,oldName,oldAddress,onSuccess,onFailed,userContext); }
EmailForm.MoveContactUp= function(emailId,name,address,onSuccess,onFailed,userContext) {EmailForm._staticInstance.MoveContactUp(emailId,name,address,onSuccess,onFailed,userContext); }
EmailForm.MoveContactDown= function(emailId,name,address,onSuccess,onFailed,userContext) {EmailForm._staticInstance.MoveContactDown(emailId,name,address,onSuccess,onFailed,userContext); }
EmailForm.DeleteContact= function(emailId,name,address,onSuccess,onFailed,userContext) {EmailForm._staticInstance.DeleteContact(emailId,name,address,onSuccess,onFailed,userContext); }
EmailForm.SendEmail= function(itemId,from,toId,subject,body,composeTime,onSuccess,onFailed,userContext) {EmailForm._staticInstance.SendEmail(itemId,from,toId,subject,body,composeTime,onSuccess,onFailed,userContext); }
EmailForm.VerifyEmailAddress= function(address,onSuccess,onFailed,userContext) {EmailForm._staticInstance.VerifyEmailAddress(address,onSuccess,onFailed,userContext); }
