	//Opens a new window with variables feed to it from html or flash

	var  openWindow;								// open Window variable set
	function newWindow(winUrl,winName,winOptions)   // function to open the window called from flash script
		{
		if (openWindow && !openWindow.closed){		  // Checks to see if a window is already open
			openWindow.close();						  // if it is close the window 
			openWindow = window.open(winUrl,winName,winOptions); // Open a new window with the new project in it
			}
		else{
			openWindow = window.open(winUrl,winName,winOptions); // Otherwise just open the project in a new window.
		}
	}
		

		/*   --- Notes ---
			
			Next line goes in the link:
				      javascript:OpenWindow(pathcontents/projects/boarder.html','projectWin','height=400,width=550,toolbar=0,location=0,directories=0,scrollbars=0,resizable=0')
			OPTION:
				toolbar - Specifies whether the browser's toolbar is displayed or not 1 or 0.
				location - Specifies whether the location bar (showing the current URL) of the browser is displayed or not. 1 or 0
				directories - Specifies whether the Netscape directory buttons are displayed or not. 1 or 0
				status - Specifies whether the browser status bar is displayed or not. 1 or 0
				menubar - Specifies whether the browser's menu bar is displayed or not. 1 or 0
				scrollbars - Specifies whether the window will allow scrollbars or not. 1 or 0
				resizable - Specifies whether the new window is resiz(e)able or not. 1 or 0
				width - pixels Specifies the width of the new window.
				height - pixels Specifies the height of the new window.
				top - pixels Specifies the top co-ordinate to display the new window. (Internet Explorer and Navigator 4.0 and above only)
				left - pixels Specifies the Left co-ordinate to display the new window. (Internet Explorer and Navigator 4.0 and above only)
			*/