this line of your code:
- var a=document.getElementById("cmbState3");
returns you a dom-node-reference (an object) to variable a in case the method finds the node in your doc ... otherwise a will be null ...
so you cannot compare a string with an object ... what do you really want to compare? any property or attribute of the node?
kind regards