/* Launches the specified URL in a centered popup window. 
 * @param string url	            The URL to open.
 * @param string name	            The name of the new window.
 * @param integer width             The width of the new window.
 * @param integer height            The height of the new window.
 * @param string isScrollable    Whether the window should have scrollbars. 
*/

function popup(url,name,width,height,isScrollable){
	// Use screen and window dimensions to determine where the new window should be placed. 
	x = (screen.width) ? (screen.width-width)/2 : 0;
	y = (screen.height) ? (screen.height-height)/2 : 0;
	// Open the new window.
	window.open(url,name,'height='+height+',width='+width+',top='+y+',left='+x+',scrollbars='+isScrollable+',resizable')
}
