			<!--

				// COMPONENT: WINDOW STATE
				// Allows for the creation of a pop-up window which can be positioned
				// upon the screen by X and Y coordinates, sized by height and width,
				// and be forced to moved to the top of all open windows when it is 
				// updated (so as to ensure that it isn't hidden by another window).
				//
				// filename - name of HTML file to be opened in window
				// name - name of window
				// scroll - allow for scrolling (i.e. yes, no, auto)
				// height & width - size of window
				// left & top - location from top left corner of the screen
				//
				// centered window - set both left & top to 'max'
				// maximized window - set both width & height to 'center'
				//
				// Other Components Required: None.
				
				// *** Component Start *** //

				function windowstate(filename, name, scroll, width, height, left, top)
				{

					// Set left and top for centered window
					if (left == "center")
					{
						left = (screen.availWidth / 2) - ((width / 2) + 4);
						if (left < 0)
						{
							left = 0;
						}
					}
					if (top == "center")
					{
						top = (screen.availHeight / 2) - ((height / 2) + 14);
						if (top < 0)
						{
							top = 0;
						}
					}
					
					// Set height and width for maximized window
					if (width == "max")
					{
						width = screen.availWidth-10;
					}
					if (height == "max")
					{
						height = screen.availHeight-30;
					}

					windowops = eval("'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + scroll + ",resizable=yes,copyhistory=yes,alwaysRaised=yes,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + "'");
	
					newWindow = window.open(filename, name, windowops);
					newWindow.focus();
					return;
				}                

				// *** Component End *** //

			// -->
						