function resolucionPantalla() {
     return screen.width +"x"+ screen.height 
}
function maximaResolucion() {
     return screen.availWidth +"x"+ screen.availHeight 
}
function profundidadColor() {
     return (navigator.appName!="Netscape" ? screen.colorDepth : c=screen.pixelDepth) 
}
function historial() {
     return history.length 
}
function cookieHabilitado() {
     return navigator.cookieEnabled 
}
function tamanioDocumento() {
     return document.body.clientWidth + "x" + document.body.clientHeight 
}
function tamanioVentana() {
     return (navigator.userAgent.indexOf("MSIE") > 0 ? document.body.offsetWidth + "x" + document.body.offsetHeight : window.outerWidth + "x" + window.outerHeight) 
}
function posicionXYventana() {
     return (navigator.userAgent.indexOf("MSIE") > 0 ? window.screenLeft + "x" + window.screenTop : window.screenX + "x" + window.screenY) 
}
function lenguageNavegador() {
   if (navigator.userAgent.indexOf("MSIE") > 0) {
      tmp = navigator.userLanguage; 
      return tmp.toLowerCase(); 
   }
   else {
      tmp = navigator.language;
      return tmp.toLowerCase();
   }
}
function tieneFlash() {
   if (navigator.userAgent.indexOf("MSIE") > 0) {
        if (!window.ActiveXObject) return false;
        try {if (new ActiveXObject('ShockwaveFlash.ShockwaveFlash')) return true;}
            catch (e) { return false;}
   }
   else if (navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) 
   // navigator.plugins["Shockwave Flash"]
          return true;
        else 
          return false; 
}
function tieneShockwave() {
   if (navigator.userAgent.indexOf("MSIE") > 0) {
        if (!window.ActiveXObject) return false;
            try {if(new ActiveXObject('SWCtl.SWCtl')) return true;}
        catch (e) {return false;}
   }
   else if (navigator.mimeTypes["application/x-director"].enabledPlugin)
   // navigator.plugins["Shockwave Director"]
          return true;
        else 
          return false;
}
function tieneJava() {
     return navigator.javaEnabled() 
}

function datosUsuarios() {
tmp = "cookie=" + cookieHabilitado() + "|" + 
      "resolucion=" + resolucionPantalla() + "|" + 
      "profundidad=" + profundidadColor() + "|" + 
      "tamanios=" + maximaResolucion()+ ";" + tamanioDocumento() + ";" + tamanioVentana() + ";" + posicionXYventana() 
      + "|" + 
      "historial=" + historial() + "|" + 
      "lenguaje=" + lenguageNavegador() + "|" + 
      "flash=" + tieneFlash() + "|" + 
      "shockwave=" + tieneShockwave()  + "|" + 
      "java=" + tieneJava();
	return tmp;
}

