<!--Diseño y desarrollo PRAGMA S.A.- http://www.pragma.com.co/ ->


// Función para el cambio del fondo tipo imagen en un td cuyo contenido es de tipo texto//

function cambiarIndic(cual, activo){
	if (activo){
		document.all[cual].style.cssText="background-image: url(/img/bkgIndicadores_on.gif); background-repeat: no-repeat; width:52px; height:20px";
	}else{
		document.all[cual].style.cssText="background-image: url(/img/bkgIndicadores_over.gif); background-repeat: no-repeat; width:52px; height:20px";
	}
}

//Función para autocentrar los pop ups//

var win = null;
function autoCentrada(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage,myname,settings)
}


// Función para cargar en la misma ventana contenido invocado desde pop up //

	 function ir(url)
   {
    //alert(url);
    if(window.opener==null)
       window.document.location=url;
    else
    {
       window.opener.document.location=url;
       window.close();
    }
   }
