Javascript Detect Null Object

There are many methods to check if an object is null in javascript, this post gives most of the options that can used to detect this. http://lists.evolt.org/archive/Week-of-Mon-20050214/169524.html
Well, first of all, in JavaScript null is an object. There’s another
value for things that don’t exist, undefined. The DOM returns null for
almost all cases where it fails to [...]

Logging to Eventviewer

This article here is really good on explaining how to log to the Even Viewer. It is really simple and straight to the point, and also explains how to overcome the common security issues that you would get in logging to the Event Viewer.