function AjaxV4(_1,f,_3){
var _4=0;
var _5=this;
var _6=0;
var _7=0;
this.xmlDoc=null;
this.url=_1?_1:null;
this.f=f?f:null;
this.loading=_3?_3:null;
this.loaderror=null;
this.running=false;
this.post=null;
this.id=Math.random();
this.nocache=false;
this.timeOut=0;
this.name="";
this.init=function(){
if(window.XMLHttpRequest){
this.xmlDoc=new XMLHttpRequest();
this.xmlDoc.onreadystatechange=check;
}else{
if(window.ActiveXObject){
this.xmlDoc=new ActiveXObject("Microsoft.XMLHTTP");
if(this.xmlDoc){
this.xmlDoc.onreadystatechange=check;
}
}else{
("Tu navegador no puede soportar el script");
}
}
};
this.run=function(_8,_9,_a){
this.url=_8?_8:this.url;
this.f=_9?_9:this.f;
this.loading=_a?_a:this.loading;
try{
this.init();
}
catch(e){
mensaje="Aviso importante!!\nHemos detectado que tu navegador tiene desactivado el uso de controles "+"ActiveX en la configuraci&oacute;n de seguridad, lo que te impedir&aacute; navegar con normalidad por este sitio. Para activarlo,"+"debes seguir los siguiente pasos:\n"+"\n1- Accede al men&uacute; Herramientas -> Opciones de Internet."+"\n2- Haz click en la pesta&ntilde;a Seguridad."+"\n3- Haz click en el bot&oacute;n Nivel personalizado..."+"\n4- Dentro del men&uacute; Controles y complementos de ActiveX, en la primera opci\xf3n Activar la secuencia de comandos de los controles de ActiveX marcados como seguros, seleccionar la opci&oacute;n Activar."+"\n5- Pincha en Aceptar en las dos ventanas."+"\n6- Cuando hayas terminado, pulsa la tecla F5 para volver a cargar la p&aacute;gina."(mensaje);
return false;
}
this.running=true;
if(this.loading!=null){
if(typeof (_5.loading)=="function"){
_5.loading();
}else{
eval(_5.loading);
}
}
eval(this.loading);
if(this.nocache){
if(this.url.indexOf("?")>0){
this.url+="&ajax-random="+Math.random();
}else{
this.url+="?ajax-random="+Math.random();
}
}
this.xmlDoc.open((this.post==null?"GET":"POST"),this.url,true);
if(this.post!=null){
this.xmlDoc.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=ISO-8859-1");
}
this.xmlDoc.send(this.post);
if(this.timeOut>0){
this.t=setTimeout("window."+this.name+".abortar()",this.timeOut);
}
this.post=null;
};
this.abortar=function(){
this.xmlDoc.onreadystatechange=function(){
};
this.xmlDoc.abort();
checkerror();
this.xmlDoc.onreadystatechange=check;
};
function check(){	
if(_5.xmlDoc.readyState==4){
if(_5.xmlDoc.status==200){
if(_5.timeOut>0){
clearTimeout(eval("window."+_5.name+".t"));
}
_5.running=false;
if(typeof (_5.f)=="function"){
_5.f();
}else{
eval(_5.f);
}
_4=0;
}else{
checkerror();
}
}
}
function checkerror(){
_5.running=false;
if(_5.loaderror!=null){
if(typeof (_5.loaderror)=="function"){
_5.loaderror();
}else{
eval(_5.loaderror);
}
}else{
if(_4<3){
if(confirm("Ha ocurrido un error de comunicaci\xf3n con el servidor. \xbfDesea reintentar?")){
_4++;
_5.run();
}else{
_4=0("ERROR: No se ha podido establecer comunicaci\xf3n con el servidor.");
}
}else{
_4=0("Error de comunicaci\xf3n con el servidor.\nPor favor, vuelva a intentarlo pasados unos minutos.");
}
}
return;
}
}


