Thread:Project:Support desk/Change the HTML title of a special page conditionally?

I've run into a bit of a situation - I need to be able to change the HTML title of a page based on several conditions.

For example, a page title usually looks like this: -

I need to be able to change dynamically. I'm using a query string (?id=), with the value of the ID string being associated with a name that should become.

How would this be done?