closeWindow

function closeWindow(){
if(navigator.appName==”Microsoft Internet Explorer” || isIE11()) {
if (parent.window.external.Document==null) {
// IE with no wrapper application
// VBBrowse looks for the status ExitProgram to execute
// Timeout is presented to give vbbrowse time to close
parent.window.status = “ExitProgram”;
parent.window.status = “”;
setTimeout(‘parent.window.close()’, 2000);
} else {
// IE with Netkey wrapper
parent.window.external.Document.CurrentScreen = parent.window.external.Document.Screens(‘Attract Loop Start Screen’);
}
} else {
var win=window.open(“,’_self’,”);
win.close();
}
}

function isIE11(){
return /trident/7/.test(navigator.appVersion.toLowerCase());
}