function newWindow(url) {
popupWindow = window.open(url,'popUpWindow','height=530,width=225,left=1000,top=40,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no, status=no');
	}
	// -->

function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}
var xmlHttp




function showLog(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var tt="log4"


var url="inc/getrest.php"
url=url+"?q="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged2
xmlHttp.open("GET",url,true)
xmlHttp.send(null)


function stateChanged2()
{


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

 document.getElementById(tt).innerHTML=xmlHttp.responseText 

 } 
}
}


function hideLog(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var tt="log4"


var url="inc/getrest2.php"
url=url+"?q="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged2
xmlHttp.open("GET",url,true)
xmlHttp.send(null)


function stateChanged2()
{


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

 document.getElementById(tt).innerHTML=xmlHttp.responseText 

 } 
}
}










function GetXmlHttpObject()
{
if(window.XMLHttpRequest) // client use Firefox, Opera etc - Non Microsoft product
{
try
{
var xmlHttp = new XMLHttpRequest();
}
catch(e)
{
var xmlHttp = false;
}
}
else if(window.ActiveXObject) // client use Internet Explorer
{
try
{
var xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
try
{
var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e)
{
var xmlHttp = false;
}
}
}
else
{
var xmlHttp = false;
}

<!--

/*
var xmlHttp=null;




try
 {
 // Firefox, Opera 8.0+, Safari
 var xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  var xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  var xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
 */
 
 //-->

return xmlHttp;
}





 
