/*
 * content.js - implements JavaScript code to open new windows
 */
 
var popUpWindow = null;
 
function openNewExamWindow(url)
{
	popUpWindow=window.open( url, "newone", "width=620,height=420,toolbar=no,location=no,directories=yes,status=yes,menubar=no,scrollbars=yes,copyhistory=yes,resizable=no");
   	popUpWindow.focus();
}

function getSelectedExam()
{
	switch (document.selectexam.examlist.value)
	{
		case "c1": openNewExamWindow('dpjwkh/c1quiz.html'); break;
		case "c2": openNewExamWindow('dpjwkh/c2quiz.html'); break;
		case "c3": openNewExamWindow('dpjwkh/c3quiz.html'); break;
		case "c4": openNewExamWindow('dpjwkh/c4quiz.html'); break;
		case "c5": openNewExamWindow('dpjwkh/c5quiz.html'); break;
		case "c6": openNewExamWindow('dpjwkh/c6quiz.html'); break;
		case "c7": openNewExamWindow('dpjwkh/c7quiz.html'); break;
		case "c8": openNewExamWindow('dpjwkh/c8quiz.html'); break;
		case "c9": openNewExamWindow('dpjwkh/c9quiz.html'); break;
		case "c10": openNewExamWindow('dpjwkh/c10quiz.html'); break;
		case "c11": openNewExamWindow('dpjwkh/c11quiz.html'); break;
		case "c12": openNewExamWindow('dpjwkh/c12quiz.html'); break;
		default: alert("Exam Not Found.  Try another.");
	}
}