##local.define(Title) ##leg.OPAC.ChangeEmail.Title ##local.define(PageTitle) ##leg.Expand(OPAC.ChangeEmail.Title) ##local.define(Prompt) ##leg.OPAC.ChangeEmail.Prompt ##helpcontext.addHelp(Record.Borrower) ##local.define(ScrollButtons)1 ##local.define(Content) ##local.define(List) ##local.define(Value)##leg.OPAC.ChangeEmail.Instructions ##local.AdviceRowTemplate ##local.define(mainclass)generic-form ##local.define(textclass)generic-form-text ##this.stylesetforform ##leg.OPAC.Baccount.BrowseItem.Name ##Value.Prefix ##Value.Title ##Value.Forename ##Value.Surname ##leg.OPAC.ChangeEmail.OldEmail ##Value.EmailAddress ##leg.OPAC.ChangeEmail.NewEmail ##if error.Level ##if error.IsEqual(Number, 1067) ##local.define(Value) ##leg.OPAC.ChangePin.NoAuthorisation ##local.AlertRowTemplate ##local.define(HandledError)1 ##else ##if value.NewPinEmpty ##local.define(Value) ##leg.OPAC.ChangePin.NewPinEmpty ##local.AlertRowTemplate ##local.define(HandledError)1 ##else ##if value.NewPinDifferent ##local.define(Value) ##leg.OPAC.ChangePin.NewPinDifferent ##local.AlertRowTemplate ##local.define(HandledError)1 ##else ##if value.NewPinWrongLength ##local.define(Value) ##if sessioncfg.IsEqual(OPAC.Login.SecurityCode.MinimumLength,##sessioncfg.OPAC.Login.SecurityCode.MaximumLength) ##leg.Expand(OPAC.ChangePin.NewPinWrongLength, MinLen, ##sessioncfg.OPAC.Login.SecurityCode.MinimumLength) ##else ##leg.Expand(OPAC.ChangePin.NewPinWrongLengthRange, MinLen, ##sessioncfg.OPAC.Login.SecurityCode.MinimumLength, MaxLen, ##sessioncfg.OPAC.Login.SecurityCode.MaximumLength) ##endif ##local.AlertRowTemplate ##local.define(HandledError)1 ##else ##if value.NewPinSame ##local.define(Value) ##leg.OPAC.ChangePin.NewPinSame ##local.AlertRowTemplate ##local.define(HandledError)1 ##endif ##endif ##endif ##endif ##endif ##endif ##if Value.EmailUpdated ##local.define(Value) ##leg.OPAC.ChangeEmail.DonePrompt ##local.AdviceRowTemplate ##endif ##include(Layout) ##local.define(GoBackScript) location.href = '##this&Frame=""'; ##include(Body)