/**************POP UP PRINCIPAL**********/
var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus,caduco){
if(caduco == "si"){return;}
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}

/**************ABRIR SISGEDO**********/
function AbreVentana(sURL){
	  var w=640, h=480;
	
	  if (window.screen && window.screen.availHeight) {
		h = window.screen.availHeight - 58; // 58
		w = window.screen.availWidth - 4;
	  }
	
	  var ventana=window.open(sURL, "Sistema", "status=yes,resizable=yes,toolbar=no,scrollbars=yes,top=0,left=0,width=" + w + ",height=" + h, 1 );
	  ventana.focus();
	}
/**************TRAMITE-MSN INSTITUCIONAL**********/	
function AbreVentana2(sURL){
	  var w=550, h=510;
	  var venmess=window.open(sURL, "MyMessenger", "location=no,directories=no,status=no,resizable=yes,toolbar=no,scrollbars=no,top=0,left=0,width=" + w + ",height=" + h, 1 );
	  venmess.focus();
	}

function cerrarCRECER(){ 
var capa=document.getElementById("CRECER"); 
   capa.style.display="none"; 
   capa.style.visibility="hidden"; 
}

function cerrarPOPUP(){ 
var capa=document.getElementById("POPUP"); 
   capa.style.display="none"; 
   capa.style.visibility="hidden"; 
}

function cerrarVIDEO(){ 
var capa=document.getElementById("VIDEO"); 
   capa.style.display="none"; 
   capa.style.visibility="hidden"; 
}

function cerrarCONVO(){ 
var capa=document.getElementById("CONVO"); 
   capa.style.display="none"; 
   capa.style.visibility="hidden"; 
}

function ver_div(obj){
  var objID = document.getElementById(obj);
  objID.style.display ="block";
}

function ocultar_div(obj){
  var objID = document.getElementById(obj);
  objID.style.display ="none";
}