feba.js.common={displayWarning:"Y",focus:function(e){var t=document.getElementById(e);if(t)try{t.focus()}catch(n){}},checkJS:function(e){document.getElementById(e).value="Y"},selectAll:function(e,t,n,o){var l=(document.getElementById(t),o);n--;for(var a=0;l>a&&null!=document.getElementById(e+"["+n+"]");a++)document.getElementById(e).checked?document.getElementById(e+"["+n+"]").checked=!0:document.getElementById(e+"["+n+"]").checked=!1,n++},checkSelectAll:function(e,t,n,o){var l=n;o--;var a=!0;if(t--,document.getElementById(e+"["+t+"]").checked){for(var d=o;l>d&&null!=document.getElementById(e+"["+d+"]");d++)if(!document.getElementById(e+"["+d+"]").checked){a=!1;break}}else document.getElementById(e).checked=!1,a=!1;a?document.getElementById(e).checked=!0:document.getElementById(e).checked=!1},checkGrouplets:function(){0===feba.js.ajax.groupletCounter&&"Y"===feba.js.common.displayWarning&&LIB.__HANDLE_ERROR__(null,'",null,null,"true",!1,null)},blockOnHyperlinkClicks:function(e){Constants.YES===CONFIG.blockOnHyperLinkClicksRequired&&feba.domManipulator.getElement('a[data-dontBlockUI!="true"]').click(function(){var t=feba.domManipulator.getAttribute(this,Constants.HREF),n=feba.domManipulator.getAttribute(this,Constants.TARGET);if(isPageRefreshLink(t)&&-1==n.indexOf("new")){var o=feba.domManipulator.getAttribute(this,Constants.DOWNLOAD_LINK);feba.domManipulator.getElement("body");o===Constants.TRUE?feba.domManipulator.blockUI({message:feba.domManipulator.getElementById(e),baseZ:9999,allowBodyStretch:!1,timeout:5e3}):feba.domManipulator.blockUI({message:feba.domManipulator.getElementById(e),allowBodyStretch:!1,baseZ:9999})}})},blockOnButtonClicks:function(e){Constants.YES===CONFIG.blockOnButtonClicksRequired&&feba.domManipulator.getElement(':submit[data-dontBlockUI!="true"]').click(function(){var t=feba.domManipulator.getAttribute(this,Constants.DOWNLOAD_BUTTON);t===Constants.TRUE?feba.domManipulator.blockUI({message:feba.domManipulator.getElementById(e),baseZ:9999,allowBodyStretch:!1,timeout:5e3}):feba.domManipulator.blockUI({message:feba.domManipulator.getElementById(e),allowBodyStretch:!1,baseZ:9999})})},runPageCustomFunction:function(e){"function"==typeof feba.js.custom[e]&&feba.js.custom[e]()},clear:function(e,t,n){var o=n.split(";"),l=o.length;for(i=0;io;o++)if(e[o]==t)return!0;return!1},submitProduct:function(e,t,n){var o=document.getElementById(e).value;document.getElementById(n+".SCHEME_CODE").value=t,document.getElementById(n+".PRODUCT_CRN").value=o},submitProductOverDraft:function(e,t){document.getElementById(t+".SCHEME_CODE").value=e},submitPackage:function(e,t,n){var o=document.getElementById(e).value;document.getElementById(n+".PACKAGE_CODE").value=t,document.getElementById(n+".PRODUCT_CRN").value=o},submitForSimulation:function(e,t,n){var o=document.getElementById(e).value;document.getElementById(n+".SCHEME_CODE").value=t,document.getElementById(n+".SIMULATION_CRN").value=o},hideseekthree:function(e,t,n,o,l){var a=document.getElementById(e).style.display;"block"==a?(document.getElementById(e).style.display="none",document.getElementById(t).src=n+"/plus.gif",document.getElementById(t).alt=o):(document.getElementById(e).style.display="",document.getElementById(t).src=n+"/minus.gif",document.getElementById(t).alt=l);for(var d=0;10>=d;d++)e=="id"+d?(document.getElementById("id"+d).style.display="",document.getElementById("img"+d).src=n+"/minus.gif",document.getElementById("img"+d).alt=l):e!="id"+d&&(document.getElementById("id"+d).style.display="none",document.getElementById("img"+d).src=n+"/plus.gif",document.getElementById("img"+d).alt=o)}};