{literal}
function up_launchIM( userID, destinationUserID )
{
	up_localUserID = userID;

	document.location.href = "{/literal}{$site_root}{literal}webmessenger/wm.php?strDestinationUserID=" + destinationUserID;
}
function up_launchWM( userID, destinationUserID, destinationName )
{
	up_localUserID = userID;

	window.open( "{/literal}{$site_root}{literal}webmessenger/wm.php?strDestinationUserID=" + destinationUserID, "WMWindow_" + up_replaceAlpha(userID) + "_" + up_replaceAlpha(destinationUserID), "width=360,height=397,toolbar=0,directories=0,menubar=0,status=0,location=0,scrollbars=0,resizable=1" );
}
function up_launchUL()
{
	window.open( "{/literal}{$site_root}{literal}webmessenger/ul.php" , "ULWindow" , "width=200,height=750,toolbar=0,directories=0,menubar=0,status=0,location=0,scrollbars=0,resizable=1" );
}
function up_replaceAlpha( strIn )
{
	var strOut = "";
	for( var i = 0 ; i < strIn.length ; i++ )
	{
		var cChar = strIn.charAt(i);
		if( ( cChar >= 'A' && cChar <= 'Z' )
			|| ( cChar >= 'a' && cChar <= 'z' )
			|| ( cChar >= '0' && cChar <= '9' ) )
		{
			strOut += cChar;
		}
		else
		{
			strOut += "_";
		}
	}

	return strOut;
}
{/literal}