// JavaScript Document
var mMensaje = "Su navegador no soporta alguna funcionalidad de esta página. Proceda a actualizarlo.";
function getElemento(pId){
	var element;
	element = (document.getElementById)?document.getElementById(pId):(document.all)?document.all[pId]:(document.layers)?document.layers[pId]:alert(mMensaje);
	return element;
}
function setBgColor(pElement,pColor){
	if(pElement.style){
		pElement.style.backgroundColor = pColor;
	}else if(document.layers){
		pElement.bgColor = pColor;
	}
}
function setHtml(pElement,pHtml){
	if(typeof(pElement.innerHTML)=="string"){
		pElement.innerHTML = pHtml;
	}else{
		pElement.document.open();
		pElement.document.write(pHtml);
		pElement.document.close();
	}
}
function setVisibility(pElement,pState){
	if(pElement.style){
		pElement.style.visibility = (pState)?"visible":"hidden";
	}else if(document.layers){
		pElement.visibility = (pState)?"show":"hide";
	}
}
function setLeft(pElement,pX){
	if(pElement.style){
		if(typeof(pElement.style.left)=="string"){
			pElement.style.left = pX + "px";
		}else{
			pElement.style.pixelLeft = pX;
		}
	}else if(document.layers){
		pElement.left = pX;
	}
}
function setTop(pElement,pY){
	if(pElement.style){
		if(typeof(pElement.style.top)=="string"){
			pElement.style.top = pY + "px";
		}else{
			pElement.style.pixelTop = pY;
		}
	}else if(document.layers){
		pElement.top = pY;
	}
}
function setWidth(pElement,pWidth){
	if(pElement.style){
		if(typeof(pElement.style.width)=="string"){
			pElement.style.width = pWidth + "px";
		}else{
			pElement.style.pixelWidth = pWidth;
		}
	}else if(document.layers){
		pElement.width = pWidth;
	}
}
function setHeight(pElement,pHeight){
	if(pElement.style){
		if(typeof(pElement.style.height)=="string"){
			pElement.style.height = pHeight + "px";
		}else{
			pElement.style.pixelHeight = pHeight;
		}
	}else if(document.layers){
		pElement.height = pHeight;
	}
}
function getX(pElement){
	var lX;
	if(pElement.style){
		if(typeof(pElement.style.left)=="string"){
			lX = pElement.style.left;
		}else{
			lX = pElement.style.pixelLeft;
		}
	}else if(document.layers){
		lX = pElement.left;
	}
	return lX;
}
function getY(pElement){
	var lY;
	if(pElement.style){
		if(typeof(pElement.style.top)=="string"){
			lY = pElement.style.top;
		}else{
			lY = pElement.style.pixelTop;
		}
	}else if(document.layers){
		lY = pElement.top;
	}
	return lY;
}
function getWidth(pElement){
	var lWidth;
	if(pElement.style){
		if(typeof(pElement.style.width)=="string"){
			lWidth = pElement.style.width;
		}else{
			lWidth = pElement.style.pixelWidth;
		}
	}else if(document.layers){
		lWidth = pElement.width;
	}
	return lWidth;
}
function getHeight(pElement){
	var lHeight;
	if(pElement.style){
		if(typeof(pElement.style.height)=="string"){
			lHeight = pElement.style.height;
		}else{
			lHeight = pElement.style.pixelHeight;
		}
	}else if(document.layers){
		lHeight = pElement.height;
	}
	return lHeight;
}