var XMLHTTP_SUCCEED_CODE = 200;
var XMLHTTP_READY = 4;
function openDiv(divName) {
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) {
		calculateLeft = ((document.body.clientWidth/2) - 270);
		calculateTop = (((document.body.clientHeight/2) - 317)-128);
	} else {
		calculateLeft = ((window.innerWidth/2) - 270);
		calculateTop = ((window.innerHeight/2) - 317);
	}
	var oDiv = document.getElementById(divName);
	oDiv.style.visibility = 'visible';
	oDiv.style.width = '635px';
	oDiv.style.height = '540px';
	oDiv.style.position = 'absolute';
	oDiv.style.top = calculateTop+"px";
	oDiv.style.left = calculateLeft+"px";
		
}
function closeDiv(divId) {
	var oDiv = document.getElementById(divId);
	oDiv.style.visibility = 'hidden';
	oDiv.style.width = '0px';
	oDiv.style.height = '0px';	
}
function setImgSrc (image, source) {
	var image = document.getElementById(image);
	var path = siteBase+"modules/basic/IMG/menu/";
	image.src = path+source;
}
function setSideHeight () {
	var mainHeight = document.getElementById('content_main').offsetHeight;
	var theDiv = document.getElementById('content_sidebar');
	theDiv.style.height = mainHeight+"px";
}
