window.onresize=reloader
function reloader() 
{
	var docHeight = document.body.clientHeight - 4;
	
	document.all.MainLayoutTable.height = (docHeight > 500) ? docHeight : 500;
	document.all.LeftSpacer1.height = (docHeight > 500) ? docHeight - 498 : 2;
	document.all.LeftSpacer2.height = (docHeight > 500) ? docHeight - 498 : 2;
	document.all.MainContent.height = (docHeight > 500) ? docHeight - 151 : 349;
}

function getDocumentWidth()
{
	return (document.body.scrollWidth > document.body.clientWidth) ? document.body.scrollWidth : document.body.clientWidth;
}

function getDocumentHeight()
{
	return (document.body.scrollHeight > document.body.clientHeight) ? document.body.scrollHeight : document.body.clientHeight;
}

function ValidateSearchForm()
{
	var returnValue = false;

	if (!document.all.query.value)
	{
		document.all.query.focus();
	}
	else
	{
		returnValue = true;
	}
		
	return returnValue;	
}
