



function getHTTPObject() {

var xhr = false;

  if(window.XMLHttpRequest) 
  {
     var xhr = new XMLHttpRequest();
  } else if(window.ActiveXObject) {
  try {
       var xhr = new ActiveXObject("Msxml2.XMLHTTP");
       } 
       catch(e) 
       {
        try {
               var xhr = new ActiveXObject("Microsoft.XMLHTTP");
             } catch(e) {
               xhr = false;
             }
       }
  }

return xhr;

}

var http = new Array();

function loaddetail($playerID)
{
http = getHTTPObject();
        
var curDateTime = new Date();
var $fullurl = "ajax.php?action=loaddetail&record=" + $playerID + "&date="+curDateTime;

http.open("GET", $fullurl, true);

http.onreadystatechange = function() 
{ 
    if (http.readyState == 4)
    { 
          el1 = document.getElementById("player_detail_content")
          el1.innerHTML = http.responseText; 
          
    } 
} 

http.send(null);
      	
}

function showdetail()
{
target = document.getElementById("night");
target.style.display = "block"; 
     	
}


function hidediv(divname)
{

target = document.getElementById(divname);
target.style.display = "none"; 

}

function fixedEl(id)
{
  if(document.all)
  {
    document.all[id].style.pixelTop = document.body.scrollTop;
  }
}

