function ShowChildForm(sMenuId,sNavigateUrl,iFormWidth,iFormHeight)
{
	if (window.top.childWindow==null)
		window.top.childWindow=new Array();
	if (window.top.childWindow[sMenuId]!=null)
	{
		try
		{
			window.top.childWindow[sMenuId].focus();
		}
		catch(e)
		{
			OpenChildForm(sMenuId,sNavigateUrl,iFormWidth,iFormHeight);
		}
	}
	else
	{
		OpenChildForm(sMenuId,sNavigateUrl,iFormWidth,iFormHeight);
	}
}

function OpenChildForm(sMenuId,sNavigateUrl,iFormWidth,iFormHeight)
{
	if (iFormWidth <=0 || iFormHeight <=0)
	{
		window.top.childWindow[sMenuId]=window.open(sNavigateUrl,"_blank","height="+window.screen.availHeight+",width="+window.screen.availWidth+",left=0,top=0,directories=no,location =no,menubar =no,resizable=yes,titlebar=no,toolbar=no");
		window.top.childWindow[sMenuId].focus();
	}
	else
	{
		var strFeatures="width="+iFormWidth+",height="+iFormHeight+",directories=no,scrollbars=yes,location=no,menubar=no,status=no,toolbar=no,resizable=yes";
		strFeatures+=",left="+(window.screen.availWidth-iFormWidth)/2;
		strFeatures+=",top="+(window.screen.availHeight-iFormHeight)/2;
		window.top.childWindow[sMenuId]=window.open(sNavigateUrl,"_blank",strFeatures);
		window.top.childWindow[sMenuId].focus();
	}
}
      


