function ajaxLoader(url, id)
{
 	if (document.getElementById)
	{
		var x = (window.ActiveXObject) ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest();
	}
	if (x)
	{
		x.onreadystatechange = function()
		{
			if (x.readyState == 4 && x.status == 200)
			{
				el = document.getElementById(id);
				el.innerHTML = x.responseText;
	  		}
		};
		x.open('GET', url, true);
		x.send(null);
	}
}

function returnObjById(id)
{
    if (document.getElementById)
        var returnVar = document.getElementById(id);
    else if (document.all)
        var returnVar = document.all[id];
    else if (document.layers)
        var returnVar = document.layers[id];
    return returnVar;
}

function setResizedDims()
{
	var w = 600;
	var h = 400;
	if(typeof(window.innerWidth) == 'number')
	{//Non-IE
		w = window.innerWidth;
		h = window.innerHeight;
	}
	else if(document.documentElement && 
			(document.documentElement.clientWidth || document.documentElement.clientHeight))
	{//IE 6+ in 'standards compliant mode'
		w = document.documentElement.clientWidth;
		h = document.documentElement.clientHeight;
	}
	else if(document.body && (document.body.clientWidth || document.body.clientHeight))
	{//IE 4 compatible
		w = document.body.clientWidth;
		h = document.body.clientHeight;
	}
	if(w < 800) w = 800;
	if(h < 600) h = 600;
	h -= 20;
	var content = returnObjById('content');
	content.style.width = (w-280) + 'px';
	window.scroll(0,0);
}