<!--
/* ### MSL_POPUP: ###
Creates popup window with simplified MSLearning header/footer.
3 required arguments: content URL, window width, window height
If an href and onClick attribute are used, the user will be redirected
EX:
	<link xlinkHref="popup.html" onClick="javascript: msl_popUp('popup.html', 650, 528); return false">Click for popup</link>
*/
function msl_popUp(URL, iWidth, iHeight)
{
	// day = new Date(); id = day.getTime();
	var id = "LearningPopup";
	var iWinT = (screen.height - iHeight) / 2;
	var iWinL = (screen.width - iWidth) / 2;
	eval("page" + id + "=window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,scrollbars=no,location=0,statusbar=1,status=yes,menubar=0,resizable=1,width=" + iWidth + ",height=" + iHeight + ",left=" + iWinL + ",top=" + iWinT + "');");
}


/* ### MSL_REDIRECTPARENT: ###
Redirects parent window from a popup window
If the boolean arg bStayOpen is included/true,
the popup window will be left open.  It closes by default.
EX:
	<input type="submit" value="Accept" onclick="msl_redirectParent('confirmed.html');" />
*/
function msl_redirectParent(sParentUrl, bStayOpen)
{
	window.opener.parent.location = sParentUrl;			
	if (!bStayOpen)
	{
		this.close();
	}
}

// End-->