// JavaScript Document


var xmlHttp;


function jfOttieniValoriRPC(nome, nome2, valore) { 
	
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	{
		alert ('Browser does not support HTTP Request');
		return;
	}
	var url='./ci.inc.php?nome='+nome+'&nome2='+nome2+'&valore='+valore;
	xmlHttp.onreadystatechange=function () {
		if (xmlHttp.readyState == 4){
			if (xmlHttp.status == 200) {
				var divnome=document.getElementById('div'+nome).innerHTML=xmlHttp.responseText;
				//var newdiv=document.createElement('select');			
				//newdiv.setAttribute('alt',chunks[0])
				//newdiv.setAttribute('src',chunks[1])
				// or newImg.src=chunks[1];
				//divnome.replaceChild(newdiv,divnome)
				//document.getElementById('salvamail').style.display='none';
			}
		else {
			var es=document.getElementById('div'+nome);
			es.innerHTML='ERROR: '+xmlHttp.statusText;
			}
		}
	};
	xmlHttp.open('GET',url,true);
	xmlHttp.send(null);
	//alert(setinterval);
}



function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
//Internet Explorer
try
{
xmlHttp=new ActiveXObject('Msxml2.XMLHTTP');
}
catch (e)
{
xmlHttp=new ActiveXObject('Microsoft.XMLHTTP');
}
}
return xmlHttp;
}


