Hi,
thanks for the reply. It seems both solution from Sergey and thomas are valid.
But is there simple solution as in Javascript like:
document.getElementById("login").innerHTML = "logout";
(assumeing the login label has id=login)
or something like that