function FixHTML( leftblocksID, centerblocksID, rightblocksID ) {
  var ua = navigator.userAgent.toLowerCase();
  var is_ie = ua.indexOf("msie") != -1 && ua.indexOf("opera") == -1;

  var container    = document.getElementById('container');
  var leftblocks   = document.getElementById(leftblocksID);
  var centerblocks = document.getElementById(centerblocksID);
  var rightblocks  = document.getElementById(rightblocksID);
  var navigation   = document.getElementById('navigation');

  var clientSize         = P6TBL.Lib.getClientAreaSize();
  var container_width    = ( clientSize.width > 1024 ) ? 1024 : clientSize.width - 50 ;
  var sideblocks_width   = 170;
  var centerblocks_width = container_width - ( sideblocks_width * 2 );

  if ( document.body.getAttribute('class') || document.body.getAttribute('className') ) {
    var classValue = 'left-center-right';

    /* HTMLのid属性の値をチェックします。 */
    if ( leftblocks  && centerblocks && !rightblocks ) classValue = 'center-right';
    if ( !leftblocks && centerblocks && rightblocks  ) classValue = 'left-center';
    if ( !leftblocks && centerblocks && !rightblocks ) {
      classValue         = 'center';
      centerblocks_width = container_width;
    }

    /* body要素のclass属性に「js_on」を設定します。 */
    classValue += ' js_on';

    /* HTMLの構造によってbody要素のclass属性に値を設定します。 */
    if ( is_ie ) {  /* IE用 */
      document.body.setAttribute('className', classValue);
    } else {  /* Gecko, Opera, Safari他用 */
      document.body.setAttribute('class', classValue);
    }

    /* テーマに依存したプラグインテンプレート等の不具合を補正します(暫定的措置)。 */
    centerblocks.innerHTML = centerblocks.innerHTML + "<br>";
  }

  container.style.width    = container_width    + 'px';
  navigation.style.width   = container_width    + 'px';
  centerblocks.style.width = centerblocks_width + 'px';
}
