function show1(){
document.getElementById('item1').style.backgroundColor = '#645e50';
}

function theobject(){
if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
else if (window.XMLHttpRequest) return new XMLHttpRequest();
else {
alert("lol");
return null;
}
}

function setoutput(){
if(httpObject.readyState == 4){
document.getElementById('main').innerHTML = httpObject.responseText;
}       
}

function dostuff(thetab){
httpObject = theobject();
if (httpObject != null) {
httpObject.open("GET", "display.php?tab="+thetab, true);
httpObject.send(null);
httpObject.onreadystatechange = setoutput;
}
}

function showcomments(thetab,thepost){
httpObject = theobject();
if (httpObject != null) {
httpObject.open("GET", "display.php?tab="+thetab+"&thepost="+thepost, true);
httpObject.send(null);
httpObject.onreadystatechange = setoutput;
}
}

var httpObject = null;