
var emailship="";
var emaillink="";
function getXMLHTTPRequest() {
try{
req = new XMLHttpRequest();
} catch(err1) {
try {
req=new ActiveXobject("Msxml2.XMLHTTP");
} catch (err2) {
try {
req=new ActiveXObject("Microsoft.XMLHTTP");
} catch (err3) {
req = false;
}
}
}
return req;
}

var http = getXMLHTTPRequest();

function useHttpResponse() {
	if (http.readyState==4) {
		if (http.status == 200) {
			var mytext = http.responseText;
			document.getElementById('showspaces').innerHTML=mytext;
		}
	} else {
		document.getElementById('showspaces').innerHTML="";
	}
}
// - End of JavaScript - -->


function showspaces(process){
var myurl = "showspaces.php";
myRand = parseInt(Math.random()*999999999999999);
var modurl = myurl+"?process="+process;
http.open("GET", modurl, true);
http.onreadystatechange = useHttpResponse;
http.send(null);
}

function showspaces2(team){
var myurl = "showspaces.php";
myRand = parseInt(Math.random()*999999999999999);
var modurl = myurl+"?team="+team;
http.open("GET", modurl, true);
http.onreadystatechange = useHttpResponse;
http.send(null);
}

function showblog(post){
var myurl = "showspaces.php";
myRand = parseInt(Math.random()*999999999999999);
var modurl = myurl+"?post="+post;
http.open("GET", modurl, true);
http.onreadystatechange = useHttpResponse;
http.send(null);
}

function showpost(cat, id){
var myurl = "showspaces.php";
myRand = parseInt(Math.random()*999999999999999);
var modurl = myurl+"?cat="+cat+"&id="+id;
http.open("GET", modurl, true);
http.onreadystatechange = useHttpResponse;
http.send(null);
}


function showarticle(post){
var myurl = "showspaces.php";
myRand = parseInt(Math.random()*999999999999999);
var modurl = myurl+"?post="+post;
http.open("GET", modurl, true);
http.onreadystatechange = useHttpResponse;
http.send(null);
}

