function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
function getWidthOfWindow() {
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else if( document.documentElement && ( document.documentElement.clientWidth ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } else if( document.body && ( document.body.clientWidth ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
  return myWidth;
}
function move() {
    // run this code on page load
    var div = document.getElementById('inner_content');
    var searchDiv = document.getElementById('search_column');
    var spacing = 32;
    div.style.width = (getWidthOfWindow() - getWidth(searchDiv)) - spacing + 'px';
}

function getWidth(someObject) {
    if (someObject.style.width) return someObject.style.width;
    if (someObject.style.pixelWidth) return someObject.style.pixelWidth;
    if (someObject.offsetWidth) return someObject.offsetWidth;
    if (document.defaultView && document.defaultView.getComputedStyle) {
        return document.defaultView.getComputedStyle(someObject,'').getPropertyValue('width');
    }
    return 0;
}
