// Make New Popup Window

var newWindow = null
function makeNewWindow() {
	// check if window already exists
	// if (!newWindow || newWindow.closed) {
		if (newWindow) {
		newWindow.close();
		newWindow = null;
		}
		newWindow = window.open("","","width=510,height=503");
		// pause briefly to let IE3 window finish opening
		setTimeout("fillWindow()",100);
	 // } else {
	// window already exists, so bring it forward
	// fillWindow();
	newWindow.focus();
	// }
}
// assemble new content and write to subwindow
function fillWindow() {
	var newContent = "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"><meta http-equiv=\"imagetoolbar\" content=\"no\" /><title>All Suburbs Catering - Free Footy Tickets</title></head><body style=\"margin:0;padding:0;\"><div> <img src=\"i/events/freefooty.gif\" /></div></body></html>";

	// write HTML to new window document
	newWindow.document.write(newContent)
	newWindow.document.close()
}
