var xmlHttp;
var idd;

function showResultJIT(idnum)
{
idd=idnum;
xmlHttp=GetXmlHttpObjectJIT()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return;
 } 

var url="phpscripts/newjitterpost.php";
url=url+"?q="+idnum
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChangedJIT ;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
} 

function stateChangedJIT() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 

 document.getElementById('jentry').innerHTML="<td colspan='2' style=\"color:white\">"+idd+"</td>";
  
  if (document.getElementById('jitterid').value!=""){document.getElementById('smalljit').src="http://www.hockeywidgets.com/hockeyfan/mini/"+document.getElementById('jitterid').value+".png";}
  
  document.getElementById('jdate').innerHTML=xmlHttp.responseText;
  
 document.getElementById('textjitter').value="";
 
 } 
}
function GetXmlHttpObjectJIT()
{
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;
}