function OpenLabWin(width,height,fileName)
{
    x = (640 - width)/2, y = (480 - height)/2;
    if (screen)
	{
        y = (screen.availHeight - height)/2;
        x = (screen.availWidth - width)/2;
    }

	window.open(fileName,'newWin','resizable=no,scrollbars=no,width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+'');
}

<!--
	/*
		1. anything tags above width style definition will cause the string to by truncketed
	
	*/
	var MenuTimer;
	var MenuSubTimer;
	var StoreMenuID;
	var BrowserMac = (navigator.appVersion.indexOf("Mac") != -1);
	
	MenuBaseObj = 
	{
		Type : "Horizontal",
		Font : "Verdana",
		FontSize: "11",
		FontWeight : "Normal",
		Cursor :"hand",
		BorderSpacing : "5",
		
		Width : "100%",
		Padding : "3px 10px 5px 8px",
		Border : "1px",
		BorderColor : "#CCCCCC",
					
		FontColor : "#666666",		
		FontColorOver : "#ffffff",
		FontSelectedColor: "#ffffff",
		
		BGColor : "#FFFFFF",
		BgColorOver : "#666666",
		BgSelectedColor : "#999999",
						
		ArrowLeft : "extras/arrowRight.gif",
		ArrowLeftOver : "extras/arrowRightOver.gif",
		ArrowRight : "extras/arrowLeft.gif",
		ArrowRightOver: "extras/arrowLeftOver.gif"			
	}
	
	MenuSubObj = 
	{
		Font : "Verdana",
		FontSize: "11",
		FontWeight : "Normal",
		Cursor :"hand",
		OffsetLeft : "0",
		OffsetTop : "-1",

		Width : "145px",					
		Padding : "3px 10px 3px 8px",
		Border : "1px",
		BorderColor : "#cccccc",
					
		FontColor : "#ffffff",		
		FontColorOver : "#ffffff",
		FontSelectedColor: "#ffffff",
		
		BGColor : "#999999",
		BgColorOver : "#666666",
		BgSelectedColor : "#666666"	
	}

	MenuSubLastObj = 
	{
		Font : "Verdana",
		FontSize: "11",
		FontWeight : "Normal",
		Cursor :"hand",
		OffsetLeft : "0",
		OffsetTop : "0",
		
		Width : "145px",		
		Padding : "3px 10px 3px 8px",
		Border : "1px",
		BorderColor : "#cccccc",
					
		FontColor : "#ffffff",		
		FontColorOver : "#ffffff",
		FontSelectedColor: "#ffffff",
		
		BGColor : "#999999",
		BgColorOver : "#666666",
		BgSelectedColor : "#666666"	
	}	
		
	
	if(MenuBaseObj.Type =="Horizontal")
		MenuBaseObj.Width = "0px";


		var ArrowLeft = new Image(); ArrowLeft.src =MenuBaseObj.ArrowLeft;
		var ArrowLeftOver = new Image(); ArrowLeftOver.src = MenuBaseObj.ArrowLeftOver;
		var ArrowRight = new Image(); ArrowRight.src =MenuBaseObj.ArrowRight;
		var ArrowRightOver = new Image(); ArrowRightOver.src = MenuBaseObj.ArrowRightOver;		
				
		function checkMenuID()
		{
			if((StoreMenuID) && (eval("MenuSub"+StoreMenuID).style.visibility=="visible"))
			{
				eval("MenuSub"+StoreMenuID).style.visibility="hidden";
				StoreMenuID = null;
			}
		}
						
		function DisplayMenu(Obj,ObjType,ObjID)
		{
			OffsetLeft = 0;
			OffsetTop = 0;
			if(MenuTimer)
			clearTimeout(MenuTimer);
			
			if(document.all["MenuSub"+ObjID])
			{
				if(ObjType=="MouseOver")
				{
					eval("MenuSub"+ObjID).style.visibility="visible";
					if(ObjID!=StoreMenuID)
					{
						checkMenuID()
					}
				}
				if(ObjType=="MouseOut")
				{
					StoreMenuID = ObjID;
					MenuTimer = setTimeout("eval('MenuSub'+'"+ObjID+"').style.visibility='hidden'",500);
				}
				if(!Obj.Coord)
				{
					if(BrowserMac)
					{
						Splitter = MenuBaseObj.Padding.split(" ");
						OffsetLeft= parseInt(Splitter[Splitter.length-1]) + parseInt(MenuBaseObj.Border) - parseInt(MenuBaseObj.BorderSpacing);
						OffsetTop= parseInt(Splitter[0]) + parseInt(MenuBaseObj.Border) - parseInt(MenuBaseObj.BorderSpacing);
					}
					DivLength = eval("MenuSub"+ObjID).all.tags("A");
					DivLength[DivLength.length-1].style.borderBottom=''+MenuSubObj.Border+' solid '+MenuSubObj.BorderColor+'';
					LeftValue = getCoords(Obj,"offsetLeft");
					TopValue = getCoords(Obj,"offsetTop");
					if((LeftValue + eval("MenuSub"+ObjID).offsetWidth) > document.body.offsetWidth)
					{
						LeftValue = (LeftValue + Obj.offsetWidth) - eval("MenuSub"+ObjID).offsetWidth
					}
					eval("MenuSub"+ObjID).style.left = LeftValue + parseInt(MenuSubObj.OffsetLeft) - parseInt(OffsetLeft);
					eval("MenuSub"+ObjID).style.top = TopValue + Obj.offsetHeight + parseInt(MenuSubObj.OffsetTop) - parseInt(OffsetTop);
					Obj.setAttribute("Coord",'true');
				}
			}
			else
			checkMenuID();
		}
		
		
		function DisplaySubMenu(Obj,ObjType,ObjID,SubObjID)
		{
			OffsetLeft = 0;
			OffsetTop = 0;
			if(MenuTimer)
			clearTimeout(MenuTimer);
			
			if(document.all["MenuSub"+ObjID])
			{
				
				if(ObjType=="MouseOver")
				{
					eval("ImgObj"+ObjID).src =ArrowLeftOver.src;
					eval("MenuSub"+ObjID).style.visibility="visible";
				}
				
				if(ObjType=="MouseOut")
				{
					MenuSubTimer = setTimeout("eval('MenuSub'+'"+ObjID+"').style.visibility='hidden'",100);
					eval("ImgObj"+ObjID).src =ArrowLeft.src;
				}
				
				if(!Obj.Coord)
				{
					if(BrowserMac)
					{
						Splitter = MenuSubObj.Padding.split(" ");
						OffsetTop= parseInt(Splitter[0]) + parseInt(MenuSubObj.Border);
					}
					DivLength = eval("MenuSub"+ObjID).all.tags("A");
					DivLength[DivLength.length-1].style.borderBottom=''+MenuSubLastObj.Border+' solid '+MenuSubLastObj.BorderColor+'';
			
					LeftValue = parseInt(eval("MenuSub"+SubObjID).style.left) + eval("MenuSub"+SubObjID).offsetWidth;
					if((LeftValue + eval("MenuSub"+ObjID).offsetWidth) > document.body.offsetWidth)
					{
						LeftValue  = parseInt(eval("MenuSub"+SubObjID).style.left)  - eval("MenuSub"+ObjID).offsetWidth + (parseInt(MenuSubObj.Border) * 2);
						eval("ImgObj"+ObjID).src =ArrowRightOver.src;
					}
					
					eval("MenuSub"+ObjID).style.left = LeftValue - parseInt(MenuSubObj.Border) +   parseInt(MenuSubLastObj.OffsetLeft)
					eval("MenuSub"+ObjID).style.top = getCoords(Obj,"offsetTop") + parseInt(MenuSubLastObj.OffsetTop) - parseInt(OffsetTop);
					Obj.setAttribute("Coord",'true');
				}
			}
		}
		
		function GetElementObj(Obj,SubObj,ObjType)
		{
			if(ObjType=="MouseOver")
			{
				if(MenuSubTimer)
				clearTimeout(MenuSubTimer);
				
				eval("MenuSub"+Obj).style.visibility="visible";
				eval("MenuSub"+SubObj).style.visibility="visible";
			}
			if(ObjType=="MouseOut")
			{
				eval("MenuSub"+Obj).style.visibility="hidden";
				eval("MenuSub"+SubObj).style.visibility="hidden";
			}
		}
		
		function getCoords(Obj,Type)
		{	
			var objVal = Obj[Type];
			while (Obj.offsetParent != null)
			{
				Obj = Obj.offsetParent;
				objVal += Obj[Type];
			}
			return objVal;								
		} 

	function showModelessWin(fileName)
	{
		width = (screen.availWidth/100) * 80
		height = (screen.availHeight/100) * 80
		scroller ="no"
		WinStatus ="no"
		help ="no"
		resize ="yes"
		var ReturnValue = 0
		var WindowObj = showModalDialog(fileName + '&id=' + Math.random(), ReturnValue , "scroll:"+scroller+";dialogWidth:"+width+"px;dialogHeight:"+height+"px;status:"+WinStatus+";help:"+help+";resizable:"+resize+";");				
		if(WindowObj==1)
		{
			location.href=location.href
		}
	}
