// JavaScript Document

var jsworking = false;
var fsworking = false;
var retrys = 0;

self.onerror = catchErr;

function catchErr() {
        return true;
}

function jsverify() {
	jsworking = true;
	if(navigator.javaEnabled())
		window.document.FRM.JAVAENABLED.value = "1";
	else
		window.document.FRM.JAVAENABLED.value = "0";

	if(fsworking != false)
        {
		window.document.FRM.NOFS.value = "0";
        }
}

function startTimer() {
	document.testmov.SetVariable("/:dontCheck",1);
	window.setTimeout('startCheck()',100);
}

function startCheck() {
	self.document.FRM.reset();
	self.document.FRM.USERNAME.focus();
	window.setTimeout('checkverify()',100);
}

function checkverify() {
	if(jsworking == false)
	{
		retrys++;
		if(retrys > 20)
			browserProblem();

		window.setTimeout('checkverify()',250);
	}

}

function browserProblem() {
	alert("There is a problem with JavaScript or Flash.");
}


<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function testmov_DoFSCommand(command, args) {
  var testmovObj = InternetExplorer ? testmov : document.testmov;

if (command == "isworking") {
                if(InternetExplorer)
	                window.document.testmov.stop();
		fsworking = true;
   		window.document.FRM.USERNAME.focus();
                jsverify();
	  	}

}
// Hook for Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<S' + 'CRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub testmov_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call testmov_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}
//-->
