//******************************************************************************

// FUNCIONES Inofix

////////////////////////////////////////////////////////////////////////////////



// Constantes de velocidad de scroll

var VEL_2UP = 5;

var VEL_UP = 2;

var VEL_DW = 2;

var VEL_2DW = 5;







//*----------------------------------------------------------------------------*

//*  Borrar |

//*  -------

//*  Proyecto..... INOFIX

//*  Objetivo..... Borra elementos de las listas

//*  Creado....... 10/2000 - JLV

//*  Modificado... 

//*----------------------------------------------------------------------------*

function Borrar()

{

	//comprobar si hay algun elemento seleccionado

	var sel = 0;

	var i = 0;

	do {

		var e = document.lista.elements[i];

		if (e.name == 'chkSel') {

			if (e.checked) {

				sel = 1;

			}

		}

		i++;

	} while ((i < document.lista.elements.length) && (sel == 0))

	

	if (sel == 1) {

		//confirmar eliminación

		if (confirm("Confirmar la eliminación de todos los elementos seleccionados"))

			document.lista.submit();

	} else {

		alert("No hay ningún elemento seleccionado");

	}

}



function Is()

{var agent = navigator.userAgent.toLowerCase();

 this.major = parseInt(navigator.appVersion);

 this.minor = parseFloat(navigator.appVersion);

 this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));

 this.ns2 = (this.ns && (this.major == 2));

 this.ns3 = (this.ns && (this.major == 3));

 this.ns4b = (this.ns && (this.minor < 4.04));

 this.ns4 = (this.ns && (this.major >= 4));

 this.ie   = (agent.indexOf("msie") != -1);

 this.ie3  = (this.ie && (this.major == 2));

 this.ie4  = (this.ie && (this.major == 4));

 this.ie5  = (this.ie && (navigator.appVersion.indexOf('MSIE 5')>0));

 this.op3 = (agent.indexOf("opera") != -1);

 this.win   = (agent.indexOf("win")!=-1);

 this.mac   = (agent.indexOf("mac")!=-1);

 this.unix  = (agent.indexOf("x11")!=-1);

}



var is = new Is();

if(is.ns4)

 { doc = "document";

   sty = "";

   htm = ".document" 

 }

else if(is.ie4)

 { doc = "document.all";

   sty = ".style";

   htm = "" 

 }



document.write('<link rel=stylesheet type="text/css" href="jo.css" title="style">');





function nada(){}

function onerror() {document.location.href="javascript:";}

function ver(obj) {obj.visibility='visible';}

function nover(obj) {obj.visibility='hidden';}

function entrar(laurl,elnombre,ancho,alto)

{window.open(laurl, elnombre,"width="+ancho+",height="+alto+",scrollbars=no,alwaysRaised=yes,dependent=no,location=no,screenX=10,screenY=20");}



function entrar2(laurl,elnombre,ancho,alto)

{window.open(laurl, elnombre,"width="+ancho+",height="+alto+",scrollbars=yes,alwaysRaised=yes,dependent=yes,location=no,screenX=10,screenY=20");}









