// JavaScript Document
function ajaxFunction(cosa,numero)
{
document.getElementById("box_testo").innerHTML='<div align="center"><img src="/css-js/ajax-loader.gif" width="100" height="100" alt="loader" vspace="100"/></div>'  ;

var xmlhttp;
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  var xmlhttp=new XMLHttpRequest();
  }
else
  {
  // code for IE6, IE5
  var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

  URL_indirizzo = '/css-js/ajax.php?cosa=' + cosa + '&numero=' + numero;

xmlhttp.open("GET",URL_indirizzo,true);
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
  {
document.getElementById("box_testo").innerHTML=xmlhttp.responseText;
  }
}
xmlhttp.send(null);
}
function sound_on(lalingua)
{

var xmlhttp;
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  var xmlhttp=new XMLHttpRequest();
  }
else
  {
  // code for IE6, IE5
  var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

  URL_indirizzo = '/css-js/sound_on.php?lalingua=' + lalingua;

xmlhttp.open("GET",URL_indirizzo,true);
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
  {
document.getElementById("audio").innerHTML=xmlhttp.responseText;
  }
}
xmlhttp.send(null);
}
function sound_off(lalingua)
{

var xmlhttp;
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  var xmlhttp=new XMLHttpRequest();
  }
else
  {
  // code for IE6, IE5
  var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

  URL_indirizzo = '/css-js/sound_off.php?lalingua=' + lalingua;

xmlhttp.open("GET",URL_indirizzo,true);
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
  {
document.getElementById("audio").innerHTML=xmlhttp.responseText;
  }
}
xmlhttp.send(null);
}