function getWindowHeight()
{
	if(window.innerHeight) return window.innerHeight; // Mozilla, Opera, NN4
	if(document.documentElement && document.documentElement.clientHeight)
	{ // ?? IE
		return document.documentElement.clientHeight;
	}
	else if(document.body && document.body.clientHeight)
	{
		return document.body.clientHeight;
	}
	return 800;
}

function getHeightStyle(lessThenWindow)
{
	var height, heightStyle;
	height = getWindowHeight();
	height = height - lessThenWindow;
	if (navigator.userAgent.indexOf('Firefox') > -1 || navigator.userAgent.indexOf('Netscape') > -1 || navigator.userAgent.indexOf('Safari') > -1)
		heightStyle = 'min-height: ';
	else
		heightStyle = 'height: ';
	heightStyle += height + 'px; ';
	return heightStyle;
}

function goToPage(pageNo)
{
	if(pageNo)
	{
		var f = document.pagerForm;
		if(f)
		{
			f.action = '/params/page/'+ pageNo + '/default.aspx';
			f.submit();
/*			if(h)
			{
				h.value = pageNo;
				f.submit();
			}*/
		}
		
	}
}