function over(src,color) {
    if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.bgColor = color;
	}
  }
  function out(src,color) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = color;
	}
  }
  function enlace(src) {
    if(event.srcElement.tagName=='TD'){
	  src.children.tags('A')[0].click();
    }
  }
  
 function validatePrompt(Ctrl,PromptStr)
 {
   alert(PromptStr);
   Ctrl.focus();
   return;
 }
 
 function testControl(form,control,texto)
 {
   	dato = eval("form."+control);
     if ((dato.value == "") || (dato.value == " ") || (dato.value == "'"))
      {
         validatePrompt(dato,"Debe indicar " + texto);
         return(false);
      }
         else return(true);
 }
  
function accesousuario(form)
{
   	if (!testControl(form,"usuario","el nombre de usuario")) return;
  	if (!testControl(form,"password","la contraseņa del usuario")) return;
	//window.open('http://www.rinconpepe.com/modifusuarios.asp?usuario='+usuario.value+'&password='+password.value,'RinconPepe','width=795,height=500,scrollbars=yes');
	//window.location.href='http://www.rinconpepe.com/loginusuario.asp?usuario='+usuario.value+'&password='+password.value;
	document.formulario.submit();
	return(true);
}

