// document.write("
 Please // wait
Your Request is in // progress...
"); // document.write("
 
"); function showProgressbar(message) { /* Added statusbar div dynamically for progressbar -jessica starts - 1 */ var statusObj = document.getElementById('statusbar'); var statable = document.getElementById('statuBarTbl'); var statrow; var statcell; var showstatus = top.document.getElementById("showstatus").value; if (showstatus != 'undefined') { if (!statusObj) { statusObj = document.createElement('div'); statusObj.id = 'statusbar'; document.getElementsByTagName('body')[0].appendChild(statusObj); } if (!statable) { statable = document.createElement('table'); statable.id = 'statuBarTbl'; statrow = statable.insertRow(0); statcell = statrow.insertCell(0); statcell.id = 'imgtd'; statcell = statrow.insertCell(1); statcell.id = 'statuBarTd1'; statcell.setAttribute('align', 'left'); statcell.setAttribute('valign', 'middle'); statable.setAttribute('width', '200'); document.getElementById("statusbar").appendChild(statable); } document.getElementById("showstatus").value = "true"; } /* Added statusbar div dynamically for progressbar -jessica end - 1 */ if (!message) { if (document.getElementById('hidnLangIdReq') != null) { var langIdReq = document.getElementById('hidnLangIdReq').value; // Changed By riddhi for Progressbar message change as per // language:Start message = IFMS_PLEASEWAIT + '
' + IFMS_REQSTINPRGS+'
'+IFMS_RESENDSERVER+' ' +'
'+IFMS_NOTREFERESH+''; } /* * else { message='Please wait
Your Request is in progress...'; } */ // Changed By riddhi for Progressbar message change as per language:End disableBackground(); var statusBar = document.getElementById('statusbar'); var statusbarwidth = 360; var statusbarheight = 100; statusBar.style.visibility = 'visible'; statusBar.style.display = 'block'; statusBar.style.zIndex = '9999'; statusBar.style.width='500px'; statusBar.style.height='100px'; document.getElementById('statuBarTd1').innerHTML = message; // document.getElementById('statuBarTd2').innerHTML = 'Your Request is // in progress...'; statusBar.style.left = ((document.body.offsetWidth - statusbarwidth) / 2) + 'px'; var st = document.documentElement.scrollTop; var sh = document.documentElement.scrollHeight; var ch = document.documentElement.clientHeight; statusBar.style.top = (st + ((ch - statusbarheight) / 2)) + 'px'; } } function hideProgressbar() { /* Added if condition for progressbar -jessica starts - 2 */ var ary = document.getElementsByTagName('iframe'); if (ary != null && ary != 'undefined') { for ( var k = 0; k < ary.length; k++) { var stat = ary[k].contentWindow.document.readyState || ary[k].readyState; if (stat.trim() != "complete") { document.getElementById("showstatus").value = "true"; return; } } } /* Added if condition for progressbar -jessica end - 2 */ if (document.getElementById('statusbar') != null) { document.getElementById('statusbar').style.visibility = 'hidden'; document.getElementById("showstatus").value = ""; enableBackground(); try { resize_iframe(); } catch (Exception) { } } }