var updateVer = '1,0,0,6901'; var id = 'PapyrusAFValid'; var codeBase = '../control/Papyrus-AFValid.exe#Version=' + updateVer; var classId = 'CLSID:36D4F573-6F56-475f-B98E-62ECA36276B6'; var appType = 'application/vnd.afvalid.epapyrus.pdf'; var eformWidth = '100%'; var eformHeight = '100%'; function epapyrus_control(){ var browserCheck = getNavigatorInfoStr(); if (browserCheck == 1) { document.writeln(" "); } else if (browserCheck == 2) { epapyrus_plugin_ctrl(); } else { alert("Can not be supported browsers.\n Supported browsers : IE, Chrome, FireFox, Safari, Netscape "); } } function epapyrus_plugin_ctrl(){ var pluginVer = getPluginVersion(); updateVer = updateVer.replace(/\,/g, "."); //alert('Papyrus-Plugin' + '\n' + '버전체크 : '+pluginVer +'\n'+ '설치할 버전 : ' + updateVer); if (pluginVer < updateVer && pluginVer != '') { alert('Papyrus-AFValid' + '\n' + 'Updated version of the plugin.\nGo to the installation page.'); setupPluginsPage(); } else if (pluginVer == '') { alert('Papyrus-AFValid is not installed.' + '\n' + 'Go to the installation page.'); setupPluginsPage(); } else { //alert('Papyrus-Plugin이 설치 되었습니다.'); document.writeln(" "); } } function setupPluginsPage() { $(location).attr('href','/C90/C90A10/manualInstall_afvalid.html'); } function getPluginVersion() { var pluginChk = (navigator.mimeTypes[appType] != null); //alert('Papyrus-Plugin 체크 : '+pluginChk); if (pluginChk) { var plugin = navigator.mimeTypes[appType]; var version = plugin.enabledPlugin.description; return version; } else { return ''; } } function getNavigatorInfoStr() { if ($.browser.msie==true) { //alert("IE"); browserCheck = 1; } else { //alert("OTHER"); browserCheck = 2; } return browserCheck; }