
function popupVentana(url,epi,barra,scroll,w,h) {
	vent=window.open(url,'','screenx=0,screeny=0,toolbar=' + barra + ',width=' + w + ',height='+ h + ',directories=no,status=no,scrollbars=' + scroll + ',resize=no,menubar=no');vent.focus();
}



function VaciarSelect(pObjeto)
{
	for (var nOp = pObjeto.options.length; nOp > 0; nOp--)
	{
		pObjeto.options[nOp] = null;
	}
}

function GotoSuplementos(pValor)
{
	if (pValor != "") {
		window.location='/Suplementos/' + pValor;
	}
}

function GotoSecciones(pValor)
{
	if (pValor != "") {
		window.location='/' + pValor;
	}
}

function GotoServicios(pValor)
{
	if (pValor != "") {
		window.location= pValor;
	}
}

function CambioTabs(Tab) {
	if (Tab=='policiales') {
		policiales.style.display="";
		politica.style.display="none";
		economia.style.display="none";
	}
	if (Tab=='politica') {
		policiales.style.display="none";
		politica.style.display="";
		economia.style.display="none";
		return true;
	}
	if (Tab=='economia') {
		policiales.style.display="none";
		politica.style.display="none";
		economia.style.display="";
		return true;
	}

}

function Limpia()
{
	temas.style.display="none";
}

function Desaparece()
{
	window.setTimeout('Limpia()', 5000);
}

function reposPie()
{
	
	if ( foo("ColumnasABTop").offsetHeight < foo("ColumnasCDTop").offsetHeight )
	{
		movePie();
	}
}

function foo(obj)
{
	return document.getElementById(obj);
}

function movePie()
{
	var copyHeight = 36;//foo("Copyright").height;
	var pieHeight = foo("Pie").offsetHeight;
	var bodyHeight = document.body.offsetHeight;
	var pieTop = foo("Pie").offsetTop;
	var newPos = (bodyHeight - pieTop) - (pieHeight + 139);// + copyHeight;
	var newH = ((bodyHeight - copyHeight) - pieTop) + pieHeight;
	
	/*alert ("CopyHeight = " + copyHeight + "\npieHeight = " + pieHeight +
				"\nbodyHeight = "+ bodyHeight + "\npieTop = " + pieTop + "\nnewPos = " + newPos )*/	
	foo("Pie").style.position = "relative";
	//foo("Pie").style.top = cte + "px";
	foo("Dblank").style.height = newPos + "px";//newH + "px";
}
