// JavaScript Document
//a=0

/*function resize(){
	document.getElementById('general').style.height=document.body.clientHeight-10;
	document.getElementById('body_doc').style.height=document.body.clientHeight-210;
	if (a==1)
		document.getElementById('contenido').style.height=document.body.clientHeight-266;
	//alert(parseInt(document.getElementById('general').style.height)-200);
}
*/

function borrar(archivo)
{
	realname='copia-'+archivo.substring(12,16)+'-'+archivo.substring(9,11)+'-'+archivo.substring(6,8)+'.txt';
	if(confirm('¿ Está usted seguro de que desea eliminar la copia de seguridad ' + archivo + ' ?'))
		location.href('backup.php?del=' + realname);
}

function aviso()
{
if (screen.width < 1024)
alert("Esta página está optimizada para 1024 x 768. Se recomienda cambiar la resolución para un correcto visualizado de la misma.");
}


<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function showtip2(current,e,text){
  if (document.all&&document.readyState=="complete"){
    document.all.tooltip2.innerHTML='<div style="border:1px solid black;color:#003399;font-weight:bold;font-size:13;background:#a6caf0">'+text+'</div>'
    document.all.tooltip2.style.pixelLeft=event.clientX+document.body.scrollLeft+10
    document.all.tooltip2.style.pixelTop=event.clientY+document.body.scrollTop+10
    document.all.tooltip2.style.visibility="visible"
}
  else if (document.layers){
    document.tooltip2.document.nstip.document.write('<b>'+text+'</b>')
    document.tooltip2.document.nstip.document.close()
    document.tooltip2.document.nstip.left=0
    currentscroll=setInterval("scrolltip()",100)
    document.tooltip2.left=e.pageX+10
    document.tooltip2.top=e.pageY+10
    document.tooltip2.visibility="show"
}
}

function showtip3(current,e,text){
  if (document.all&&document.readyState=="complete"){
	document.all.tooltip2.innerHTML='<div class="tip">'+text+'</div>'
	document.all.tooltip2.style.pixelLeft=event.clientX+document.body.scrollLeft+8
    document.all.tooltip2.style.pixelTop=event.clientY+document.body.scrollTop+8
    document.all.tooltip2.style.visibility="visible"
  }
 else if (document.layers){
    document.all.tooltip2.innerHTML = '<div style="border:1px solid black;color:#003399;font-weight:bold;font-size:10;background:#a6caf0">'+text+'</div>'
   // document.tooltip2.document.nstip.document.close()
   // document.tooltip2.document.nstip.left=0
   // currentscroll=setInterval("scrolltip()",100)
    //document.all.tooltip2.left=e.pageX+10
    //document.all.tooltip2.top=e.pageY+10
    document.all.tooltip2.style.visibility="visible"
  }
}

function hidetip2(){
  if (document.all)
    document.all.tooltip2.style.visibility="hidden"
    else if (document.layers){
    clearInterval(currentscroll)
    document.tooltip2.visibility="hidden"
}
}

var desplegada=0;
var popup;
	
function openPopup(url,ancho,alto)
{
	if(desplegada==1){popup.close();popup=null;desplegada=0}
	popup=window.open(url,'popup','width='+ancho+',height='+alto+',resizable=yes,scrollbars=yes,toolbars=no');
	popup.resizeTo(ancho+12,alto+58);
	popup.moveTo((screen.width-ancho)/2,(screen.height-(alto+58))/2);
	desplegada++;
}

function openPopup2(url,ancho,alto)
{
	self.name = 'parentWindow';
	if(desplegada>0 && ventana!=null){ventana.close();ventana=null;desplegada=0}
	var ventana=window.open('','ventana','width='+ancho+',height='+alto+',resizable=no,scrollbars=yes,toolbars=no');
	ventana.moveTo((screen.width-ancho)/2,(screen.height-(alto+58))/2);
	ventana.location = url;
	desplegada++;
	ventana.focus();
}

function disable(){
return false;
}

document.oncontextmenu=disable;

function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

function show(elemento)
{
	var objeto= new getObj(elemento);
	objeto.style.display='inline';
}

function hide(elemento)
{
	var objeto= new getObj(elemento);
	objeto.style.display='none';
}

function getObj(name)
{
	if (document.getElementById)
	{
		this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
	}
	else if (document.all)
	{
		this.obj = document.all[name];
		this.style = document.all[name].style;
	}
	else if (document.layers)
	{
		this.obj = document.layers[name];
		this.style = document.layers[name];
	}
}

function comprobar(curso)
{
	if(cursos[1000+parseInt(curso)]!=undefined)
		show('verGal');
	else
		hide('verGal');

}

function gestDiv(divObj, parentTag)
 {
 	var objeto = new getObj(divObj);
	var parent = new getObj(parentTag);
	if(objeto.style.display=='none')
	{
		show(divObj);
		parent.obj.className='mnuopt2';
	}
	else
	{
		parent.obj.className='mnuopt';
		hide(divObj);
	}
 }

