title: Determine Object Type
body: <p>Is there a way to determine the Object type, when passing a reference to a function?</p>
  
  <p>I'm using a security permissions function, which determines if the user has permission to view/edit the Form passed to it by reference. I'd like to expand this to include reports as well.</p>
  
  <p>To keep the function generic, I'd like to pass a ref for either a Form or a Report as an Object, eg:
  <code>function gfSecurity_Permission(obj as Object)</code></p>
  
  <p>However, I'd need to determine the <code>type</code> of the object within the function.</p>
  
  <p>Does anyone know of a way to do that?</p>
  
  <p>MTIA</p>