var xmlHttp;
var globalArray;
function getValues(){
	xmlHttp=GetXmlHttpObject();
var style = document.getElementById('prostyle').value;
var color = document.getElementById('procolor').value;
var price = document.getElementById('pricemenu').value;
var shape = document.getElementById('proshape').value;
//var url=path +"/ajax/getInfo.php?case=imageOperation";
var url="rugs/getInfo.php?case=getproduct&style=" + style + "&price=" + price;
xmlHttp.onreadystatechange=storeDataInArr;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function storeDataInArr(){
	if(xmlHttp.readyState==4) {
//		alert(xmlHttp.responseText);
document.getElementById('middlecontent').innerHTML="";
	document.getElementById('middlecontent').innerHTML=xmlHttp.responseText;

	}
}
function getValues1(dat){
	xmlHttp=GetXmlHttpObject();
/*var style = document.getElementById('prostyle').value;
var color = document.getElementById('procolor').value;
var price = document.getElementById('pricemenu').value;
var shape = document.getElementById('proshape').value;*/
//var url=path +"/ajax/getInfo.php?case=imageOperation";
var url=dat;
//alert(url);
xmlHttp.onreadystatechange=storeDataInArr;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

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;
}


