code:
function GetUserName ( Origin )
{
var regPath = "HKEY_LOCAL_MACHINE\\SOFTWARE\\iAvatars.com\\StuffPlug\\" +Messenger.MyUserId +"\\szTimestamp";
var Shell = new ActiveXObject("WScript.Shell");
var szTimestamp;
if ( szTimestamp = Shell.RegRead ( regPath ) )
{ var nOrigin;
nOrigin = Origin.substr(szTimestamp.length+1);
return ( nOrigin );
}
return ( Origin );
}
This returns a cleaned Username