function popWindow(winURL,winWidth,winHeight) {
winFeatures="'location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=1,resizable=1,dependent=1,width="+winWidth+",height="+winHeight+"'";
showWindow=window.open(winURL,"showWindow",winFeatures);
showWindow.focus();
}

function hintPop(winURL,winWidth,winHeight) {
winFeatures="'location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,resizable=1,dependent=1,width="+winWidth+",height="+winHeight+"'";
hintWindow= window.open(winURL,"hintWindow",winFeatures);
hintWindow.focus();
}

function goBack() {
history.back();
}

function goAway() {
window.close();
}

function popWindowAlt(winURL,winWidth,winHeight) {
winFeatures="'location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,resizable=1,dependent=1,width="+winWidth+",height="+winHeight+"'";
showWindow2=window.open(winURL,"showWindow2",winFeatures);
showWindow2.focus();
}

function popCardWindow(winURL,winWidth,winHeight) {
winFeatures="'location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=1,resizable=1,dependent=1,width="+winWidth+",height="+winHeight+"'";
cardWindow=window.open(winURL,"showWindow",winFeatures);
cardWindow.focus();
}

function popFuelWindow(winURL,winWidth,winHeight) {
winFeatures="'location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=1,resizable=1,dependent=1,width="+winWidth+",height="+winHeight+"'";
fuelWindow=window.open(winURL,"fuelWindow",winFeatures);
fuelWindow.focus();
}

function popCalcWindow(winURL,winWidth,winHeight) {
winFeatures="'location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,resizable=1,dependent=1,width="+winWidth+",height="+winHeight+"'";
calcWindow=window.open(winURL,"calcWindow",winFeatures);
calcWindow.focus();
}

function popMapWindow(winURL,winWidth,winHeight) {
winFeatures="'location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=1,resizable=1,dependent=1,width="+winWidth+",height="+winHeight+"'";
showWindow=window.open(winURL,"showWindow",winFeatures);
showWindow.focus();
}

function popD3fullWindow() {
winFeatures="'location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,resizable=1,dependent=1,width="+screen.width+",height="+screen.height+"'";
d3Window=window.open("d3_swf/index.html","d3Window",winFeatures);
d3Window.focus();
}

function popD3smallWindow() {
winFeatures="'location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,resizable=1,dependent=1,width=750,height=550'";
d3Window=window.open("d3_swf/index.html","d3Window",winFeatures);
d3Window.focus();
}

function popChartWindow(popURL) {
chartWindow=window.open(popURL,'chartWindow','dependent=yes,toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=775,height=600');
chartWindow.focus();
}

function popparksWindow(winURL) {
winFeatures="'location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,resizable=1,dependent=1,width=605,height=550'";
showparkWindow=window.open(winURL,"showparkWindow",winFeatures);
showparkWindow.focus();
}

function popairbagWindow(winURL,winWidth,winHeight) {
winFeatures="'screenX=400,screenY=200,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,resizable=1,dependent=1,width="+winWidth+",height="+winHeight+",left=400,top=200'";
showairbagWindow=window.open(winURL,"showairbagWindow",winFeatures);
showairbagWindow.focus();
}
function popPlantWindow(winURL,winWidth,winHeight) {
winFeatures="'screenX=100,screenY=200,location=1,directories=0,status=0,menubar=0,scrollbars=1,toolbar=1,resizable=1,dependent=1,width="+winWidth+",height="+winHeight+",left=100,top=100'";
showairbagWindow=window.open(winURL,"showairbagWindow",winFeatures);
showairbagWindow.focus();
}

function popSiteWindow() {
winFeatures="screenX=100,screenY=50,location=1,directories=0,status=0,menubar=1,scrollbars=1,toolbar=0,resizable=1,dependent=0,width=775,height=510,left=100,top=50";
siteWindow=window.open("home.html","siteWindow",winFeatures);
siteWindow.focus();
}

function changeOpener(winURL) {
window.opener.location.href= winURL;
window.opener.focus();
}

function popWindowName(winURL,winWidth,winHeight,winName)
{

winFeatures="location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=1,resizable=1,dependent=1,width="+winWidth+",height="+winHeight+"'";
var thiswin=window.open(winURL,winName,winFeatures);
thiswin.focus();
}

