
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;
		//alert("url" + url) ;
		oHTMLWin = window.open(url, name, winprops);
		oHTMLWin.window.focus();
	}
}

function openTIOSWindow()
{
	var url="/try-it-on-studio/process_tios.jsp?dest=/try-it-on-studio/process_tios.jsp&regloc=tios&popup=no";
	//centerWindow(url, "popupWnd", 780, 450, "yes", "no", "no");
	location.href=url;
}

function openTIOSWindowThruLogin()
{
	var url="/try-it-on-studio/process_tios.jsp?dest=/try-it-on-studio/process_tios.jsp&regloc=tios&popup=yes";
	//centerWindow(url, "popupWnd", 780, 450, "yes", "no", "no");
	location.href=url;
}

