<!-- 



function ajaxFunction(string1,string2,string3) {
//Browser Support Code
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("Il tuo browser non supporta alcune caratteristiche!");
				return false;
			}
		}
	}
	
	//imposto il campo
	
        
if (string2 == 'smile') {
               var nomeCampo = "smile" + string1;
}  
    
if (string2 == 'up') {
                var nomeCampo = "voto" + string1;
}   
    
if (string2 == 'down') {
                var nomeCampo = "voto" + string1;
}  

if (string2 == 'favo') {
               var nomeCampo = "voto" + string1;
} 

if (string2 == 'addcontact') {
               var nomeCampo = "voto" + string1;
}  
    

        
				
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			
			var ajaxDisplay = document.getElementById(nomeCampo);		
			ajaxDisplay.innerHTML = ajaxRequest.responseText;			
		}
	}	
	
		
	if (string2 == 'smile') {
	var queryString = "?id=" + string1;
	var target = "http://www.stupidexe.com/faccine.php";
	}
                
                if (string2 == 'up') {
	var queryString = "?number=" + string1 + "&voto=" + string2;
	var target = "http://www.stupidexe.com/checkpunteggio.php";
	}
                
                 if (string2 == 'down') {
	var queryString = "?number=" + string1 + "&voto=" + string2;
	var target = "http://www.stupidexe.com/checkpunteggio.php";
	}
                
                if (string2 == 'favo') {
	var queryString = "?number=" + string1;
	var target = "http://www.stupidexe.com/checkfavo.php";
	}
                if (string2 == 'addcontact') {
	var queryString = "?utente=" + string3;
	var target = "http://www.stupidexe.com/addcontacts.php";
	}
                
	ajaxRequest.open("GET", target + queryString, true);
	ajaxRequest.send(null); 

}


//-->