function setPageSize(){
var pintHeight;
if (self.innerHeight) // all except Explorer
{
	pintHeight=(self.innerHeight-40);
	document.getElementById('main').style.height=pintHeight;
}
else if (document.documentElement && document.documentElement.clientHeight)	// Explorer 6 Strict Mode
{
	pintHeight=(document.documentElement.clientHeight-40);
	document.getElementById('main').style.height=pintHeight;
}
else if (document.body) // other Explorers
{
	pintHeight=(document.body.clientHeight-40);
	document.getElementById('main').style.height=pintHeight;
}
}

function openNews(pstrNewsItemId) {
var pstrURL, pinttop, pintleft;

pstrURL="pay_news.jsp?NewsItemId="+pstrNewsItemId;

pinttop = (screen.availHeight/2-225);
pintleft = (screen.availWidth/2-300);
if (navigator.appName == 'Microsoft Internet Explorer') 
	{window.open(pstrURL,"News", "directories=no, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no, height=450, width=600,top="+pinttop+",left="+pintleft);}
else
	{newswindow=window.open(pstrURL,'News','resizable,scrollbars,height=450,width=600');}
}

function login() {
	comsOpenPopupSize(PPSLoginURL, 'Login', 370, 300, 'no', 'no');
}