//call xmlhttp object
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 stateChanged()  
{  
   if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")  
   {  
           document.getElementById("price1").innerHTML= xmlHttp.responseText;  
		   
   }  
   else {  
       //  alert(xmlHttp.status);  
   }  
}  

// Will populate data based on input  
function htmlData(url, qStr)  
{  
//alert('hello');
   if (url.length==0)  
   {  
       document.getElementById("price1").innerHTML="";  
       return;  
   }  
   xmlHttp=GetXmlHttpObject()  
   if (xmlHttp==null)  
   {  
       alert ("Browser does not support HTTP Request");  
       return;  
   }  
   url=url+"?"+qStr; 
  // alert(url);
  // url=url+"&sid="+Math.random();  
   xmlHttp.onreadystatechange=stateChanged;  
   xmlHttp.open("GET",url) ;  
   xmlHttp.send(null);  
   }  
   
   //call xmlhttp1 object
   
   
    function GetXmlHttpObject1()
{
var xmlHttp1=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp1=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp1=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp1=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp1;
}
   
  
  function stateChanged1()  
{  

   if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete")  
   { 
     
             document.getElementById("size_1").innerHTML= xmlHttp1.responseText;  
   }  
   else {  
      //alert(xmlHttp.status);  
   }  
}  
  
   function htmlData1(url, qStr)  
{  

   if (url.length==0)  
   {  
       document.getElementById("size_1").innerHTML="";  
       return;  
   }  
   xmlHttp1=GetXmlHttpObject1()  
   if (xmlHttp1==null)  
   {  
       alert ("Browser does not support HTTP Request");  
       return;  
   }  
   url=url+"?"+qStr; 
   xmlHttp1.onreadystatechange=stateChanged1; 
   xmlHttp1.open("GET",url) ;  
   xmlHttp1.send(null);  
   }  
   
   
  


 
 
