var xmlHttpPlayer

function visualizzaVideoTesto(str1,str2)
			{ 
			visualizzaVideo(str1)
			visualizzaTesto(str2)
			}

function visualizzaVideo(str)
{ 
xmlHttpPlayer=GetXmlHttpObjectPlayer()
if (xmlHttpPlayer==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var urlPlayer="video_player.php"
urlPlayer=urlPlayer+"?a="+str
urlPlayer=urlPlayer+"&sid="+Math.random()
xmlHttpPlayer.onreadystatechange=stateChangedVideo 
xmlHttpPlayer.open("GET",urlPlayer,true)
xmlHttpPlayer.send(null)
}


function stateChangedVideo() 
{ 
if (xmlHttpPlayer.readyState==4 || xmlHttpPlayer.readyState=="complete")
 { 
 document.getElementById("schermo").innerHTML=xmlHttpPlayer.responseText 
 } 
}

function GetXmlHttpObjectPlayer()
{
var xmlHttpPlayer=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpPlayer=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttpPlayer=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpPlayer=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpPlayer;
}

function visualizzaTesto(strtxt, data, titolo)
{ 
xmlHttpTesto=GetXmlHttpObjectTesto()
if (xmlHttpTesto==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var urlTesto="testo_emigrante.php"
urlTesto=urlTesto+"?txt="+strtxt
urlTesto=urlTesto+"&d="+data
urlTesto=urlTesto+"&t="+titolo
urlTesto=urlTesto+"&sid="+Math.random()
xmlHttpTesto.onreadystatechange=stateChangedTesto 
xmlHttpTesto.open("GET",urlTesto,true)
xmlHttpTesto.send(null)
}


function stateChangedTesto() 
{ 
if (xmlHttpTesto.readyState==4 || xmlHttpTesto.readyState=="complete")
 { 
 document.getElementById("box2").innerHTML=xmlHttpTesto.responseText 
 } 
}

function GetXmlHttpObjectTesto()
{
var xmlHttpTesto=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpTesto=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttpTesto=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpTesto=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpTesto;
}