function ajaxPost(valor,idSeccionDatos,archivo,dataPost)
{
http=new objectoAjax();
var url =archivo;
var params =dataPost+"="+valor+"";
http.open("POST", url, true);

//Send the proper header information along with the request
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", params.length);
http.setRequestHeader("Connection", "close");
document.getElementById(idSeccionDatos).innerHTML="<img src='load.gif'>";
http.onreadystatechange = function() {//Call a function when the state changes.
	if(http.readyState == 4 && http.status == 200) {
	document.getElementById(idSeccionDatos).innerHTML=http.responseText;
//		alert(http.responseText);
	}
	

	
}
http.send(params);
}


//////////////**********************///////////

function ajaxGet(valor,idSeccionDatos,archivo,dataPost)
{
http=new objectoAjax();
var url =archivo;
var params =dataPost+"="+valor+"";
http.open("GET",url,true);




//Send the proper header information along with the request
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", params.length);
http.setRequestHeader("Connection", "close");
document.getElementById(idSeccionDatos).innerHTML="<img src='load.gif'>";
http.onreadystatechange = function() {//Call a function when the state changes.
	if(http.readyState == 4 && http.status == 200) {
	document.getElementById(idSeccionDatos).innerHTML=http.responseText;
//		alert(http.responseText);
	}
	

	
}
http.send(null);
}



/*****************************/









function ajaxPostSelectBox(valor,datos,archivo,dataPost)
{
http=new objectoAjax();
var url =archivo;
var params =dataPost+"="+valor+"";
http.open("POST", url, true);

//Send the proper header information along with the request
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", params.length);
http.setRequestHeader("Connection", "close");

http.onreadystatechange = function() {//Call a function when the state changes.
	if(http.readyState == 4 && http.status == 200) {
	document.getElementById(datos).innerHTML=http.responseText;
//		alert(http.responseText);
	}
}
http.send(params);
}