function resize(rootId, parId, wdt){
	var root = document.getElementById(rootId);
	var par = document.getElementById(parId);
	if(root.offsetHeight > par.offsetHeight-wdt){
		par.style.minHeight = root.offsetHeight-par.offsetHeight+par.offsetHeight+wdt+'px';
		par.style.height = root.offsetHeight-par.offsetHeight+par.offsetHeight+wdt+'px';
	}
}
