
/****							  ****
 *									 *	
 *		LIBRERIA DE FUNCIONES 		 *
 *									 *
 ****                             ****/
 
 
 
/**    CAMBIA EL COLOR DE FONDO DE LA TABLA          **/ 
function tdr(obj,clr) {
	obj.style.cursor = 'pointer';
	obj.style.backgroundColor = clr;
}


/**   ABRIR VENTANAS  **/
function abreP(url,w,h)
{
   window.open(url,'','scrollbars=yes,top=10,left=20,width='+w+',height='+h) 
}


/** ENTRAR EN LA ZONA RESTINGIDA PARA CLIENTES **/
function entrar(){   
	//site="http://servidorbdc/intranet/sp/acceso/checkEntrada.asp"
	site="http://www.actiu.biz/sp/acceso/checkEntrada.asp"
    eval("login=document.Acceso.Login.value")
    eval("passw=document.Acceso.Password.value")
    url=site+"?Login="+login+"&Password="+passw+"&port=1&pagina=../../index.html"
    location.href=url
  }
  
//** ENTRADA PARA DARSE DE ALTA O VER SUS CLAVES **//
function alta(){
	//site="http://servidorbdc/intranet/sp/acceso/checkUser.asp"
	site="http://www.actiu.biz/sp/acceso/checkUser.asp"
    window.open(site,'Acceso','left=280,top=240,width=320,height=172')
  }
  
  
/** SALTO ENTRE CAMPOS PULSANDO ENTER **/
//deteccion del navegador
netscape = document.layers
//funcion que gestiona el evento
function TelcaPulsada( eventoPulsaTecla ) {
   tecla = (netscape) ? eventoPulsaTecla.which : window.event.keyCode
   if (tecla == 13) { 					//se pulso enter
      if ( siguienteCampo == 'fin' ) {			//fin de la secuencia, hace el submit
      	entrar()	// Vamos la función de envío de datos
      } else { 						//da el foco al siguiente campo
         eval('document.' + nombreForm + '.' + siguienteCampo + '.focus()')
         return false
      }
   }
}

document.onkeydown = TelcaPulsada			//asigna el evento pulsacion tecla a la funcion
if (netscape)	document.captureEvents(Event.KEYDOWN) 				//netscape es especial: requiere activar la captura del evento


/** **/
