function fnRemoveMask()
{
	var tipobj=document.getElementById("popup_container");
	document.getElementById("maskdiv").style.display = "none";
	tipobj.style.visibility="hidden";
}
function ShowProgress()
{
	var fdiv='progress';
	var fwidth='310';
	var fheight='160';
	var fTop='240';
	var progres_str="<div class=\"mm h100 progress\"><p class=\"hS5\">&nbsp;</p><div><br/><strong><img src=\"../images/admin/loader1.gif\"></strong></div></div>";
	
	var scr_width=screen.width;
	var scr_height=screen.height;
	var thewidth=fwidth;

	//var topPos=fTop;
	//var leftPos=(scr_width-thewidth)/2;

	//if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			winwidth = window.innerWidth;
			winheight = window.innerHeight;
		}
		if (navigator.appName.indexOf("Microsoft")!=-1) {
			//winwidth = document.body.offsetWidth;
			//winheight = document.body.offsetHeight;
			winwidth	=	document.documentElement.clientWidth;
			winheight	=	document.documentElement.clientHeight
		}
	//}

	var topPos=	parseInt(winheight / 2) -50;
	var leftPos=parseInt(winwidth / 2)  - 150; 

	var tipobj=document.getElementById("popup_container");
	if (typeof thewidth!="undefined") 
		tipobj.style.width=thewidth + "px";
	
	tipobj.innerHTML=progres_str;
	
	if(leftPos >=0 && topPos >=0)
	{
		tipobj.style.left=leftPos+"px";
		tipobj.style.top=topPos + "px";
	}
	
	var popupHeight = document.getElementById('popup_container').offsetHeight; 
	var maskHeight = document.getElementById('MainPage').offsetHeight;
	
	if(popupHeight < maskHeight)
	{
	  document.getElementById("maskdiv").style.height = maskHeight + 'px';
	}
	else
	{
	  document.getElementById("maskdiv").style.height = scr_height + 'px';
	}
	document.getElementById("maskdiv").style.width ="100%";
	document.getElementById("maskdiv").style.display = "block";
	tipobj.style.visibility="visible";
	setTimeout("fnRemoveMask()",5000);
}
