Does anyone have an example JavaScript script, that on being called (will be doing this via a ribbon button) it can check if a lookup field on the form in not null, and then open the lookup record itself in the current screen? (to act like a divert).