I have a Javascript function that pulls down variables, like so:
function OnClientCloseSecure(oWnd, args) { var arg = args.get_argument();