/**
 * @Autor David (Marka Informática)
 * @Fecha 14/04/2010
 * @Descripción 
 * 		Script con las funciones para ajax.
 */

/** 
 * Funcion que devuelve un objeto preparado para enviar peticiones Ajax.
 */
function nuevoAjax(){
	var xmlhttp=false;

	if (window.XMLHttpRequest) {//Netscape,
        xmlhttp = new XMLHttpRequest();
    } else if (window.ActiveXObject) {//IE
        try {xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");} 
		catch (e) {
			try {xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");} 
			catch (E) {xmlhttp = false;}
		}
    }
	return xmlhttp;
}



