AttachEvent = function (obj, name, func)
{
  if (obj.addEventListener) { AttachEvent = function (obj, name, func) { obj.addEventListener(name, func, false);} }
  else if (obj.attachEvent) { AttachEvent = function (obj, name, func) { obj.attachEvent('on'+name, func);} }
  else { AttachEvent = function (obj, name, func) { obj['on'+name] = func; } }
  AttachEvent(obj, name, func);
}

function SetMinHeight(id, height)
{
  var obj = document.getElementById(id);
  if (obj && (obj.offsetHeight < height)) obj.style.height=height+"px";
}
var divh = 450;
AttachEvent(window, "load", function () {SetMinHeight("wrap", divh);});
