function fnCallDiv(page)
{
	loaddiv();		
	document.getElementById("fid").style.display="";				
	document.getElementById('idiv').src=page;	
}
function loaddiv(){
	// loading div
	window.scrollTo(0,0);
	var loading_box = document.createElement('div');	
	loading_box.className = "map_loading";
	loading_box.id = "map_loading_box";
	loading_box.style.left = '0px';
	var width = "1000px";
	var height = "800px";	
	if (navigator.appName=="Netscape") {
		if (typeof(window.innerHeight) == 'number')
		{
		  height = window.innerHeight;
		  width = window.innerWidth;
		  height = height+3000;
		}
		else if (document.body && typeof(document.body.offsetHeight) == 'number')
		{
		  height = document.body.offsetHeight;
		  width = document.body.offsetWidth;
		}

		width = width+'px';
  		height = height+'px';
	 }
	 else if (navigator.appName.indexOf("Microsoft")!=-1) {		
 		width = document.body.clientWidth+'px';
		height = document.body.clientHeight+'px';
	 }
	 else if(navigator.appName == "Opera") {
   		width = window.innerWidth+'px';
		height = window.innerHeight+'px';
	}
	loading_box.style.width = width;
	loading_box.style.top = '0px';
	loading_box.style.height = height;
	loading_box.innerHTML = '<table width="'+width+'" height="'+height+'" align="center"><tr><td style="font-family: Arial, Verdana, Helvetica; color:#000000; FONT-WEIGHT: bold; FONT-SIZE: 25px;" valign="middle" align="center">&nbsp;</td></tr></table>';
	document.body.appendChild(loading_box);
	// end
}
function fnCls(page)
{
	if(page!='')
	{
		var parentFrm=window.parent.document.amntfrm;	
		parentFrm.action=page;
		parentFrm.submit();
	}
	else
	{
		document.getElementById("fid").style.display="none";	
		document.body.removeChild(document.getElementById('map_loading_box'));
	}
}
