	function m2_ConfirmGrade(strURL)
	{
		var blnChange
		
		blnChange = window.confirm('Are you sure you want to grade this exam?  This will end your exam. Click OK to grade and end your exam or Cancel to abort.');
		
		//window.alert(blnDelete);
		if (blnChange == true)
		{
			window.location = strURL;
		}
	}
	
	function m2_ConfirmChange(strURL)
	{
		var blnChange
		
		blnChange = window.confirm('Are you sure you want to change this item?  Click OK to change or Cancel to abort.');
		
		//window.alert(blnDelete);
		if (blnChange == true)
		{
			window.location = strURL;
		}
	}
	
	function m2_ConfirmDelete(strURL)
	{
		var blnDelete
		
		blnDelete = window.confirm('Are you sure you want to delete this item?  Click OK to delete or Cancel to abort.');
		
		//window.alert(blnDelete);
		if (blnDelete == true)
		{
			window.location = strURL;
		}
	}
	
		function m2_Popup(strURL,intWidth,intHeight)
		{
			var intTop
			var intLeft
			
			intTop = Math.round((window.screen.availHeight - intHeight) / 2);
			intLeft = Math.round((window.screen.availWidth - intWidth) / 2);
			
			DispWin = window.open(strURL,'','titlebar=no,toolbar=no,status=no,menubar=no,top=' + intTop +',left=' + intLeft +',width=' + intWidth + ',height=' + intHeight);
		}

		function m2_PopupScroll(strURL,intWidth,intHeight)
		{
			var intTop
			var intLeft
			
			intTop = Math.round((window.screen.availHeight - intHeight) / 2);
			intLeft = Math.round((window.screen.availWidth - intWidth) / 2);

			DispWin = window.open(strURL,'','titlebar=no,toolbar=no,status=no,menubar=no,scrollbars=yes,top=' + intTop +',left=' + intLeft +',width=' + intWidth + ',height=' + intHeight);
		}

		function m2_NewWindow(strURL,intWidth,intHeight,intTop,intLeft)
		{
			DispWin = window.open(strURL,'','titlebar=no,toolbar=no,status=no,menubar=no,top=' + intTop +',left=' + intLeft +',width=' + intWidth + ',height=' + intHeight);
		}

		function m2_NewWindowScroll(strURL,intWidth,intHeight,intTop,intLeft)
		{
			DispWin = window.open(strURL,'','titlebar=no,toolbar=no,status=no,menubar=no,scrollbars=yes,top=' + intTop +',left=' + intLeft +',width=' + intWidth + ',height=' + intHeight);
		}

		function m2_SetWinPos(intWidth,intHeight,intTop,intLeft)
		{
			self.resizeTo(intWidth,intHeight);
			self.moveTo(intTop,intLeft);
		}

		function m2_Help(lngID)
		{
			var strURL
			
			strURL = 'M2IN_help.asp?id=' + lngID
			m2_PopupScroll(strURL,400,300)
		}


