function ndeGetDocTextSize()

in axis/ja/skin/fontsize.js [92:125]


function ndeGetDocTextSize() 
{
  if (!checkBrowser)
  {
    return 0;
  }

  var size = 0;
  var body = document.getElementsByTagName('body')[0];

  if (body.style && body.style.fontSize)
  {
    size = body.style.fontSize;
  }
  else if (typeof(getComputedStyle) != 'undefined')
  {
    size = getComputedStyle(body,'').getPropertyValue('font-size');
  }
  else if (body.currentStyle)
  {
   size = body.currentStyle.fontSize;
  }

  //fix IE bug
  if( isNaN(size)){
    if(size.substring(size.length-1)=="%"){
      return
    }

  }

  return size;

}