
function setMinWidth(id, origWidth, minWidth)
{
	setMinWidth.el = null;
	if (document.getElementById) {
		setMinWidth.el = document.getElementById(id);
	} else if (document.all) {
		setMinWidth.el = document.all(id);
	}

//	setMinWidth.el = document.getElementById ? document.getElementById(id) :
//  document.all ? document.all(id) : null;
  	if (setMinWidth.el) {
    	if (setMinWidth.el.offsetWidth<parseInt(minWidth)) {
      		setMinWidth.el.style.width = minWidth;
    	} else {
    		//if (document.body.offsetWidth>720) {
    		if (document.body.offsetWidth>730) {
    			setMinWidth.el.style.width = origWidth;
	  		}
		}
  	}
}

function setMinHeight(id, origHeight, minHeight)
{
  setMinHeight.el = document.getElementById ? document.getElementById(id) :
  document.all ? document.all(id) : null;
  if (setMinHeight.el) {
    if (setMinHeight.el.offsetHeight<parseInt(minHeight)) {
      //setTimeout('setMinHeight.el.style.height="'+minHeight+'"',10);
      setMinHeight.el.style.height= minHeight;
    } else {
	  setMinHeight.el.style.height = origHeight;
	}
  }
}

/**
 *
 * @access public
 * @return void
 **/
function fix_min_width()
{
	//Fix min-width for IE6
	if (navigator.appVersion.indexOf('MSIE 6') !=-1) {
		//setMinWidth('layout','100%','719px');
		setMinWidth('layout','auto','719px');
	}
}