/*
 * Input Password KWJAX.
 */
function KWJAXInputPassword(pElement) {

	// Elemento
	this.lElement = new KWJAXUtil().getElement(pElement);

	// Verifica o elemento
	if (!this.lElement) {
		alert('Elemento "' + pElement + '" inválido');
		return false;
	} else {

		// Verifica o tipo do elemento
		if (new String(typeof(this.lElement)).toLowerCase() != 'object') {
			alert('O elemento "' + pElement + '" não é um objeto');
			return false;
		} else {

			// Verifica a tag do elemento
			if ((new String(this.lElement.tagName).toLowerCase() != 'input') || (new String(this.lElement.getAttribute('type')).toLowerCase() != 'password')) {
				alert('O elemento "' + pElement + '" não é um INPUT PASSWORD');
				return false;
			}
		}
	}

	/*
	 * Obtém o valor do elemento.
	 */
	this.getValue = function() {
		return this.lElement.value;
	}

	/*
	 * Atribui o valor do elemento.
	 */
	this.setValue = function(pValue) {
		this.lElement.value = pValue;
	}

	/*
	 * Atribui foco ao elemento.
	 */
	this.setFocus = function() {
		this.lElement.focus();
	}

	/*
	 * Obtém ativação do elemento.
	 */
	this.getEnabled = function() {
		return !this.lElement.disabled;
	}

	/*
	 * Atribui ativação do elemento.
	 */
	this.setEnabled = function(pEnabled) {
		this.lElement.disabled = !(pEnabled ? true : false);
	}
}
