// create date: 10.25.2001
// by: klm
// This javascript function allows you to pass the destination, height, width, and
// location (top and left) of the target window. The window is set to popup with the
// full set of tool/status/menu/scroll bars. Set those parameters to 'No' in your
// implementation if you desire a plain popup window. (Be sure to set them in both
// the IE and Netscape lines of the function.
//
// Shown implemented below in an anchor tag href:
// <a href="javascript:popUp('http://www.nexium-us.com','nexium',400,500,100,100);"></a>

//  pop-up window function
//  parameters:
//	urlIn: destination url
//  	nameIn : name of target window, (for DOM purposes only, required).
//	heightIn: height of target window
//	widthIn: width of target window
//	topIn: # of pixels from the top of screen of target window
//	leftIn: # of pixels from the left of screen of target window
//
function popUp(urlIn, nameIn, heightIn, widthIn, topIn, leftIn) {
		if (navigator.userAgent.indexOf("MSIE") != -1) {
			// Internet Explorer
			window.open(urlIn, nameIn,'height=' + heightIn + ',width=' + widthIn + ',left=' + leftIn + ',top=' + topIn + ',scrollbars=yes,status=yes,toolbar=yes,menubar=yes');
			}
		else {
			// Netscape
			window.open(urlIn, nameIn,'height=' + heightIn + ',width=' + widthIn + ',screenx=' + leftIn + ',screeny=' + topIn + ',scrollbars=yes,status=yes,toolbar=yes,menubar=yes');
			}
}

