//------------------------------------------------------------------------------------////	 Purpose:			Rolling Thunder Campaign//	 Description:		Cross-platform window open code//	 Copyright:			Andrew Dunbar: Australian Indigenous HealthInfoNet//						http://www.healthinfonet.ecu.edu.au//	 Created:			02-10-01//	 Modified:			////------------------------------------------------------------------------------------// This function opens a new popup window depending on the input options	function openWindow(winName,address,winWidth,winHeight,winOptions){				//Internet Explorer		var LeftPosition = (screen.width)/2 -(winWidth/2);		var TopPosition = (screen.height)/2 -(winHeight/2 + 50); // "+50" is the area allocated for toolbars etc				//Netscape Navigator		var ScreenXPosition = (screen.width/2)-(winWidth/2);		var ScreenYPosition = (screen.height/2)-(winHeight/2 + 50); // "+50" is the area allocated for toolbars etc		//If the window being requested will fit in the available screen width and screen height		if (screen.width > winWidth || screen.height > winHeight) {		//Creates a new window instance		var whandle = window.open(address, winName,'width='+winWidth+',height='+winHeight+',top='+TopPosition+',left='+LeftPosition+',screenX='+ScreenXPosition+',screenY='+ScreenYPosition+','+winOptions+'')		//Draws the focus of the browser to the new window		whandle.focus()			}				else {			//Creates a nerw window instance		var whandle = window.open(address, winName,'width='+winWidth+',height='+winHeight+',top='+(TopPosition-50)+',left='+(LeftPosition-50)+',screenX='+(ScreenXPosition-50)+',screenY='+(ScreenYPosition-50)+','+winOptions+'')				//Draws the focus of the browser to the new window		whandle.focus()		}			}
