home *** CD-ROM | disk | FTP | other *** search
- function LayoutFrame()
- {
- _root.ListBoxSelected = true;
- _root.InputsComplete = false;
- _level0.SetText("Title0",_root.UserAccountInfo1_main_title,_root.UserAccountInfo1_Identifier);
- _level0.SetText("Text10",_root.UserAccountInfo1_main_textinput_username_autofill_append,_root.UserAccountInfo1_Identifier);
- this.nFNameID = _level0.ShowInputBox(_root.UserAccountInfo1_main_p_firstname,_root.first_name,_root.UserAccountInfo1_hint_p_firstname,_root.UserAccountInfo1_hint_p_default,false,_root.UserAccountInfo1_main_textinput_firstname_regexp_value,true,_root.UserAccountInfo1_Identifier);
- this.nLNameID = _level0.ShowInputBox(_root.UserAccountInfo1_main_p_lastname,_root.last_name,_root.UserAccountInfo1_hint_p_lastname,_root.UserAccountInfo1_hint_p_default,false,_root.UserAccountInfo1_main_textinput_lastname_regexp_value,true,_root.UserAccountInfo1_Identifier);
- this.nPhoneNumID = _level0.ShowInputBox(_root.UserAccountInfo1_main_p_phonenumber,_root.phone_number,_root.UserAccountInfo1_hint_p_phonenumber,_root.UserAccountInfo1_hint_p_default,false,_root.UserAccountInfo1_main_textinput_phonenumber_regexp_value,true,_root.UserAccountInfo1_Identifier);
- this.nAddressID = _level0.ShowInputBox(_root.UserAccountInfo1_main_p_address,_root.address,_root.UserAccountInfo1_hint_p_address,_root.UserAccountInfo1_hint_p_default,false,_root.UserAccountInfo1_main_textinput_address_regexp_value,true,_root.UserAccountInfo1_Identifier);
- this.nCityID = _level0.ShowInputBox(_root.UserAccountInfo1_main_p_city,_root.city,_root.UserAccountInfo1_hint_p_city,_root.UserAccountInfo1_hint_p_default,false,_root.UserAccountInfo1_main_textinput_city_regexp_value,true,_root.UserAccountInfo1_Identifier);
- this.nStateID = _level0.ShowInputBox(_root.UserAccountInfo1_main_p_state,_root.state,_root.UserAccountInfo1_hint_p_state,_root.UserAccountInfo1_hint_p_default,false,_root.UserAccountInfo1_main_textinput_state_regexp_value,true,_root.UserAccountInfo1_Identifier);
- this.nZipCodeID = _level0.ShowInputBox(_root.UserAccountInfo1_main_p_zipcode,_root.zip_code,_root.UserAccountInfo1_hint_p_zipcode,_root.UserAccountInfo1_hint_p_default,false,_root.UserAccountInfo1_main_textinput_zipcode_regexp_value,true,_root.UserAccountInfo1_Identifier);
- this.nUserNameID = _level0.ShowInputBox(_root.UserAccountInfo1_main_p_username,_root.user_name,_root.UserAccountInfo1_hint_p_username,_root.UserAccountInfo1_hint_p_default,false,_root.UserAccountInfo1_main_textinput_username_regexp_value,true,_root.UserAccountInfo1_Identifier,true);
- this.nPasswordID = _level0.ShowInputBox(_root.UserAccountInfo1_main_p_password,_root.password,_root.UserAccountInfo1_hint_p_password,_root.UserAccountInfo1_hint_p_default,true,_root.UserAccountInfo1_main_textinput_password_regexp_value,true,_root.UserAccountInfo1_Identifier);
- _level0.SetHintText(_root.UserAccountInfo1_hint_p_default,_root.UserAccountInfo1_Identifier);
- _level0.SetHelpText(_root.UserAccountInfo1_help_p_default,_root.UserAccountInfo1_Identifier);
- var CancelButton = _level0.RequestButton("CancelBtn","CancelButtonPlacement",_root.UserAccountInfo1_Identifier);
- var MoreButton = _level0.RequestButton("MoreBtn","MoreButtonPlacement",_root.UserAccountInfo1_Identifier);
- _root.NextBtn = _level0.RequestButton("NextBtn","NextButtonPlacement",_root.UserAccountInfo1_Identifier);
- CancelButton.TextBox.Text = _root.UserAccountInfo1_nav_button_cancel;
- MoreButton.TextBox.Text = _root.UserAccountInfo1_nav_button_more;
- _root.NextBtn.TextBox.Text = _root.UserAccountInfo1_nav_button_next;
- CancelButton.OnRelease = function()
- {
- CancelButtonAction();
- };
- MoreButton.OnRelease = function()
- {
- _level0.ToggleHelp(_root.UserAccountInfo1_Identifier);
- };
- _root.NextBtn.OnRelease = function()
- {
- NextButtonAction();
- };
- _level0.AddTabOrder(_level0.GetInputFieldPath(this.nFNameID,_root.UserAccountInfo1_Identifier),_root.UserAccountInfo1_Identifier);
- _level0.AddTabOrder(_level0.GetInputFieldPath(this.nLNameID,_root.UserAccountInfo1_Identifier),_root.UserAccountInfo1_Identifier);
- _level0.AddTabOrder(_level0.GetInputFieldPath(this.nPhoneNumID,_root.UserAccountInfo1_Identifier),_root.UserAccountInfo1_Identifier);
- _level0.AddTabOrder(_level0.GetInputFieldPath(this.nAddressID,_root.UserAccountInfo1_Identifier),_root.UserAccountInfo1_Identifier);
- _level0.AddTabOrder(_level0.GetInputFieldPath(this.nCityID,_root.UserAccountInfo1_Identifier),_root.UserAccountInfo1_Identifier);
- _level0.AddTabOrder(_level0.GetInputFieldPath(this.nStateID,_root.UserAccountInfo1_Identifier),_root.UserAccountInfo1_Identifier);
- _level0.AddTabOrder(_level0.GetInputFieldPath(this.nZipCodeID,_root.UserAccountInfo1_Identifier),_root.UserAccountInfo1_Identifier);
- _level0.AddTabOrder(_level0.GetInputFieldPath(this.nUserNameID,_root.UserAccountInfo1_Identifier),_root.UserAccountInfo1_Identifier);
- _level0.AddTabOrder(_level0.GetInputFieldPath(this.nPasswordID,_root.UserAccountInfo1_Identifier),_root.UserAccountInfo1_Identifier);
- _level0.AddTabOrder("NextBtn",_root.UserAccountInfo1_Identifier);
- _level0.AddTabOrder("CancelBtn",_root.UserAccountInfo1_Identifier);
- _root.NextBtn.DefaultDisabled = 1;
- }
- function LoadUserAccountInfo1Vars()
- {
- _root.UserAccountInfo1_Identifier = _level0.SetLayoutObject("Usi",_target,"LayoutFrame",_root.UserAccountInfo1_Identifier);
- }
- function OnSelectionChange(pSelection)
- {
- _level0.SetText("Text0",_root.UserAccountInfo1_main_p_default add " " add pSelection.Item,_root.UserAccountInfo1_Identifier);
- _root.state_selection = pSelection.Item;
- if(pSelection)
- {
- _root.ListBoxSelected = true;
- }
- if(_root.InputsComplete)
- {
- _root.NextBtn.SetDisabled(false);
- }
- }
- function OnValidInputs(bValid)
- {
- if(bValid)
- {
- _root.InputsComplete = true;
- if(_root.ListBoxSelected)
- {
- _root.NextBtn.SetDisabled(false);
- }
- }
- else
- {
- _root.InputsComplete = false;
- _root.NextBtn.SetDisabled(true);
- }
- }
- function InputsValid()
- {
- _root.first_name = _level0.GetInputReference(this.nFNameID,_root.UserAccountInfo1_Identifier).GetInputText();
- _root.last_name = _level0.GetInputReference(this.nLNameID,_root.UserAccountInfo1_Identifier).GetInputText();
- _root.full_name = _root.first_name add " " add _root.last_name;
- _root.phone_number = _level0.GetInputReference(this.nPhoneNumID,_root.UserAccountInfo1_Identifier).GetInputText();
- _root.address = _level0.GetInputReference(this.nAddressID,_root.UserAccountInfo1_Identifier).GetInputText();
- _root.city = _level0.GetInputReference(this.nCityID,_root.UserAccountInfo1_Identifier).GetInputText();
- _root.state = _level0.GetInputReference(this.nStateID,_root.UserAccountInfo1_Identifier).GetInputText();
- _root.zip_code = _level0.GetInputReference(this.nZipCodeID,_root.UserAccountInfo1_Identifier).GetInputText();
- _root.user_name = tempCheckName;
- _root.password = _level0.GetInputReference(this.nPasswordID,_root.UserAccountInfo1_Identifier).GetInputText();
- _level0.FireSignal(_root.UserAccountInfo1_Identifier,"next");
- }
- function CancelButtonAction()
- {
- _root.first_name = _level0.GetInputReference(this.nFNameID,_root.UserAccountInfo1_Identifier).GetInputText();
- _root.last_name = _level0.GetInputReference(this.nLNameID,_root.UserAccountInfo1_Identifier).GetInputText();
- _root.full_name = _root.first_name add " " add _root.last_name;
- _root.phone_number = _level0.GetInputReference(this.nPhoneNumID,_root.UserAccountInfo1_Identifier).GetInputText();
- _root.address = _level0.GetInputReference(this.nAddressID,_root.UserAccountInfo1_Identifier).GetInputText();
- _root.city = _level0.GetInputReference(this.nCityID,_root.UserAccountInfo1_Identifier).GetInputText();
- _root.state = _level0.GetInputReference(this.nStateID,_root.UserAccountInfo1_Identifier).GetInputText();
- _root.zip_code = _level0.GetInputReference(this.nZipCodeID,_root.UserAccountInfo1_Identifier).GetInputText();
- _root.user_name = _level0.GetInputReference(this.nUserNameID,_root.UserAccountInfo1_Identifier).GetInputText();
- _root.password = _level0.GetInputReference(this.nPasswordID,_root.UserAccountInfo1_Identifier).GetInputText();
- _level0.FireSignal(_root.UserAccountInfo1_Identifier,"exit");
- }
- function NextButtonAction()
- {
- appendVar = _root.UserAccountInfo1_main_textinput_username_autofill_append;
- appendLength = -1 * appendVar.length;
- tempUserName = _level0.GetInputReference(this.nUserNameID,_root.UserAccountInfo1_Identifier).GetInputText();
- if(tempUserName.slice(appendLength) == appendVar)
- {
- tempCheckName = tempUserName.slice(0,appendLength);
- }
- else
- {
- tempCheckName = tempUserName;
- }
- var arRegExpArray = new Array();
- arRegExpArray.push(_level0.CreateRegularExpressionObject(_level0.GetInputReference(this.nFNameID,_root.UserAccountInfo1_Identifier).GetInputText(),_level0.GetInputReference(this.nFNameID,_root.UserAccountInfo1_Identifier).GetRegExp(),_root.UserAccountInfo1_main_textinput_firstname_regexp_errorhint,_root.UserAccountInfo1_main_textinput_firstname_regexp_errorhelp,_level0.GetInputFieldPath(this.nFNameID,_root.UserAccountInfo1_Identifier)));
- arRegExpArray.push(_level0.CreateRegularExpressionObject(_level0.GetInputReference(this.nLNameID,_root.UserAccountInfo1_Identifier).GetInputText(),_level0.GetInputReference(this.nLNameID,_root.UserAccountInfo1_Identifier).GetRegExp(),_root.UserAccountInfo1_main_textinput_lastname_regexp_errorhint,_root.UserAccountInfo1_main_textinput_lastname_regexp_errorhelp,_level0.GetInputFieldPath(this.nLNameID,_root.UserAccountInfo1_Identifier)));
- arRegExpArray.push(_level0.CreateRegularExpressionObject(_level0.GetInputReference(this.nPhoneNumID,_root.UserAccountInfo1_Identifier).GetInputText(),_level0.GetInputReference(this.nPhoneNumID,_root.UserAccountInfo1_Identifier).GetRegExp(),_root.UserAccountInfo1_main_textinput_phonenumber_regexp_errorhint,_root.UserAccountInfo1_main_textinput_phonenumber_regexp_errorhelp,_level0.GetInputFieldPath(this.nPhoneNumID,_root.UserAccountInfo1_Identifier)));
- arRegExpArray.push(_level0.CreateRegularExpressionObject(_level0.GetInputReference(this.nAddressID,_root.UserAccountInfo1_Identifier).GetInputText(),_level0.GetInputReference(this.nAddressID,_root.UserAccountInfo1_Identifier).GetRegExp(),_root.UserAccountInfo1_main_textinput_address_regexp_errorhint,_root.UserAccountInfo1_main_textinput_address_regexp_errorhelp,_level0.GetInputFieldPath(this.nAddressID,_root.UserAccountInfo1_Identifier)));
- arRegExpArray.push(_level0.CreateRegularExpressionObject(_level0.GetInputReference(this.nCityID,_root.UserAccountInfo1_Identifier).GetInputText(),_level0.GetInputReference(this.nCityID,_root.UserAccountInfo1_Identifier).GetRegExp(),_root.UserAccountInfo1_main_textinput_city_regexp_errorhint,_root.UserAccountInfo1_main_textinput_city_regexp_errorhelp,_level0.GetInputFieldPath(this.nCityID,_root.UserAccountInfo1_Identifier)));
- arRegExpArray.push(_level0.CreateRegularExpressionObject(_level0.GetInputReference(this.nStateID,_root.UserAccountInfo1_Identifier).GetInputText(),_level0.GetInputReference(this.nStateID,_root.UserAccountInfo1_Identifier).GetRegExp(),_root.UserAccountInfo1_main_textinput_state_regexp_errorhint,_root.UserAccountInfo1_main_textinput_state_regexp_errorhelp,_level0.GetInputFieldPath(this.nStateID,_root.UserAccountInfo1_Identifier)));
- arRegExpArray.push(_level0.CreateRegularExpressionObject(_level0.GetInputReference(this.nZipCodeID,_root.UserAccountInfo1_Identifier).GetInputText(),_level0.GetInputReference(this.nZipCodeID,_root.UserAccountInfo1_Identifier).GetRegExp(),_root.UserAccountInfo1_main_textinput_zipcode_regexp_errorhint,_root.UserAccountInfo1_main_textinput_zipcode_regexp_errorhelp,_level0.GetInputFieldPath(this.nZipCodeID,_root.UserAccountInfo1_Identifier)));
- arRegExpArray.push(_level0.CreateRegularExpressionObject(_level0.GetInputReference(this.nPasswordID,_root.UserAccountInfo1_Identifier).GetInputText(),_level0.GetInputReference(this.nPasswordID,_root.UserAccountInfo1_Identifier).GetRegExp(),_root.UserAccountInfo1_main_textinput_password_regexp_errorhint,_root.UserAccountInfo1_main_textinput_password_regexp_errorhelp,_level0.GetInputFieldPath(this.nPasswordID,_root.UserAccountInfo1_Identifier)));
- arRegExpArray.push(_level0.CreateRegularExpressionObject(tempCheckName,_level0.GetInputReference(this.nUserNameID,_root.UserAccountInfo1_Identifier).GetRegExp(),_root.UserAccountInfo1_main_textinput_username_regexp_errorhint,_root.UserAccountInfo1_main_textinput_username_regexp_errorhelp,_level0.GetInputFieldPath(this.nUserNameID,_root.UserAccountInfo1_Identifier)));
- arRegExpArray.push(_level0.CreateRegularExpressionObject(_level0.GetInputReference(this.nEmailAddressID,_root.UserAccountInfo1_Identifier).GetInputText(),_level0.GetInputReference(this.nEmailAddressID,_root.UserAccountInfo1_Identifier).GetRegExp(),_root.UserAccountInfo1_main_textinput_emailaddress_regexp_errorhint,_root.UserAccountInfo1_main_textinput_emailaddress_regexp_errorhelp,_level0.GetInputFieldPath(this.nEmailAddressID,_root.UserAccountInfo1_Identifier)));
- _level0.CheckRegularExpressions(arRegExpArray,this,"InputsValid",_root.UserAccountInfo1_Identifier);
- }
-