try{
	window.onerror=function(eMess,eUrl,eLine){
		if(typeof(eUrl)=="undefined"){
			try{
				eUrl=document.location.href.replace(/^\s*|\s*$|\r|\n/g,"").replace(/~/g,"*");
			}catch(e){
				eUrl="-";
			}
		}
		try{
			referrer=document.referrer.replace(/^\s*|\s*$|\r|\n/g,"").replace(/~/g,"*");
			if(referrer==eUrl){
				referrer="";
			}
		}catch(e){
			referrer="";
		}
		if(typeof(eMess)=="undefined"){
			try{
				eMess=event.errorMessage;
			}catch(e){
				eMess="-";
			}
		}else if(typeof(eMess)=="object"){
			eMess="No especificado";
		}
		if(typeof(eLine)=="undefined"){
			try{
				eLine=event.errorLine;
			}catch(e){
				eLine="-";
			}
		}
		if(typeof(eLine)=="undefined"){
			eLine="-";
		}
		try{
			eChar=event.errorCharacter;
		}catch(e){
			eChar="-";
		}
		if(typeof(eChar)=="undefined"){
			eChar="-";
		}
		try{
			sMa=ScriptEngineMajorVersion();
		}catch(e){
			sMa="-";
		}
		try{
			sMi=ScriptEngineMinorVersion();
		}catch(e){
			sMi="-";
		}
		try{
			sBu=ScriptEngineBuildVersion();
		}catch(e){
			sBu="-";
		}
		try{
			leng=window.clientInformation.userLanguage || window.navigator.language || window.navigator.browserLanguage;
		}catch(e){
			leng="-";
		}
		try{
			var img_error=new Image();
			img_error.src="http://www.alonso-lopez.com/archivos_comunes/errores/index.php?nombre=pilarlopezroman&error="+encodeURIComponent(eUrl+"~"+referrer+"~"+eMess.replace(/^\s*|\s*$|\r|\n/g,"").replace(/~/g,"*")+"~"+eLine+"-"+eChar+"~"+sMa+"."+sMi+"."+sBu+"~"+leng)+"&"+Math.random();
			img_error=null;
		}catch(e){}
		return true;
	};
}catch(e){}
