function show_details(element){
document.getElementById(element).style.width = "99%";
document.getElementById(element).style.height = "auto";
}
function div_show(element, todo){
if(todo == 1){
document.getElementById(element).style.display = "block";
} else if(todo == 2){
document.getElementById(element).style.display = "inline";
} else {
document.getElementById(element).style.display = "none";
}
}

function hide(Xwth){
document.getElementById(Xwth).style.display="none";
}
function Show_contents($Xurl, $Xid)
{
document.getElementById($Xid).style.display="block";
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4) {
		if (xmlHttp.status == 200) {
      document.getElementById($Xid).innerHTML = xmlHttp.responseText;
	  } else {
	  document.getElementById($Xid).innerHTML = "<div style='overflow:hidden;'>No Internet Connection</div>";
	  }
	  } else {
	  document.getElementById($Xid).innerHTML = "<div style='padding:5% 0; text-align:center; width:95%; font-size:80%; font-weight:bold; float:none; overflow:hidden; border-width:0px;'><img src='images/loader.gif' alt='Loading' /><br />Please Wait...</div>";
	  }

    }
  xmlHttp.open("GET",$Xurl,true);
  xmlHttp.send(null);
  }
