/*
 * Img KWJAX.
 */
function KWJAXImg(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() != 'img') {
				alert('O elemento "' + pElement + '" não é um IMG');
				return false;
			}
		}
	}

	/*
	 * Obtém a origem do elemento.
	 */
	this.getSource = function() {
		return this.lElement.src;
	}

	/*
	 * Atribui a origem do elemento.
	 */
	this.setSource = function(pSource) {
		this.lElement.src = pSource;
	}
}