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

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

	/*
	 * Atribui a fonte do elemento.
	 */
	this.setSource = function(pValue) {
		this.lElement.setAttribute('src', pValue);
	}
}