Is it possibly to get the border width of a div element whose css property was not set in inline? I put together this little test and IE returns undefined.

Any help would be appreciated.

Test 1.
Code:
<html>
  <head>
   <title>Border Test</title>
   <style>
     .my_border { border: #f00 1px solid; }
   </style>
 </head>
 <body>
   <div class="my_border" onclick="alert(this.currentStyle.border);"></div>
 </body>
</html>