function banner_increaser(id,reloadRequired,newWindow)
{

	var pageToLoad="index.php?p=banner_increaser&t=inc&v="+id;
	if (reloadRequired)	
	{
		window.open(pageToLoad);
		setTimeout('timedOutReload()',2000);
	}
	else
	{
		if (newWindow){
		//	window.open(pageToLoad);			
		    if (id==1 || id==3)
		    {
				openWindow1(pageToLoad);
		    }
			else{
		   	openWindow(pageToLoad,"",200,200,true);
			}
		}
		else
			window.location.href=pageToLoad;
	}
}

function timedOutReload(){window.location.reload();}


function openWindow( pageToLoad, winName, width, height, center)
{
xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
xposition = (screen.width - width) / 2;
yposition = (screen.height - height) / 2;
}
args = "width=" + width + ","
+ "height=" + height + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=1,"
+ "scrollbars=1,"
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "0,0"
+ "screeny=" + yposition + "0,0"
+ "left=" + xposition + "0,0"
+ "top=" + yposition  + "0,0";

window.open( pageToLoad,winName,args );
} 


function openWindow1( pageToLoad)
{
scx=screen.width-150;
scy=screen.height-150;

args = "width=" + scx + ","
+ "height=" + scy + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=1,"
+ "scrollbars=1,"
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=0,0"
+ "screeny=0,0"
+ "left=0,0"
+ "top=0,0";

window.open( pageToLoad,"",args );
} 