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 showpr1(pr1)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
  document.getElementById("lblLoad1").innerHTML="Wait Loading...";

var url="http://mobilehub.in/productsselectin1.php?cPathin="+pr1;
//alert(url);
xmlHttp.onreadystatechange=stateChangedpr1;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChangedpr1() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ //alert(xmlHttp.responseText);
document.getElementById("getpr1").innerHTML=xmlHttp.responseText;
document.getElementById("lblLoad1").innerHTML="";

}
}

function showpr2(pr2)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
  document.getElementById("lblLoad2").innerHTML="Wait Loading...";

var url="http://mobilehub.in/productsselectin2.php?cPathin2="+pr2;
//alert(url);
xmlHttp.onreadystatechange=stateChangedpr2;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChangedpr2() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ //alert(xmlHttp.responseText);
document.getElementById("getpr2").innerHTML=xmlHttp.responseText;
document.getElementById("lblLoad2").innerHTML="";

}
}

function showpr3(pr3)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
  document.getElementById("lblLoad3").innerHTML="Wait Loading...";

var url="http://mobilehub.in/productsselectin3.php?cPathin3="+pr3;
//alert(url);
xmlHttp.onreadystatechange=stateChangedpr3;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChangedpr3() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ //alert(xmlHttp.responseText);
document.getElementById("getpr3").innerHTML=xmlHttp.responseText;
document.getElementById("lblLoad3").innerHTML="";
}
}
function fnComparein()
{
    var pID = document.getElementById("pID").value;
	var pID1 = document.getElementById("pID1").value;
	var pID2 = document.getElementById("pID2").value;
	if(pID==0 && pID1==0)
	{
	alert("Please select Models to compare");
	return false;
	}
return true;	
}