function afiseaza_banner(canal,slot)
{
	xmlHttpbanner=GetXmlHttpObject()
	
	var url="/root/afiseaza_banner.php"
	url=url+"?canal="+canal+"slot="+slot;
	if(slot=='top')
		xmlHttpbanner.onreadystatechange=stateChanged_ajax_banner_top
	if(slot=='right_sky')
		xmlHttpbanner.onreadystatechange=stateChanged_ajax_banner_right_sky
	if(slot=='box')
		xmlHttpbanner.onreadystatechange=stateChanged_ajax_banner_box
	xmlHttpbanner.open("GET",url,true)
	xmlHttpbanner.send(null)
}
function stateChanged_ajax_banner_top()
{
	if (xmlHttpbanner.readyState==4 || xmlHttpbanner.readyState=="complete")
	{
		document.getElementById("softure_top").innerHTML=xmlHttpbanner.responseText		
	}
}
function stateChanged_ajax_banner_right_sky()
{
	if (xmlHttpbanner.readyState==4 || xmlHttpbanner.readyState=="complete")
	{
		document.getElementById("softure_left").innerHTML=xmlHttpbanner.responseText
	}
}
function stateChanged_ajax_banner_box()
{
	if (xmlHttpbanner.readyState==4 || xmlHttpbanner.readyState=="complete")
	{
		document.getElementById("softure_right").innerHTML=xmlHttpbanner.responseText
	}
}


function GetXmlHttpObject()
{
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}
