function getQueryStrings()
{
 var qs;
 if (qs=location.search) {
  var qsa=qs.substring(1).split('&');
  var result=[];
  for(var i in qsa) {
   var pair=qsa[i].split('=');
   if (pair[0].length > 0) {
    result[pair[0]]=pair[1];
   }
  }
  return result;
 }
 return false;
}

function fitContent()
{
 return;
 var _heightAdjust = 32;
 if ( document.all ) {
  // for IE
  var _windowHeight = document.documentElement.clientHeight;
 } else {
  var _windowHeight = window.innerHeight;
 }

 var _contentBlock = document.getElementById("content");
 var _titleBlock = document.getElementById("title");
 var _copyBlock = document.getElementById("copy");
 if (_contentBlock && _titleBlock && _copyBlock) {
  var _newHeight = _windowHeight - (_titleBlock.offsetHeight + _copyBlock.offsetHeight) - _heightAdjust;
  if ( _newHeight < 100 ) {
    _newHeight = 100;
  }
  _contentBlock.style.height = _newHeight + "px";
 }
}

function beforePrint()
{
 var _contentBlock=document.getElementById('content');
 _contentBlock.style.height='auto';
}

function onLoad()
{
 if(typeof(onLoadLocal)=='function') {
     onLoadLocal();
 }
 fitContent();
}

function onResize()
{
 if(typeof(onResizeLocal)=='function') {
     onReiszeLocal();
 }
 fitContent();
}

window.onload=onLoad;
window.onresize=onResize;
