/**
 * Navigate the start page to the given URL while optionialy closing ourself.
 * When the start page is this page, this page is navigated.
 * 
 * @param	aUrl:String						The URL to navigate through.
 * @param 	aCloseCurrentPopup:Boolean		Tell whether to close the current window or not.
 */
function kqNavigateStartPageToUrl(aUrl/*:String*/, aCloseCurrentPopup/*:Boolean*/)
{
	if ((window.kqParentWindow == null) && (window.opener != null))
		window.kqParentWindow = window.opener;

	if (window.kqParentWindow == null) {
		window.location = aUrl;
	} else {
		window.kqParentWindow.location = aUrl;
		window.close();
	}
}
