I have a check in some Perl cgi pages where using some JavaScript to if a drop down box has a value set or not, if not then an alert to the user to select an OU.

The problem I have is that the check works fine in IE8, FireFox and Chrome, but the check does not work in IE7, in IE7 the check always comes back as null.

Code:
<script language=javascript>

function validateData() {
    if ((!(typeof(document.update.ou_new)==
...