\n');
}
function getController() {
var player = null;
if (IE)
{
player = document.getElementById("controller");
}
else
{
player = document.getElementById("econtroller");
}
return player;
}
function executeJS(command, args) {
controller_DoFSCommand(command, args);
//alert("executeJS : command : " + command + " : args : " + args);
}
function econtroller_DoFSCommand(command, args)
{
//alert("econtroller_DoFSCommand : command : " + command + " : args : " + args);
controller_DoFSCommand(command, args);
}
// Handle all the FSCommand messages in a Flash movie.
function controller_DoFSCommand(command, args) {
//var controllerObj = isInternetExplorer ? document.all.controller : document.controller;
//alert("controller_DoFSCommand : command : " + command + " : args : " + args);
if (command == "glossary") {
var url = "ase_a3_v1/glossary/glossary.htm"
openWindow(url);
} else if (command == "resources") {
var url = "ase_a3_v1/resources/resources.htm"
openWindow(url);
} else if (command == "feedback") {
var url = "ase_a3_v1/feedback/feedback.htm"
openWindow(url);
} else if (command == "help") {
var url = "ase_a3_v1/help/help.htm"
openWindow(url);
} else if (command == "quicktour") {
var url = "ase_a3_v1/help/help.htm"
openWindow1(url);
}else if (command == "launchPDF") {
//var url = "ase_a3_v1/help/help.htm"
openWindow(args);
}else if (command == "tasklist") {
var url = "ase_a3_v1/resources/A3TaskList.pdf"
openWindow(url);
}else if (command == "exitWindow") {
doQuit();
} else if (command == "mailExpert") {
// do whatever mail action you want to do
} else if (command == "mailTech") {
// do whatever mail action you want to do
} else if (command == "setCompletion") {
setCompletion();
} else if (command == "qScore") {
setScore(args);
}
}
function setScore(score) {
var taskScores = score.split("|");
var numOfObjectives = LMSGetValue("cmi.objectives._count");
var totalCorrect = 0;
var totalQuestions = 0;
var arrlen = taskScores.length - 1;
for(i=0;i