function openPopup(page,winname,param)
{
	window.open(page,winname,param);
}

function openPopupCenter(page,winname,param)
{
	var newWin = window.open(page,winname,param);
}


function lTrim(value){
	var found = false;
	var i = 0;

	while((i<value.length) && (!found)){
		if (value.charAt(i)!=' ') found = true;
		i++;
	} // while
	if (found) i--;
	return value.substr(i,value.length-i);
}

function rTrim(value){
	var found = false;
	var i = value.length-1;

	while((i>=0) && (!found)){
		if (value.charAt(i)!=' ') found = true;
		i--;
	} // while
	if (found) i++;
	return value.substr(0,i+1);
}
/**
 *
 * @access public
 * @return void
 **/
function trim(value) {
	return lTrim(rTrim(value));
}