// security fix for ie
objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
    objects[i].outerHTML = objects[i].outerHTML;
}

// window pop functions
function Start(URL, WIDTH, HEIGHT) {
var winl = (screen.width - WIDTH) / 2;
var wint = (screen.height - HEIGHT) / 2;
windowprops = "left="+winl+",top="+wint+",width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
}

function doPopup() {
url = "tourSignUp.cfm";
width = 380;  // width of window in pixels
height = 400; // height of window in pixels
Start(url, width, height);
}

function windowOpener(openThisFile ,windowName, theWidth, theHeight){   
	newwindow=window.open(openThisFile,windowName,'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width='+theWidth+',height='+theHeight+'');
    x = (screen.width - width) / 2;
    y = (screen.height - height) / 2;
    newWindow.moveTo(x, y);
    newWindow.focus();
}
