function showdiameter(str)
{
document.getElementById("txtHint").style.display="block";

document.getElementById("txtHint1").style.display="none";
document.getElementById("txtHint").innerHTML="<img src='images/loading-transparent.gif'>";
document.getElementById("txtHint1").innerHTML="";

xmlHttp7=GetXmlHttpObject()
if (xmlHttp7==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
 
 //document.getElementById("colordiv").style.display="none";



var url7="getdiameter.php"
url7=url7+"?q="+str
url7=url7+"&sid="+Math.random()
xmlHttp7.onreadystatechange=stateChanged7 
xmlHttp7.open("GET",url7,true)
xmlHttp7.send(null)
}

function stateChanged7() 
{ 
if (xmlHttp7.readyState==4 || xmlHttp7.readyState=="complete")
 { 

document.getElementById("txtHint").innerHTML=xmlHttp7.responseText
 } 
}


function upd_diameter(str,str1)
{ 

document.getElementById("txtHint1").style.display="block";
document.getElementById("txtHint").innerHTML="<img src='images/loading-transparent.gif'>";
document.getElementById("txtHint").style.display="none";

xmlHttp10=GetXmlHttpObject()
if (xmlHttp10==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
 
// document.getElementById("varietydiv").style.display="none";

document.getElementById("txtHint").style.display="none";
 
var url10="updatediameter.php"
url10=url10+"?p="+str
url10=url10+"&p1="+str1
url10=url10+"&sid="+Math.random()
xmlHttp10.onreadystatechange=stateChanged10
xmlHttp10.open("GET",url10,true)
xmlHttp10.send(null)
}

function stateChanged10() 
{ 
if (xmlHttp10.readyState==4 || xmlHttp10.readyState=="complete")
 { 

 document.getElementById("txtHint1").innerHTML=xmlHttp10.responseText
 } 
}

function showdiameter_new(str)
{ 
//showVariety('red');
document.getElementById("txtHint1").innerHTML="";
document.getElementById("txtHint").innerHTML="<img src='images/loading-transparent.gif'>";
xmlHttp11=GetXmlHttpObject()
if (xmlHttp11==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
 
 //document.getElementById("colordiv").style.display="none";


 
var url11="getdiameter.php"
url11=url11+"?q="+str
url11=url11+"&sid="+Math.random()
xmlHttp11.onreadystatechange=stateChanged11
xmlHttp11.open("GET",url11,true)
xmlHttp11.send(null)
}

function stateChanged11() 
{ 
if (xmlHttp11.readyState==4 || xmlHttp11.readyState=="complete")
 { 

document.getElementById("txtHint").innerHTML=xmlHttp11.responseText
 } 
}





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;
}