function getBrowserHeight() 
	{
	  var intH = 0;
	  var intW = 0;

	  if(typeof window.innerWidth  == 'number') {
		 intH = window.innerHeight;
		 intW = window.innerWidth;
	  } 
	  else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
		   intH = document.documentElement.clientHeight;
		   intW = document.documentElement.clientWidth;
	  }
	  else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
		intH = document.body.clientHeight;
		intW = document.body.clientWidth;
	  }

	  return {width: parseInt(intW), height: parseInt(intH)};
	}

    function resize() 
	{
      var calElement = document.getElementById("cal");
	  if (calElement)
		{
			var bws = getBrowserHeight();
			if (bws.width <= 995)
			{
				calElement.width = 430;
				calElement.height = bws.height -25;
			}
			else
			{
				calElement.width = bws.width - 540;
				calElement.height = bws.height -25;
			}
		}
    }
