function getHTTPObject() {
if (typeof XMLHttpRequest != 'undefined') {
return new XMLHttpRequest();
}
try {
return new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
return new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
return false;
}





var http = getHTTPObject();

function handleHttpResponse() {

if (http.readyState == 4) {
var temp = http.responseText;
document.getElementById("threads").innerHTML=http.responseText;
}
}


function threads(user, forum){
document.getElementById("threads").innerHTML='<div style="width:100%; height:auto; text-align:center; padding-top:20px; padding-bottom:20px;"><img src="http://img.ngfiles.com/form-indicator.gif"></div>';
var url = "http://m00d.net/threads/threads.php?user="+user+"&forum="+forum;
http.open("GET", url, true);
http.onreadystatechange = handleHttpResponse;
http.send(null);
}



// list

function getHTTPObjectLIST() {
if (typeof XMLHttpRequest != 'undefined') {
return new XMLHttpRequest();
}
try {
return new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
return new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
return false;
}

var httpLIST = getHTTPObjectLIST();

function handleHttpResponseLIST() {

if (httpLIST.readyState == 4) {
var tempLIST = httpLIST.responseText;
document.getElementById("forum_list").innerHTML=httpLIST.responseText;
}
}


function forumlist(user){
document.getElementById("forum_list").innerHTML='<div style="width:100%; height:auto; text-align:center; padding-top:20px; padding-bottom:20px;"><img src="http://img.ngfiles.com/form-indicator.gif"></div>';
var urlLIST = "http://m00d.net/threads/forum_list.php?user="+user;
httpLIST.open("GET", urlLIST, true);
httpLIST.onreadystatechange = handleHttpResponseLIST;
httpLIST.send(null);
}


// emotes

function getHTTPObjectEMOTES() {
if (typeof XMLHttpRequest != 'undefined') {
return new XMLHttpRequest();
}
try {
return new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
return new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
return false;
}

var httpEMOTES = getHTTPObjectEMOTES();

function handleHttpResponseEMOTES() {

if (httpEMOTES.readyState == 4) {
var tempEMOTES = httpEMOTES.responseText;
document.getElementById("emotes").innerHTML=httpEMOTES.responseText;
}
}


function emotes(user){
document.getElementById("emotes").innerHTML='<div style="width:100%; height:auto; text-align:center; padding-top:20px; padding-bottom:20px;"><img src="http://img.ngfiles.com/form-indicator.gif"></div>';
var urlEMOTES = "http://m00d.net/threads/emotes.php?user="+user;
httpEMOTES.open("GET", urlEMOTES, true);
httpEMOTES.onreadystatechange = handleHttpResponseEMOTES;
httpEMOTES.send(null);
}