home *** CD-ROM | disk | FTP | other *** search
- function LayoutFrame()
- {
- _root.DropDownSelected = true;
- _level0.SetText("Title0",_root.AccountInfoReentry_main_title,_root.UserInputFrame4_Identifier);
- _level0.SetText("Text0",_root.AccountInfoReentry_main_p_emaildomain,_root.UserInputFrame4_Identifier);
- this.nUserNameID = _level0.ShowInputBox(_root.AccountInfoReentry_main_p_username,_root.user_name,_root.AccountInfoReentry_hint_p_username,_root.AccountInfoReentry_hint_p_default,false,_root.AccountInfoReentry_main_textinput_username_regexp_value,true,_root.UserInputFrame4_Identifier);
- this.nPasswordID = _level0.ShowInputBox(_root.AccountInfoReentry_main_p_password,_root.password,_root.AccountInfoReentry_hint_p_password,_root.AccountInfoReentry_hint_p_default,true,_root.AccountInfoReentry_main_textinput_password_regexp_value,true,_root.UserInputFrame4_Identifier);
- var arTemp = new Array();
- var nCounter = 0;
- var tempObject;
- arTemp[0] = _root.AccountInfoReentry_control_ListBoxOne_titletext;
- while(nCounter < _root.AccountInfoReentry_control_ListBoxOne_numitems)
- {
- tempObject = new Object();
- tempObject.item = eval("_root.AccountInfoReentry_control_ListBoxOne_item_" add (nCounter + 1));
- arTemp.push(tempObject);
- nCounter++;
- }
- _level0.SetDropBox(0,arTemp,_root.UserInputFrame4_Identifier,_root.email_domain);
- _level0.SetHintText(_root.AccountInfoReentry_hint_p_default,_root.UserInputFrame4_Identifier);
- _level0.SetHelpText(_root.AccountInfoReentry_help_p_default,_root.UserInputFrame4_Identifier);
- var CancelButton = _level0.RequestButton("CancelBtn","CancelButtonPlacement",_root.UserInputFrame4_Identifier);
- var MoreButton = _level0.RequestButton("MoreBtn","MoreButtonPlacement",_root.UserInputFrame4_Identifier);
- _root.NextBtn = _level0.RequestButton("NextBtn","NextButtonPlacement",_root.UserInputFrame4_Identifier);
- CancelButton.TextBox.Text = _root.AccountInfoReentry_nav_button_cancel;
- MoreButton.TextBox.Text = _root.AccountInfoReentry_nav_button_more;
- _root.NextBtn.TextBox.Text = _root.AccountInfoReentry_nav_button_next;
- CancelButton.OnRelease = function()
- {
- CancelButtonAction();
- };
- MoreButton.OnRelease = function()
- {
- _level0.ToggleHelp(_root.UserInputFrame4_Identifier);
- };
- _root.NextBtn.OnRelease = function()
- {
- NextButtonAction();
- };
- _level0.AddTabOrder(_level0.GetInputFieldPath(this.nUserNameID,_root.UserInputFrame4_Identifier),_root.UserInputFrame4_Identifier,true);
- _level0.AddTabOrder(_level0.GetInputFieldPath(this.nPasswordID,_root.UserInputFrame4_Identifier),_root.UserInputFrame4_Identifier);
- _level0.AddTabOrder(_level0.GetInputFieldPath(this.nEmailAddressID,_root.UserInputFrame4_Identifier),_root.UserInputFrame4_Identifier);
- _level0.AddTabOrder("NextBtn",_root.UserInputFrame4_Identifier);
- _level0.AddTabOrder("CancelBtn",_root.UserInputFrame4_Identifier);
- _level0.RequestAutoFill(nUserNameID,nEmailAddressID,undefined,_root.AccountInfoReentry_main_textinput_emailaddress_autofill_append,_root.UserInputFrame4_Identifier);
- _root.NextBtn.DefaultDisabled = 1;
- }
- function LoadUserInputFrame4Vars()
- {
- _root.UserInputFrame4_Identifier = _level0.SetLayoutObject("InpLayout",_target,"LayoutFrame",_root.UserInputFrame4_Identifier);
- }
- function OnValidInputs(bValid)
- {
- if(bValid)
- {
- _root.InputsComplete = true;
- if(_root.DropDownSelected)
- {
- _root.NextBtn.SetDisabled(false);
- }
- }
- else
- {
- _root.InputsComplete = false;
- _root.NextBtn.SetDisabled(true);
- }
- }
- function OnSelectionChange(pSelection, tempID)
- {
- _root.email_domain = pSelection.Item;
- _root.DropDownSelected = true;
- if(_root.InputsComplete)
- {
- _root.NextBtn.SetDisabled(false);
- }
- }
- function InputsValid()
- {
- _root.user_name = _level0.GetInputReference(this.nUserNameID,_root.UserInputFrame4_Identifier).GetInputText();
- _root.password = _level0.GetInputReference(this.nPasswordID,_root.UserInputFrame4_Identifier).GetInputText();
- _root.email_address = _root.user_name add _root.email_domain;
- _level0.FireSignal(_root.UserInputFrame4_Identifier,"next");
- }
- function CancelButtonAction()
- {
- _root.user_name = _level0.GetInputReference(this.nUserNameID,_root.UserInputFrame4_Identifier).GetInputText();
- _root.password = _level0.GetInputReference(this.nPasswordID,_root.UserInputFrame4_Identifier).GetInputText();
- _root.email_address = _root.user_name add _root.email_domain;
- _level0.FireSignal(_root.UserInputFrame4_Identifier,"exit");
- }
- function NextButtonAction()
- {
- var arRegExpArray = new Array();
- arRegExpArray.push(_level0.CreateRegularExpressionObject(_level0.GetInputReference(this.nUserNameID,_root.UserInputFrame4_Identifier).GetInputText(),_level0.GetInputReference(this.nUserNameID,_root.UserInputFrame4_Identifier).GetRegExp(),_root.AccountInfoReentry_main_textinput_username_regexp_errorhint,_root.AccountInfoReentry_main_textinput_username_regexp_errorhelp,_level0.GetInputFieldPath(this.nUserNameID,_root.UserInputFrame4_Identifier)));
- arRegExpArray.push(_level0.CreateRegularExpressionObject(_level0.GetInputReference(this.nPasswordID,_root.UserInputFrame4_Identifier).GetInputText(),_level0.GetInputReference(this.nPasswordID,_root.UserInputFrame4_Identifier).GetRegExp(),_root.AccountInfoReentry_main_textinput_password_regexp_errorhint,_root.AccountInfoReentry_main_textinput_password_regexp_errorhelp,_level0.GetInputFieldPath(this.nPasswordID,_root.UserInputFrame4_Identifier)));
- _level0.CheckRegularExpressions(arRegExpArray,this,"InputsValid",_root.UserInputFrame4_Identifier);
- }
-