function changeshout()
{
runPHP('shoutbox/openclose.php')

if (shoutopen == true)
{
shoutopen=false;
document.getElementById('openshoutdiv').style.display='none';
document.getElementById('closedshoutdiv').style.display='block';
}
else
{
shoutopen=true;
document.getElementById('openshoutdiv').style.display='block';
document.getElementById('closedshoutdiv').style.display='none';
}
}


var xmlhttp = null;
if (window.XMLHttpRequest) {
  // If IE7, Mozilla, Safari, and so on: Use native object
  xmlhttp = new XMLHttpRequest();
}
else
{
  if (window.ActiveXObject) {
     // ...otherwise, use the ActiveX control for IE5.x and IE6
     xmlhttp = new ActiveXObject('MSXML2.XMLHTTP.3.0');
  }
}


function runPHP(fragment_url) 
{
xmlhttp.open("GET", fragment_url);
xmlhttp.onreadystatechange = function() {if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {phpinprogress = 0}}
xmlhttp.send(null);
}


function PHPtoelement(fragment_url, element_id) 
{var element = document.getElementById(element_id);
element.innerHTML = "Loading...";
xmlhttp.open("GET", fragment_url);
xmlhttp.onreadystatechange = function() {if (xmlhttp.readyState == 4 && xmlhttp.status == 200){element.innerHTML = xmlhttp.responseText;}}
xmlhttp.send(null);}

function newchangeshout()
{
runPHP('shoutbox/openclose.php')

if (shoutopen == true)
{
shoutopen=false;
document.getElementById('openshoutdiv').style.display='none';
document.getElementById('closedshoutdiv').style.display='block';
}
else
{
shoutopen=true;
document.getElementById('openshoutdiv').style.display='block';
document.getElementById('closedshoutdiv').style.display='none';
}
}


var xmlhttp = null;
if (window.XMLHttpRequest) {
  // If IE7, Mozilla, Safari, and so on: Use native object
  xmlhttp = new XMLHttpRequest();
}
else
{
  if (window.ActiveXObject) {
     // ...otherwise, use the ActiveX control for IE5.x and IE6
     xmlhttp = new ActiveXObject('MSXML2.XMLHTTP.3.0');
  }
}
