} else { // If there was no cookie of that name, return false.
return false;
}
}
} // WM_readCookie
function WM_killCookie(name, path, domain) {
var theValue = WM_readCookie(name); // We need the value to kill the cookie
if(theValue) {
document.cookie = name + '=' + theValue + '; expires=Fri, 13-Apr-1970 00:00:00 GMT' + ((path)?';path=' + path:'') + ((domain)?';domain=' + domain:''); // set an already-expired cookie
}
} // WM_killCookie
// -->
</script>
<SCRIPT LANGUAGE="JavaScript">
//Due to an error in Netscape's handling of the "swLiveConnect" feature, the "window.open()" function does not function correctly when called via a Flash FS Command.
//To refresh the showtext window, there is a frameset containing two frames.
//
// The main frame contains the training interface.
//
// The "bounce" frame is one pixel tall and contains no images.
// This frame loads "bounce.htm" which, on loading, checks the showtext cookie for "on" status.
// If the cookie is "on", bounce.htm will open a 'showtext' window with the page indicated by the "showtextpage" cookie.
//
//Summary:
//To open the showtext window, Flash sends a "showtext" FS Command to set the cookies, then Flash reloads the "bounce.htm" file which interprets the cookies.
<!--
function testmovie_DoFSCommand(command, args)
{
if (command == "showtext") {
if (args == "close") {
WM_setCookie('ioshowtext_001','off');
} else {
WM_setCookie('ioshowtext_001','on');
WM_setCookie('ioshowtextpage_001',args);
}
}
if (command == "refreshtext") {
if ( WM_readCookie('ioshowtext_001') == 'on' ) {
WM_setCookie('ioshowtextpage_001',args);
}
}
}
function openWin( windowURL, windowName, windowFeatures ) {