<!--
      function validate() {
        //var frm = window.document.forms[0];
        var frm = window.document.form1;
        /* 
        if (navigator.appName!="Microsoft Internet Explorer") {
          alert ("hipergate no soporta actualmente " + navigator.appName + ". Debe conectarse a la aplicación usando Microsoft Internet Explorer");
          return false;
        }
        */
        
        if (frm.nickname.value=="") {
          alert ("El e-mail no puede estar vacío");
          return false;
        }

        if (!check_email(frm.nickname.value)) {
          alert ("La dirección de e-mail no es válida");
          return false;
        }

        if (ltrim(frm.pwd_text.value)=="") {
          alert ("La contraseña no puede estar vacía");
          return false;
        }
          
        // This cookie is used for detecting whether or not the client browser
        // accepts session cookies. NickCookie is set in this page and later
        // readed by login_check. If the cookie cannot be readed by login_check
        // (NickCookie!=nickname) then that means that client has disabled cookies

	var dt1Min = new Date();
	dt1Min.setTime(dt1Min.getTime()+60000);	// Give cookie 1 minute lifetime
        setCookie2 ("NickCookie",frm.nickname.value,dt1Min);

	// Erase previous user id	        
        setCookie2 ("userid","");
        setCookie2 ("authstr","");
        
        return true;
      }      
    //-->