var isIE=1&&(window.ActiveXObject); var isFF=(/Firefox/.test(navigator.userAgent)); var activex = ((navigator.userAgent.indexOf('Win') != -1) && (navigator.userAgent.indexOf('MSIE') != -1) && (parseInt(navigator.appVersion) >= 4 )); function isiShowInstalled() { var oiShow = null; try { oiShow = new ActiveXObject("IEHelperForXC2.XCInstTest"); if( oiShow == null ) { return false; } oiShow = null; return true; }catch( E ) { return false; } } function oopsPopup() { //var windowName = "oops"; //var URLtoOpen = "/software/iShow_Setup.exe"; //oopswindow = window.open(URLtoOpen, windowName); MsgDialog.showLayer('alertDownload'); return false; } function iShowCheck() { if( !activex ) { return true; } if( isiShowInstalled() ) { return true; } return oopsPopup(); } function iShowCall(serviceID,callType) { return iShowCheck(); }