/**
*	Common, generic javascript functions.
*/

/**
 *	Shorthand for document.getElementById.
 *
 * 	@var string elementId The ID of the element to return.
 */
function $( elementId )
{
	return document.getElementById( elementId );
}

/**
 *	Opens a popup window with minimal chrome.
 *
 * 	@var string popup_url
 * 	@var string popup_width
 * 	@var string popup_height 
 *	@return bool
 */
function OpenPopup( popup_url, popup_width, popup_height )
{
	return window.open( 
		popup_url, 
		'', 
		'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=' + popup_width + ',height=' + popup_height );
}
