function getPage(pageName)
{
	ajax = new Ajax();
	
	ge('innerbody').innerHTML = 'Loading ...';
	
  	ajax.onDone = function (ajaxObj, response) { requestPage(response); };
	ajax.onFail = function () { alert("asdad"); };
	params = '';
	ajax.post(pageName, params);
}
function requestPage(getResponse)
{
	ge('innerbody').innerHTML = getResponse;
}

function loadImg(img)
{
	window.open("Img.php?Img="+img, "Image","status=0,resizable=0,width=700,height=600");
}

function imgPage(getResponse)
{
	ge('innerImg').innerHTML = getResponse;
}
function closeImg()
{
	ge('imgArea').style.display = "none";
	ge('innerImg').innerHTML = "";
}
function getPageSizeWithScroll(){
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
		xWithScroll = window.innerWidth + window.scrollMaxX;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
		xWithScroll = document.body.scrollWidth;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
		xWithScroll = document.body.offsetWidth;
  	}
	arrayPageSizeWithScroll = new Array(xWithScroll,yWithScroll);
	//alert( 'The height is ' + yWithScroll + ' and the width is ' + xWithScroll );
	return arrayPageSizeWithScroll;
}