Am passing a value to a js function i.e. showPopupMenu( document.all.popupMenuDivDR03-0003 ). But on the function itself if i try alerting the passed value, i get "NAN". How can i get an object i.e. function showPopupMenu( oDiv ) { alert( oDiv ); } so as to get an object.