var xmlHttp
// ++++++++++++++++++++++++++++++++++++++
function Material(page,pagina,section,action,docid,pagina_prod,lang)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url=page+".php"
url=url+"?pagina="+pagina
url=url+"&section="+section
url=url+"&action="+action
url=url+"&docid="+docid
url=url+"&pagina_prod="+pagina_prod
url=url+"&lang="+lang
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateMaterial 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function stateMaterial()
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtMat").innerHTML=xmlHttp.responseText 
 } 
}

// ++++++++++++++++++++++++++++++++++++++++++++++++++
function Action(page,section,image,lang,id)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url=page+".php"
url=url+"?section="+section
url=url+"&image="+image
url=url+"&lang="+lang
url=url+"&id="+id
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
var pop_up=document.getElementById("txtHint");
/*document.getElementById('pop_up_text').innerHTML=p1;*/
pop_up.style.display = "block";
/*pop_up.style.position = "absolute";*/
/*pop_up.style.left = ((document.body.clientWidth)/4)+30 + 'px';*/

/*	pop_up.style.top = (window.pageYOffset) + 'px';*/
/*	pop_up.style.top = (window.pageYOffset + (window.innerHeight - (window.innerHeight-20))) + 'px';*/
/*	pop_up.style.top = (250) + 'px';*/
}

function stateChanged()
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
 } 
}

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;
}

function hide_popup()
{
var pop_up=document.getElementById("txtHint");
pop_up.style.display = "none";
}
