function Go(choice)
{
	document.location = choice;
}

function SiteSize()
{
	var baseheight = 500
	if (document.getElementById("links").offsetHeight > baseheight)
	{
		baseheight = document.getElementById("links").offsetHeight
	}
	if (document.getElementById("main").offsetHeight > baseheight)
	{
		baseheight = document.getElementById("main").offsetHeight
	}
	document.getElementById("links").style.height = baseheight + "px"
	document.getElementById("main").style.height = baseheight + "px"
	document.getElementById("container").style.visibility = "visible"
}

function Switch(choice)
{
	thisone = "cat" + choice
	thismark = "mark" + choice
	if (document.getElementById(thisone).style.height == "auto")
	{
		document.getElementById(thisone).style.height = "0px"
		document.getElementById(thismark).innerHTML = "+"
	}
	else
	{
		document.getElementById(thisone).style.height = "auto"
		document.getElementById(thismark).innerHTML = "-"
	}
}

function AJAX_FUNCTION(DOVAR)
{
  xmlHttp=GetXmlHttpObject()
  if (xmlHttp==null)
  {
    alert ("Browser does not support HTTP Request")
    return
  } 
  var url="PHP_PAGE.php?VAR=" + DOVAR + "&sid="+Math.random()
  xmlHttp.onreadystatechange=AJAXCALL
  xmlHttp.open("GET",url,true)
  xmlHttp.send(null)
}

function AJAXCALL() 
{ 
  if ((xmlHttp.readyState==4 || xmlHttp.readyState=="complete"))
  { 
    document.getElementById("AJAXDIV").innerHTML=xmlHttp.responseText
  }
}

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;
}