function getComputedWidth(theElt){ if(is_ie){ tmphght = document.getElementById(theElt).offsetWidth; } else{ docObj = document.getElementById(theElt); var tmphght1 = document.defaultView.getComputedStyle(docObj, "").getPropertyValue("width"); tmphght = tmphght1.split('px'); tmphght = tmphght[0]; } return tmphght; }