function openWindow(theURL,newWinz,width,height,scrollbar) {
    x = (640 - width)/2, y = (480 - height)/2;
    if (screen) {

        y = (screen.availHeight - height)/2;

        x = (screen.availWidth - width)/2;

    }

        if (screen.availWidth > 1800) { 

        x = ((screen.availWidth/2) - width)/2; 

    } 

    window.open(theURL,newWinz,'width='+width+',height='+height+',directories=0,status=0,screenX='+x+',screenY='+y+',top='+y+',left='+x+',location=0,menubar=0,resizable=0,scrollbars='+scrollbar+',toolbar=0');

}
function mostrar(capa,capa1){
	if(document.getElementById(capa.substring(capa.indexOf("#")+1, capa.length)).style.display=='block'){
	  $("#"+capa).slideUp("slow");
	  $("#"+capa1).slideUp("slow");
	}
	if(document.getElementById(capa).style.display=='' || document.getElementById(capa).style.display=='none'){
	  $("#"+capa).slideDown("slow");
	  $("#"+capa1).slideDown("slow");
	}
}

function mostrar_public(capa){
	if(document.getElementById(capa.substring(capa.indexOf("#")+1, capa.length)).style.display=='block'){
	  $("#"+capa).slideUp("slow");
	}
	if(document.getElementById(capa).style.display=='' || document.getElementById(capa).style.display=='none'){
	  $("#"+capa).slideDown("slow");
	}
}