<!--

/**
 * open a window
 * @access public
 * @param string strUri destination uri
 * @param string strName window name
 * @param string strOptions window options
 * @return object window
 */
function openWindow(strUri, strName, strOptions) {
	win = window.open(strUri, strName, strOptions);
	return win;
}

/**
 * open a centered window according to params nWidth and nHeight
 * @access public
 * @param string strUri destination uri
 * @param string strName window name
 * @param int nWidth window width
 * @param int nHeight window height
 * @param string strOptions window options
 * @return object window
 */
function openCenteredWindow(strUri, strName, nWidth, nHeight, strOptions) {
	if (strOptions != "") {
		strOptions = "," + strOptions;
	}
	strOptions = "width=" + nWidth + ",left=" + (screen.width-nWidth)/2 + ",height=" + nHeight + ",top=" + (screen.height-nHeight)/2 + strOptions;
	win = openWindow(strUri, strName, strOptions);
	return win;
}

/**
 * get an element by its id
 * @access private
 * @param string strId object id
 * @return object object with strId
 */
function getEl(strId){
	return document.getElementById(strId);
}

/**
 * no operation
 * @access public 
 * @return void
 */
function noop() {
	return;
}

/**
 * pause
 * @access public
 * @param int millisec milliseconds to pause
 * @return void
 */
/*
function pause(milliseconds) {
	window.setTimeout("noop()", parseInt(milliseconds));
}
*/
//-->