What is wrong with this JavaScript function?
<p>I do not usually use JavaScript, and cannot see why this is not working. Thanks.</p>

<pre><code>function testYear() {
    var dObject = new Date();
    var dRegEx = /^[0-9][0-9]00$/;
    var d = dObject.getFullYear();

    if (d.match(dRegEx) &amp;&amp; d % 400 == 0) {
    alert("The year "+d+" is in fact a leap year!");
    //return true;
    }
    else if(!(d.match(dRegEx) &amp;&amp; d % 400) &amp;&amp; d % 4 == 0) {
    alert("The year "+d+" is in fact a leap year!");
    //return true;
    }
    else {
    alert("The year "+d+" is not a leap year.");
    //return false;
    }
}
</code></pre>
