This is javascript, not VB!

How about using a session variable?

Roger