function checkAcceso(form) {
if (form.login.value.length==0) 
    {
      form.login.focus();  
      alert ("You must introduce a E-Mail.\nRemember that it recognizes capital and small letters.");
      return false;
	}
if (form.password.value.length==0) 
    {
      form.password.focus();  
      alert ("You  must introduce a password code.\nRemember that it recognizes capital and small letters.");
      return false;
	}

	createCookie('EntradaAreaCli',form.login.value,365);

  form.submit();
  return true;
}
function checkBuscar(form) {
if (form.buscar2.value.length==0) 
    {
      form.buscar2.focus();  
      alert ("Introduce data to search");
      return false;
	}
  form.submit();
  return false;
}
function mostrartexto( secid )
{
var seccionId = document.getElementById(secid);
if (seccionId == null) return;
if (seccionId.style.display == '') 
{
seccionId.style.display = 'none';
var ImgSrc = document.getElementById("i" + secid);
ImgSrc.src = "../imagen/plus.gif";
}
else
{
seccionId.style.display = '';
var ImgSrc = document.getElementById("i" + secid);
ImgSrc.src = "../imagen/minus.gif";
}
}

function Oculto( obj )
{
var oDiv = document.getElementById(obj);
if(oDiv != null) oDiv.style.display = "none";
}
function muestrapag(datos,pagina,titulo,al,ah)
{
var W = al; 
var H = ah; 
var windowX = Math.ceil( (window.screen.width  - W) / 2 );
var windowY = Math.ceil( (window.screen.height - H) / 2 );
Wnd = open(""+pagina+"?"+datos,titulo,"width="+W+",height="+H+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0");
Wnd.moveTo  ( Math.ceil( windowX ) , Math.ceil( windowY ) );
	}
function createCookie(name, value, days) {
            if (days) {
                var date = new Date();
                date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
                var expires = "; expires=" + date.toGMTString();
            }
            else var expires = "";
            document.cookie = name + "=" + value + expires + "; path=/";
        }

        function readCookie(name) {
            var nameEQ = name + "=";
            var ca = document.cookie.split(';');
            for (var i = 0; i < ca.length; i++) {
                var c = ca[i];
                while (c.charAt(0) == ' ') c = c.substring(1, c.length);
                if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
            }
            return null;
        }

        function eraseCookie(name) {
            createCookie(name, "", -1);
        }
