var xmlHttp

function hidetips()
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="setcookie.php?d=tipsdiv&s=0"

xmlHttp.onreadystatechange=lol
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function showtips()
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="setcookie.php?d=tipsdiv&s=1"

xmlHttp.onreadystatechange=lol
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function lol() {}

function toggletips() {
var gettipsdiv = document.getElementById('tipsdiv')

  if (gettipsdiv.style.display != 'block') {
  gettipsdiv.style.display = 'block'
  document.getElementById('tipsbutton').innerHTML = '<b>&times;</b>'
  showtips()
  } else {
  gettipsdiv.style.display = 'none'
  document.getElementById('tipsbutton').innerHTML = '<b>+</b>'
  hidetips()
  }
}

function GetXmlHttpObject()
{
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;
}