oHTMLWin = null;

function centerWindow(url, name, w, h, scroll, menu, resizable)
{
	if (window.screen)
	{
		var chasm = screen.availWidth;
		var mount = screen.availHeight;
		
		winprops = 'width=' + w + ',height=' + h + ',left=' + ((chasm - w - 10) * .5) + ',top=' + ((mount - h - 30) * .5) + ',scrollbars=' + scroll + ',menubar=' + menu + ',resizable=' + resizable;
		
		oHTMLWin = window.open(url, name, winprops);
		oHTMLWin.window.focus();
	}
}


function popup(page) 
{
	centerWindow(page, "popup911", 500, 449, "no", "no", "no");
}


function opennpca()
{
	var url="/popups/npca.jsp";
	centerWindow(url, "popupnpca", 500, 503, "no", "no", "no");
}

function specials()
{
	var url="/popups/cseoffer.jsp";
	centerWindow(url, "spcls", 350, 331, "no", "no", "no");
}

function coppaerror()
{
	var url="/popups/CoppaError.html";
	centerWindow(url, "coppa", 300, 200, "no", "no", "no");
}

function Under18error()
{
	var url="/popups/Under18Error.html";
	centerWindow(url, "coppa", 300, 200, "no", "no", "no");
}

function shadechart()
{
	var url="/brand/niceneasy/chart/shade.jsp";
	centerWindow(url, "shadechart", 617, 600, "yes", "yes", "yes");
}

function openWnd(url, width, height, scroll, menu, resizeable){
	centerWindow(url, "popupWnd", width, height, scroll, menu, resizeable);
}

function openTIOSWnd()
{
	var url="/check_and_jump_tios.jsp?dest=check_and_jump_tios.jsp&regloc=tios";
	centerWindow(url, "popupWnd", 780, 450, "yes", "no", "no");
}
