//  Javascript function:  openNewWindow - Returns a window object representing a newly created window
//
//  Returns
//    Success - Window Object
//    Failure - Null
//	
//  Arguments:
//		URL - URL to load in the new window
//		name - Window name (if none, use '' instead of ' ')
//		top - vertical position of top left corner on screen in pixels
//		left - horizontal position of top left corner on screen in pixels
//		width - content region width in pixels
//		height - content region height in pixels
//    options - features of the window such as menubar, location, etc.
//      
//  Usage Example:  
//    <a href="javascript:openNewWindow('http://www.nationalcity.com','NCC',20,20,700,500,'resizable,menubar,scrollbars,status,toolbar,location');">click here</a>
//		
	
function openNewWindow(URL,name,top,left,width,height,options)
{
	var sOptions
	
	if (navigator.appName.indexOf("Microsoft") != -1)
		{
			sOptions = options + ",left=" + left + ",top=" + top + ",width=" + width + ",height=" + height;
		}
	else 
		{
			sOptions = options + ",screenX=" + left + ",screenY=" + top + ",outerWidth=" + width + ",outerHeight=" + height;
		}
	
		var w = window.open(URL, name, sOptions);
	
}	
