window.onbeforeunload = exitConfirmation; // call exitConfirmation function

function exitConfirmation()
{
	if(confirmation == true)
	{
		var returnMSG = "";
		returnMSG += "    -----------------------------------------------------\n\n";
		returnMSG += "     YOU ARE ABOUT TO LEAVE THE VISUAL PLANNER!\n\n";
		returnMSG += "    -----------------------------------------------------";
		return returnMSG;
	}
}
