// JavaScript Document
   function handleHttpResponseP()
    {   
		if (http.readyState == 4) 
		{
			  if(http.status==200) 
			  {
				var results=http.responseText;
				document.getElementById('productimage').innerHTML='';
				document.getElementById('productimage').innerHTML=results;
				
			  }
		   
		 }
   }
   
	function ChangePhoto(CId,Pid) 
	{     
		http.open("GET", urlP + CId +"&prodid="+ Pid , true);
		http.onreadystatechange = handleHttpResponseP;
		http.send(null);
	}
	
	function getHTTPObject() 
	{
		var xmlhttp;
		
		if(window.XMLHttpRequest)
		{
		xmlhttp = new XMLHttpRequest();
		}
		else if (window.ActiveXObject)
		{
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			if (!xmlhttp)
			{
				xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
			}
		}
		
		return xmlhttp;
	}
	
	var http = getHTTPObject();

