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 displayphoto(photoid, homepage)
{
	//var company=obj.innerHTML;
	var display=document.getElementById('photodisplay');
	//var newtext=display.innerHTML;
	xmlhttp=GetXmlHttpObject();
	var url='http://'+homepage+'/banner/inc_getphoto.php?photoid='+photoid;
    //prefix="<h3>"+company+ " Coupons:</h3>";
	//suffix="<h3>Other Coupons:</h3>";
	xmlhttp.onreadystatechange = function()
	{
		if(xmlhttp.readyState == 4)
		{
		  //HandlePhotoResponse(display, xmlhttp.responseText,prefix,suffix);
		  HandlePhotoResponse(display, xmlhttp.responseText);
		}
	}
	
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null); 
} 

function  HandlePhotoResponse(HTMLelement, response, prefix, suffix)
{
  HTMLelement.innerHTML = response;
}

