Need to call @anywhere isconnected() onclick of checkbox


Using @anywhere, I need to check if someone is logged in in the event a checkbox is clicked. However, twttr anywhere can only be called once and my other twttr.anywhere call and other actions are in a script in the header. For the checkbox onclick event, how can this function call get access to the object that is inside the twttr.anywhere call?