function trim(arg)
{
  return leftTrim(rightTrim(arg));
}

function leftTrim(arg)
{
  return arg.replace(/^\s*/, '');
}

function rightTrim(arg)
{
  return arg.replace(/\s*$/, '');
}

function isEmpty(arg)
{
  return trim(arg) == '';
}

function focusElement ( name )
{
    eval( name + ".focus()" );
}

function openPopup( url, name, params )
{
    window.open( url, name, params );
}

function migrationInProgress() {

	alert( "Dear Intranet user! \n\nMigration of the Members' Intranet is in progress - Logins are disabled until Monday. \n\nThanks for your understanding.");

	return false;
}
