var  num_height;
$(document).ready(function(){
function getWindowHeight() {
   var windowHeight = 0;
   if (typeof(window.innerHeight) == 'number') {
    windowHeight = window.innerHeight;
   }
   else{
  if (document.documentElement && document.documentElement.clientHeight) {
   windowHeight = document.documentElement.clientHeight;
  }
        else {
              if (document.body && document.body.clientHeight) {
              windowHeight = document.body.clientHeight;
             }
        }
  }
    num_height = $('#main').height();
    num_height = num_height + 99;
	 e=document.getElementById("set_height");
     e.style.height = num_height + 'px';
     return windowHeight;
  }
   window.onload = function() {
   getWindowHeight();
  }
   window.onresize = function() {
   getWindowHeight();
  }
						   });
