hmmm, think it might be this:

In your GetOU function, at the end, your making a call to this function:

mailbox($getou)

If you look, you will see that this function returns an object:

$mailbox=GETOBJECT("LDAP://$getou")

And you don't "silence" that return value in getou(), like this:

$= mailbox($getou)

Try that.

-Shawn