[blah.mode] (without var), on the other hand, is processed when your MergeField is called, which is after the onload has already run. This means that [blah.mode] would not be replaced with its value (1) in time to be evaluated against the hardcoded '1' which is checked onload. Onload runs as soon as you LoadTemplate().

I hope that helps.

New message

Name:

Email:

ignore this line

Email:

-> No email accessible on Web pages.

Send replies notifications by email

Readers can contact you by Anti-Spam System (*)

Subject:

Message:

Special part in message: enter text between [code] and [/code] tags.

(*) Anti-Spam System: A reader can ask for 3 emails a day, no more ; and the reader must have a valid email to ask for emails.