// JavaScript Document
function nuevoAjax(){
	/*var xmlhttp=false;
	try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}
	catch(e){
		try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
		catch(E){
			xmlhttp=false;
		}
	}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp=new XMLHttpRequest();
		alert("AJAX no disponible");
	}
	return xmlhttp;*/
	var xmlhttp;
	if (window.XMLHttpRequest){
		// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}else if (window.ActiveXObject){
		// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}else{
		alert("AJAX no disponible");
	}
	return xmlhttp;
}

function eliminaEspacios(cadena){var x=0, y=cadena.length-1;while(cadena.charAt(x)==" ") x++;while(cadena.charAt(y)==" ") y--;return cadena.substr(x, y-x+1);}

function ResetDato(dato){
	var resetAjax = nuevoAjax();
	resetAjax.open("GET", "ajax/reset.php?acc="+dato, true);
	resetAjax.onreadystatechange = function(){
		if (resetAjax.readyState==1){
		}else if (resetAjax.readyState==4){
			 if(resetAjax.status==200){
			}else{
			}
		}
	}
	resetAjax.send(null);
}
