
function hidebar() {
	var rightcol = document.getElementById('rightcol').style;
	var container = document.getElementById('maincontainer');
	var upperright = document.getElementById('upperrightcol').style;
	var midright = document.getElementById('midrightcol');
	
	var act = "show";
	if (rightcol.display == "none") {
		upperright.display = "none";
		rightcol.display = "block";
		container.className='maincontainer';
		midright.innerHTML = "<a href='javascript: hidebar();'>Hide Right Toolbar &raquo;</a>";
	} else {
		rightcol.display = "none";
		upperright.display = "block";
		container.className='fullmaincontainer';
		midright.innerHTML = "<a href='javascript: hidebar();'>&laquo; Show Right Toolbar</a>";
		act = "hide";
	}
	
	if (window.XMLHttpRequest) {
		req = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		req = new ActiveXObject("Microsoft.XMLHTTP");
	}
	if (req != undefined) {
		req.onreadystatechange = function() { catchXHR(); };
	
		req.open('POST', '/template/xhr/xhr_hide_rcol.php', true);
 		req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');

 		text = "rcol=" + act;
		req.send(text);
	}
}

function catchXHR() {
		
	
}
