// JavaScript Document

//Browser Support Code
function ajaxFunction(numero,variables,var1){
	var ajaxRequest;  // The variable that makes Ajax possible!
	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	
	if (numero==1){
	
	// Create a function that will receive data sent from the server
	var ajaxDisplay = document.getElementById('id_ajax');
	ajaxRequest.onreadystatechange = function(){
		 if (ajaxRequest.readyState==1) {
                		ajaxDisplay.innerHTML = "<img src='i/loading.gif' style='float:left;' />Cargando....";
         } else if(ajaxRequest.readyState == 4){
			
			respuesta = ajaxRequest.responseText;
			//eval(respuesta);
			ajaxDisplay.innerHTML = ajaxRequest.responseText;
			
		}
	}
	
	try{var var2 = document.getElementById('tipo').value;}catch(error){}
	
	var queryString = "?tipo=" + var2 + "&variable=" + variables + "&var1=" + var1;
	
	ajaxRequest.open("GET", "inc/ajax/ajax.php" + queryString, true);
	ajaxRequest.send(null); 
	
	
		
	}
	}

function muestra(texto){
	
alert(texto);

document.getElementById('historia').style.backgroundColor ="#FF0000";
document.getElementById('historia').style.color ="#FFFFFF";
document.getElementById('historia').focus();
document.getElementById('aux_notificacion').value=true;


}

function oculta(){

document.getElementById('historia').style.backgroundColor ="#FFFFFF";
document.getElementById('historia').style.color ="#000";
document.getElementById('aux_notificacion').value=false;


}
