Since ```doc``` is only used once it would be better to write this like:
```
isIEorDocModeGreater9($CLIPBOARD[0].ownerDocument)
```
with no variable declaration.