//<!--
//
// ident "@(#)dynamic.js 1.20 04/09/20 SMI"
//
// Copyright 2004 by Sun Microsystems, Inc. All rights reserved.
// Use is subject to license terms.
//
// This Javascript code will provide methods for dynamic enabling and
// disabling of Common Console components. In addition, this script
// uses the variables of browserVersion.js for client-side browser
// sniffing. Always include both files in your JSP page.
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Common methods
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Get the document form for the given name.
if (formName == null) {
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("formName parameter is null.");
return null;
}
// Get form.
return form;
}
// Get the document element for the given name.
// Validate params.
if (elementName == null) {
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("elementName parameter is null.");
return null;
}
// Get form
if (form == null) {
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid formName parameter: " + formName);
return null;
}
// Get element.
return element;
}
// Get all document elements for the given name. Note: there could be
// more than one element by the same name on a given page (e.g.,
// Validate params.
if (elementName == null) {
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("elementName parameter is null.");
return null;
}
// Get form
if (form == null) {
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid formName parameter: " + formName);
return null;
}
// Get elements.
var elements = new Array();
if (e.name == elementName) {
elements[k] = e;
k++
}
}
return elements;
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Button methods
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Set the disabled state of CC buttons for given element and form names.
// Hidden field names.
// Get element.
// Set button disabled state.
return ccSetButtonState(element,
disabled);
} else {
// There could be more one element by the same name on a given
// we need to set the disabled state for all.
var disabledHiddenFields =
var titleEnabledHiddenFields =
var result = ccSetButtonState(
elements[i],
? disabledHiddenFields[i] : null,
? titleDisabledHiddenFields[i] : null,
? titleEnabledHiddenFields[i] : null,
disabled);
if (!result)
return false;
}
}
return true;
}
// Set the state of CC buttons for given elements.
// Class names.
var classNamePrimary = "Btn1";
var classNamePrimaryDisabled = "Btn1Dis";
var classNamePrimaryMini = "Btn1Mni";
var classNamePrimaryMiniDisabled = "Btn1MniDis";
var classNameSecondary = "Btn2";
var classNameSecondaryDisabled = "Btn2Dis";
var classNameSecondaryMini = "Btn2Mni";
var classNameSecondaryMiniDisabled = "Btn2MniDis";
// Validate params.
return false;
// Get boolean value to ensure correct data type.
// Set disabled state.
// Set styles.
if (disabled) {
// Set title attribute.
if (titleDisabledHiddenField != null)
// Set class attribute.
}
} else {
// Set title attribute.
if (titleEnabledHiddenField != null)
// Set class attribute.
}
}
return true;
}
// Helper method to validate CC buttons.
// Class names.
var classNameDefault = "Btn1Def";
// Netscape 4.x does not support disabled state, just return.
if (is_nav4) {
return false;
}
// Validate element type.
if (element == null
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element type.");
return false;
}
// Validate element class name. The default button cannot be disabled.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element class name.");
return false;
}
// Validate disabled hidden field.
if (disabledHiddenField == null) {
// If dynamic attribute was not set, no hidden fields will be
// output by the tag.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Disabled state cannot be set.");
return false;
}
// Validate disabled param.
if (disabled == null) {
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("disabled parameter is null.");
return false;
}
return true;
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Drop down menu methods
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Set the disabled state of CC drop down menus for given element and
// form names.
// Hidden field names.
"OptionDisabledHiddenField";
// Get element.
// Set disabled state.
return ccSetDropDownMenuState(element,
disabled);
} else {
// There could be more one element by the same name on a given
// we need to set the disabled state for all.
var disabledHiddenFields =
var titleEnabledHiddenFields =
var result = ccSetDropDownMenuState(
elements[i],
? disabledHiddenFields[i] : null,
? titleDisabledHiddenFields[i] : null,
? titleEnabledHiddenFields[i] : null,
? optionDisabledHiddenFields[i] : null,
disabled);
if (!result)
return false;
}
}
return true;
}
// Set the state of CC drop down menus for given elements.
// Validate params.
return false;
// Get boolean value to ensure correct data type.
// Set disabled state.
// Set flag indicating option was selected while HTML element was
// disabled. Do not set disabled options as selected.
//
// "false" = enabled
// "FALSE" = enabled and selected
//
// Get element option.
}
}
if (disabled) {
if (titleDisabledHiddenField != null)
} else {
if (titleEnabledHiddenField != null)
}
return true;
}
// Helper method to validate CC drop down menus.
// Class names.
var classNameJump = "MnuJmp";
var classNameStandard = "MnuStd";
// Netscape 4.x does not support disabled state, just return.
if (is_nav4) {
return false;
}
// Validate element type.
if (element == null
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element type.");
return false;
}
// Validate element class name.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element class name.");
return false;
}
// Validate disabled hidden field.
if (disabledHiddenField == null) {
// If dynamic attribute was not set, no hidden fields will be
// output by the tag.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Disabled state cannot be set.");
return false;
}
// Validate disabled param.
if (disabled == null) {
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("disabled parameter is null.");
return false;
}
return true;
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Drop down menu option methods
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Set the disabled state of CC drop down menu options for given
// element and form names.
index) {
// Hidden field names.
"OptionDisabledHiddenField" + index;
"OptionTitleDisabledHiddenField" + index;
"OptionTitleEnabledHiddenField" + index;
// Get element.
// Set disabled state.
return ccSetDropDownMenuOptionState(element,
} else {
// There could be more one element by the same name on a given
// we need to set the disabled state for all.
var disabledHiddenFields =
var titleEnabledHiddenFields =
elements[i],
? disabledHiddenFields[i] : null,
? titleDisabledHiddenFields[i] : null,
? titleEnabledHiddenFields[i] : null,
if (!result)
return false;
}
}
return true;
}
// Set the state of CC drop down menu options for given elements.
// Class names.
var classNameJumpOption = "MnuJmpOpt";
var classNameJumpOptionDisabled = "MnuJmpOptDis";
var classNameStandardOption = "MnuStdOpt";
var classNameStandardOptionDisabled = "MnuStdOptDis";
// Validate params.
return false;
}
// Get element option.
// Get boolean value to ensure correct data type.
// Set disabled state.
if (disabled) {
// Set title attribute.
if (titleDisabledHiddenField != null)
// Set class attribute.
} else {
}
} else {
// Set title attribute.
if (titleEnabledHiddenField != null)
// Set class attribute.
} else {
}
}
return true;
}
// Helper method to validate CC drop down menus.
// Class names.
var classNameJump = "MnuJmp";
var classNameJumpOption = "MnuJmpOpt";
var classNameJumpOptionSelected = "MnuJmpOptSel";
var classNameJumpOptionSeparator = "MnuJmpOptSep";
var classNameStandard = "MnuStd";
var classNameStandardOption = "MnuStdOpt";
var classNameStandardOptionSelected = "MnuStdOptSel";
var classNameStandardOptionSeparator = "MnuStdOptSep";
// Netscape 4.x does not support disabled state, just return.
if (is_nav4) {
return false;
}
// Validate element type.
if (element == null
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element type.");
return false;
}
// Validate element class name.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element class name.");
return false;
}
// Validate disabled hidden field.
if (disabledHiddenField == null) {
// If dynamic attribute was not set, no hidden fields will be
// output by the tag.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Disabled state cannot be set.");
return false;
}
// Validate disabled param.
if (disabled == null) {
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("disabled parameter is null.");
return false;
}
// Validate index.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("index parameter is null or < 0.");
return false;
}
// Validate index against option length.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("index parameter > option length.");
return false;
}
// Get element option.
// Validate element class name. The "none selected" and separator
// options cannot be disabled.
classNameJumpOptionSelected) != -1
classNameJumpOptionSeparator) != -1
classNameStandardOptionSeparator) != -1) {
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element class name.");
return false;
}
return true;
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Selectable list methods
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Set the disabled state of CC selectable lists for given element and
// form names.
// Hidden field names.
"OptionDisabledHiddenField";
// Get element.
// Set disabled state.
return ccSetSelectableListState(element,
disabled);
} else {
// There could be more one element by the same name on a given
// we need to set the disabled state for all.
var disabledHiddenFields =
var titleEnabledHiddenFields =
var result = ccSetSelectableListState(
elements[i],
? disabledHiddenFields[i] : null,
? titleDisabledHiddenFields[i] : null,
? titleEnabledHiddenFields[i] : null,
? optionDisabledHiddenFields[i] : null,
disabled);
if (!result)
return false;
}
}
return true;
}
// Set the state of CC selectable lists for given elements.
// Class names.
var classNameList = "Lst";
var classNameListDisabled = "LstDis";
var classNameListMonospace = "LstMno";
var classNameListMonospaceDisabled = "LstMnoDis";
// Validate params.
return false;
// Get boolean value to ensure correct data type.
// Set disabled state.
// Set value to indicate option was selected while the
// HTML element was disabled. Do not set disabled options
// as selected.
//
// "false" = enabled
// "FALSE" = enabled and selected
//
// Get element option.
&& optionDisabledHiddenField != null) {
}
}
if (disabled) {
// Set title attribute.
if (titleDisabledHiddenField != null)
// Set class attribute.
} else {
}
} else {
// Set title attribute.
if (titleEnabledHiddenField != null)
// Set class attribute.
} else {
}
}
return true;
}
// Helper method to validate CC selectable lists.
// Class names.
var classNameList = "Lst";
// Netscape 4.x does not support disabled state, just return.
if (is_nav4) {
return false;
}
// Validate element type.
if (element == null
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element type.");
return false;
}
// Validate element class name.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element class name.");
return false;
}
// Validate disabled hidden field.
if (disabledHiddenField == null) {
// If dynamic attribute was not set, no hidden fields will be
// output by the tag.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Disabled state cannot be set.");
return false;
}
// Validate disabled param.
if (disabled == null) {
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("disabled parameter is null.");
return false;
}
return true;
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Selectable list option methods
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Set the disabled state of CC selectable list options for given
// element and form names.
index) {
// Hidden field names.
"OptionDisabledHiddenField" + index;
"OptionTitleDisabledHiddenField" + index;
"OptionTitleEnabledHiddenField" + index;
// Get element.
// Set disabled state.
} else {
// There could be more one element by the same name on a given
// we need to set the disabled state for all.
var disabledHiddenFields =
var titleEnabledHiddenFields =
elements[i],
? disabledHiddenFields[i] : null,
? titleDisabledHiddenFields[i] : null,
? titleEnabledHiddenFields[i] : null,
if (!result)
return false;
}
}
return true;
}
// Set the state of CC selectable list options for given elements.
// Class names.
var classNameOption = "LstOpt";
var classNameOptionDisabled = "LstOptDis";
// Validate params.
return false;
}
// Get element option.
// Get boolean value to ensure correct data type.
// Set disabled state.
if (disabled) {
// Set title attribute.
if (titleDisabledHiddenField != null)
// Set class attribute.
} else {
// Set title attribute.
if (titleEnabledHiddenField != null)
// Set class attribute.
}
return true;
}
// Helper method to validate CC selectable list options.
// Class names.
var classNameList = "Lst";
var classNameOption = "LstOpt";
var classNameOptionSelected = "LstOptSel";
var classNameOptionSeparator = "LstOptSep";
// Netscape 4.x does not support disabled state, just return.
if (is_nav4) {
return false;
}
// Validate element type.
if (element == null
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element type.");
return false;
}
// Validate element class name.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element class name.");
return false;
}
// Validate disabled hidden field.
if (disabledHiddenField == null) {
// If dynamic attribute was not set, no hidden fields will be
// output by the tag.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Disabled state cannot be set.");
return false;
}
// Validate disabled param.
if (disabled == null) {
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("disabled parameter is null.");
return false;
}
// Validate index.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("index parameter is null or < 0.");
return false;
}
// Validate index against option length.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("index parameter > option length.");
return false;
}
// Get element option.
// Validate element class name. The "none selected" and separator
// options cannot be disabled.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element class name.");
return false;
}
return true;
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Text Field methods
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Set the disabled state of CC text fields.
// Hidden field names.
"DisabledHiddenField";
"TitleDisabledHiddenField";
"TitleEnabledHiddenField";
"ValueDisabledHiddenField";
// Get element.
// Set disabled state.
return ccSetTextFieldState(element,
disabled);
} else {
// There could be more one element by the same name on a given
// we need to set the disabled state for all.
var disabledHiddenFields =
var titleEnabledHiddenFields =
var result = ccSetTextFieldState(
elements[i],
? disabledHiddenFields[i] : null,
? titleDisabledHiddenFields[i] : null,
? titleEnabledHiddenFields[i] : null,
? valueDisabledHiddenFields[i] : null,
disabled);
if (!result)
return false;
}
}
return true;
}
// Set the state of CC text fields.
// Style Class names.
var classNameTextField = "TxtFld";
var classNameTextFieldDisabled = "TxtFldDis";
var classNameTextArea = "TxtAra";
var classNameTextAreaDisabled = "TxtAraDis";
// Netscape 4.x does not support disabled state, just return.
if (is_nav4) {
return false;
}
// Validate element type.
if (element == null
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element type.");
return false;
}
// Validate disabled hidden field.
if (disabledHiddenField == null) {
// If dynamic attribute was not set, no hidden fields will be
// output by the tag.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Disabled state cannot be set.");
return false;
}
// Validate disabled param.
if (disabled == null) {
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("disabled parameter is null.");
return false;
}
// Get boolean value to ensure correct data type.
// Set disabled state.
if (disabled) {
// Set title attribute.
if (titleDisabledHiddenField != null)
// Set value attribute.
if (valueDisabledHiddenField != null)
// Set class attribute - textfield and password use the same classes
else
} else {
// Set title attribute.
if (titleEnabledHiddenField != null)
// Set class attribute - textfield and password use the same classes
else
}
return true;
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Text Area methods
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Toggle the disabled state of CC text areas.
}
/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// CheckBox methods
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Set the disabled state of CC checkboxes.
// Hidden field names.
"DisabledHiddenField";
"TitleDisabledHiddenField";
"TitleEnabledHiddenField";
"ValueDisabledHiddenField";
// Get element.
// Set disabled state.
return ccSetCheckBoxState(element,
disabled);
} else {
// There could be more one element by the same name on a given
// we need to set the disabled state for all.
var disabledHiddenFields =
var titleEnabledHiddenFields =
var result = ccSetCheckBoxOptionState(
elements[i],
? disabledHiddenFields[i] : null,
? titleDisabledHiddenFields[i] : null,
? titleEnabledHiddenFields[i] : null,
? valueDisabledHiddenFields[i] : null,
disabled);
if (!result)
return false;
}
}
return true;
}
// Set the state of CC checkboxes.
// Class names.
var classNameCheckBox = "Cb";
var classNameCheckBoxDisabled = "CbDis";
// Netscape 4.x does not support disabled state, just return.
if (is_nav4) {
return false;
}
// Validate element type.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element type.");
return false;
}
// Validate disabled hidden field.
if (disabledHiddenField == null) {
// If dynamic attribute was not set, no hidden fields will be
// output by the tag.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Disabled state cannot be set.");
return false;
}
// Validate disabled param.
if (disabled == null) {
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("disabled parameter is null.");
return false;
}
// Validate element class name.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element class name.");
return false;
}
// Get boolean value to ensure correct data type.
// Set disabled state.
if (disabled) {
// Set title attribute.
if (titleDisabledHiddenField != null)
// Set value attribute.
if (valueDisabledHiddenField != null)
// Set class attribute.
if (is_gecko)
} else {
// Set title attribute.
if (titleEnabledHiddenField != null)
// Set class attribute.
if (is_gecko)
}
return true;
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// RadioButton methods
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Set the disabled state of CC radiobuttons.
// Hidden field names.
"DisabledHiddenField";
"TitleDisabledHiddenField";
"TitleEnabledHiddenField";
"ValueDisabledHiddenField";
// Validate params.
if (elementName == null) {
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("elementName parameter is null.");
return false;
}
// Get form.
if (form == null) {
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid formname parameter: " + formname);
return null;
}
// Set disabled state.
// Get element.
continue;
disabled);
if (!result)
return false;
}
return true;
}
// Set the state of CC radiobuttons.
// Class names.
var classNameRadioButton = "Rb";
var classNameRadioButtonDisabled = "RbDis";
// Netscape 4.x does not support disabled state, just return.
if (is_nav4) {
return false;
}
// Validate element type.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element type.");
return false;
}
// Validate element class name.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Invalid element class name.");
return false;
}
// Validate disabled hidden field.
if (disabledHiddenField == null) {
// If dynamic attribute was not set, no hidden fields will be
// output by the tag.
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("Disabled state cannot be set.");
return false;
}
// Validate disabled param.
if (disabled == null) {
// Alerts must be configured to only show up for developers. For now
// they are commented out. See bug 5039157.
// alert("disabled parameter is null.");
return false;
}
// Get boolean value to ensure correct data type.
// Set disabled state.
if (disabled) {
// Set title attribute.
if (titleDisabledHiddenField != null)
// Set class attribute.
if (is_gecko)
// Set disabled value.
} else {
// Set title attribute.
if (titleEnabledHiddenField != null)
// Set class attribute.
if (is_gecko)
}
return true;
}
//-->