function newWindow(newURL,innerWidth,innerHeight) 
{
	appWindow = window.open(newURL, 'appwin', 'menubar=no,toolbar=no,location=no,resizable=yes,scrollbars=yes,left=10,top=10,width=' + innerWidth + ',height=' + innerHeight);
}

function newWindow_noscroll(newURL,innerWidth,innerHeight) 
{
	appWindow = window.open(newURL, 'appwin', 'menubar=no,toolbar=no,location=no,resizable=no,scrollbars=no,left=200,top=100,width=' + innerWidth + ',height=' + innerHeight);
}

function newWindowB(newURL,innerWidth,innerHeight) 
{
	appWindow = window.open(newURL, 'appwinB', 'menubar=no,toolbar=no,location=no,resizable=yes,scrollbars=yes,left=100,top=100,width=' + innerWidth + ',height=' + innerHeight);
	appWindow.focus();
}

function newWindowCenter(newURL,innerWidth,innerHeight,winName) 
{
	var newWinName = "appwin"
	if (winName)
		newWinName = winName ;
	var top = (screen.height-innerHeight)/2;
	var left = (screen.width-innerWidth)/2;
	appWindow = window.open(newURL, newWinName, 'menubar=no,toolbar=no,location=no,resizable=yes,scrollbars=yes,left='+left+',top='+top+',width=' + innerWidth + ',height=' + innerHeight);
	if(newWinName=="_blank")
		window.close();
}

function getLeaveSite(newURL) { 
    if (newURL != "" && newURL != "-") {
    	if (confirm('Thank you for visiting acdelcotechconnect.com.\n\nYou are about to exit the acdelcotechconnect.com website. You will be directed to independent sites that are responsible for collecting and maintaining their own data. ACDelco TechConnect and its advertising agencies are not responsible for the content of those sites. ')) {
        	var appWindow = window.open(newURL, "appWin", "menubar=yes, toolbar=yes,"
        	+ "location=yes,resizable=yes,scrollbars=yes,left=0,top=0");
        }
    }
}