/**
 *	POPUP
 *
 *  This function generates a new popup window.  The parameters of
 *  the window have been hard coded to suit the Fenestration Roadmap.
 */
function popuponclick ()
{
	window.name = "main";

	roadmap_window = window.open ("http://www.fsec.ucf.edu/en/consumer/buildings/images/Fen_roadmap.htm", "roadmap_window", "status = no, scrollbars = yes, width = 600, height = 700")
}
function AddUnLoadEvent( func )
{	
	// Save the original load function.
	var OrigFuncOnUnLoad = window.onunload;
	
	// If the event handler is NOT function
	if(typeof window.onunload != 'function')
	{
		// attach the new function passed in.
		window.onunload = func;
	}
	else
	{
		// Otherwise setup a new function 
		// and put the original function back.
		window.onunload = function()
		{
			if(OrigFuncOnUnLoad)
			{
				OrigFuncOnUnLoad();
			}
		}
	}
}

AddUnLoadEvent( function () { if (roadmap_window && roadmap_window.open && !roadmap_window.closed) roadmap_window.close();
						  })

