var waitingBlockUIFrameID = "__waitingB1lock12UIFrameID_12ADF"; var loadingBlockUFrameID = "__loading_b1lo12ck12UIFrame138411222"; function endWaitting() { try{ var waitingBlockUIFrame = document.getElementById(waitingBlockUIFrameID); waitingBlockUIFrame.style.display = "none"; var loadingBlockUIFrame = document.getElementById(loadingBlockUFrameID); loadingBlockUIFrame.style.display = "none"; } catch(e){} } function showWaitting(waitingBarWidth, waitingBarHeight, img, text, imgAlign, textAlign, bgColor, transLevel, fontSize, fontColor, fontFamily, fontWeight) { try { var bodyObj = document.getElementsByTagName("body")[0]; var waitingBlockUIFrame = document.getElementById(waitingBlockUIFrameID); if (waitingBlockUIFrame == null || waitingBlockUIFrame == undefined) { var waitingObj = window.document.createElement("iframe"); with (waitingObj) { id = waitingBlockUIFrameID; style.width = "100%"; style.height = "100%"; style.border = "0"; style.zIndex = 99999991; style.margin = 0; style.padding = 0; style.position = "absolute"; style.top = 0; style.left = 0; frameborder = 0; setAttribute("frameborder", "0", 0); allowtransparency = "yes"; src = "javascript:document.write('');"; } if (navigator.appName.indexOf("Explorer") > -1) { waitingObj.style.filter = "alpha(opacity=15)"; } else { waitingObj.style.opacity = "0.1"; } bodyObj.appendChild(waitingObj); } else { waitingBlockUIFrame.style.display = ""; } var loadingBlockUFrame = document.getElementById(loadingBlockUFrameID); if (loadingBlockUFrame == null || loadingBlockUFrame == undefined) { var loadingObj = window.document.createElement("iframe"); var showContent = ""; showContent += ""; showContent += "
"; if (text == undefined || text == null || text == "") { text = "Loading..."; } if (img == undefined || img == null || img == "") { img = ""; } if (imgAlign != null && imgAlign != undefined && imgAlign == "left") { showContent += " " + text; } else if (imgAlign == "right") { showContent += text + " "; } else { showContent += text; } showContent += "  
"; with (loadingObj) { id = loadingBlockUFrameID; style.width = waitingBarWidth; style.height = waitingBarHeight; style.border = "0"; style.zIndex = 99999992; style.margin = 0; style.padding = 0; style.position = "absolute"; style.top = 0; style.left = 0; frameborder = 0; setAttribute("frameborder", "0", 0); src = "javascript:document.write('" + showContent + "');"; } if (navigator.appName.indexOf("Explorer") > -1) { loadingObj.style.filter = "alpha(opacity=" + transLevel + ")"; } else { loadingObj.style.opacity = "0.8"; } loadingObj.style.left = bodyObj.clientWidth - waitingBarWidth; loadingObj.style.top = 0; bodyObj.appendChild(loadingObj); } else { loadingBlockUFrame.style.display = ""; } } catch (e) { } }