function addProgress(){if($("AjaxPanelProgress")!=null){return false;}
var progressSpan=document.createElement("span");progressSpan.style.position="absolute";progressSpan.style.zIndex=1000;progressSpan.style.top=3;progressSpan.style.right=3;progressSpan.id="progress";progressSpan.innerHTML="<div style=\"background-color: #D33333; font-family: Tahoma; font-size: 8pt; padding:1px; color: #FFFFFF;\">&nbsp;Loading...&nbsp;</div>";document.body.appendChild(progressSpan);}
function removeProgress(){if($("progress")==null){return false;}
document.body.removeChild($("progress"));}
function addOpacity(transparent){if($("opacity")!=null){return false;}
var progressSpan=document.createElement("div");progressSpan.style.position="absolute";progressSpan.style.display="block";progressSpan.style.zIndex=9998;progressSpan.style.top=0;progressSpan.style.left=0;var windowHeight=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight;var windowWidth=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth;progressSpan.style.width=windowWidth+"px";progressSpan.style.height=windowHeight+"px";progressSpan.style.backgroundColor="#000000";if(transparent){progressSpan.style.opacity=0;progressSpan.style.filter="Alpha(opacity=1)";}else{progressSpan.style.opacity=0.40;progressSpan.style.filter="Alpha(opacity=40)";}
progressSpan.id="opacity";document.body.appendChild(progressSpan);document.body.style.overflow="hidden";}
function removeOpacity(){if($("opacity")==null){return false;}
document.body.removeChild($("opacity"));document.body.style.overflow="auto";}
