function showProductImage(myProduct, myImage)
{
	myURL = "EllasController.php?CMD=1&prod=" + myProduct + "&img=" + myImage;
	
	xmlHttp = GetXmlHttpObject();

	if (xmlHttp == null)
	{
		alert("Browser does not support AJAX");
		return;
	} 

	xmlHttp.onreadystatechange = 
	function() 
	{
		if (xmlHttp.readyState == 4)
		{
//alert(xmlHttp.responseText);
			document.getElementById('mainimage').innerHTML = xmlHttp.responseText;		
		}
	}

	xmlHttp.open("GET", myURL, true);
	xmlHttp.send(null);
}



function showTestimonialImage(myProduct, myImage)
{
	myDiv = "testimage_" + myProduct;
	myDiv2 = "myimage_" + myProduct;

	myURL = "EllasController.php?CMD=10&prod=" + myProduct + "&img=" + myImage;
	
	xmlHttp = GetXmlHttpObject();

	if (xmlHttp == null)
	{
		alert("Browser does not support AJAX");
		return;
	} 

	xmlHttp.onreadystatechange = 
	function() 
	{
		if (xmlHttp.readyState == 4)
		{

			document.getElementById(myDiv).src = xmlHttp.responseText;
			document.getElementById(myDiv2).href = xmlHttp.responseText;
			document.getElementById(myDiv2).target = "_blank";

		}
	}

	xmlHttp.open("GET", myURL, true);
	xmlHttp.send(null);
}




function GetXmlHttpObject(){
	var xmlHttp=null;

	try
	{
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}

	return xmlHttp;
}