function getRandomBanner()
{
	return Math.floor(Math.random() * 10) + 1;
}
	
function popUp(page, name, w, h, scroll) 
{	
	// need to round the value, Safari doesn't like non-integer value
	popLeft = Math.floor((screen.availWidth - w)/2);
	popTop = Math.floor((screen.availHeight - h)/2);

	if (navigator.appName == 'Netscape') {
		popWindow = window.open(page,name,'width='+w+',height='+h+',resizable=no,menubar=no,status=no,scrollbars='+scroll+',toolbar=no,directories=no,location=no,screenX='+popLeft+',screenY='+popTop);
		popWindow.focus();
	}	
	
    	else if (navigator.appName == 'Microsoft Internet Explorer') {
		popWindow = window.open(page,name,'width='+w+',height='+h+',resizable=no,menubar=no,status=no,scrollbars='+scroll+',toolbar=no,directories=no,location=no,top='+popTop+',left='+popLeft);
		popWindow.focus();
	}
 	
	else {
		popWindow = window.open(page,name,'width='+w+',height='+h+',resizable=no,menubar=no,status=no,scrollbars='+scroll+',toolbar=no,directories=no,location=no,top='+popTop+',left='+popLeft);
		popWindow.focus();
	}
 }
 
function openWindow(theURL,winName,features) 
{
   window.open(theURL,winName,features);
}
