var xmlHttp

function compareFour(sselect)
{ 
//	alert(str)
var id = sselect.item(sselect.selectedIndex).value;
//document.getElementById("showimage").style.display='block';
xmlHttp=GetXmlHttpObjectfour();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="./show-spec-four.asp";
url=url+"?q="+id;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChangedViewfour;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChangedViewfour() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("spec_four").innerHTML=xmlHttp.responseText;
}
}

function GetXmlHttpObjectfour()
{
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 hideDetail()
{
document.getElementById("spec_four").style.display='none';
}
