function openMessage(from, subject, timestamp, message)
{	
	text = "<html><title>Message</title><body><table width=280>" + 
		"<tr><td bgcolor='#f2f2f2'>From: </td><td bgcolor='#f2f2f2'>" + from + "</td></tr>" + 
		"<tr><td bgcolor='#f2f2f2'>Subject: </td><td bgcolor='#f2f2f2'>" + subject + "</td></tr>" + 
		"<tr><td bgcolor='#f2f2f2'>Sent: </td><td bgcolor='#f2f2f2'>" + timestamp + "</td></tr>" + 
		"<tr><td valign='top' bgcolor='#f2f2f2'>Message: </td><td bgcolor='#f2f2f2'>" + message + "</td></tr>" + 
		"</table></body></html>";
	w = window.open('','Message','toolbar=no, width=300, height=250');
	w.moveTo((screen.availwidth/2)-150, (screen.availheight/2)-100);
	w.document.write(text);
	w.focus();
}

function openNote(text)
{
	text = "<html><title>Notations</title><body><table width=280><tr><td>" + text + "</td></tr></table></body></html>"
	w = window.open('','Note','toolbar=no, width=300, height=200')
	w.moveTo((screen.availwidth/2)-150, (screen.availheight/2)-100);
	w.document.write(text)
	w.focus()
}
function notation(num)
{
	var note = "";
	switch (num)
	{
		case 1:
			note = "";
			note = "Returns all occurances of specified text within the body of the problem." +
				"\nPlease note that the text field takes precedence over the course homework group."
			break;
		case 2:
			note = "";
			note = "Returns all course homework problems within the specified level." + 
					"<BR><BR>Reviews categories, i.e. mid-term and final associations take precedence " + 
					"over level selection. "
			break;
		case 3:
			note = "";
			note = 'The pages served by this application have a timeout of approximately 15 minutes. ' + 
					'If the calculation of a word problem exceeds this period and your computer has remained ' + 
					'idle, you may be redirected to the default page. You will then be required to log in again.'
			break;
		case 99: 
			note = "";
			note = "<i>2003 - Software design by Brian Howe and Dr. William Wolfe." + 
					"<br><br>Mathematic content designed by Mike Misel.<br>" + 
					"<br>Property of CSUCI Math Department.<br>Dr. Ivona Grzegorczyk, Chair</i>";
	}
	openNote(note);
}