
function PageHeight(){
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
  }
  if(yWithScroll < 470) yWithScroll = 470;
  parent.document.getElementById('ftpframe').style.height=yWithScroll+'px';
}

function showHide(elem){
  var arg = document.getElementById(elem);
  var arg1 = document.getElementById(elem+'p');
  if(arg.style.display == 'none'){
    arg.style.display = 'block';
    arg1.innerHTML = '-';
  }else{
    arg.style.display = 'none';
    arg1.innerHTML = '+';
  }
  PageHeight();
}

function dl(file){
  theframe.location.href="dl.php?f="+file;
}