


function set_height_percent(obj, percent, pixel)
{
	var arg=set_height_percent.arguments;
	
	if (!arg[0]) return;
	if (!arg[1]) percent=100;
	if (!arg[2]) pixel=0;
	
	var height=obj.parentNode.offsetHeight;
	
	if (percent != 100) height=(height * percent / 100);
	if (pixel != 0) height=height+pixel;
	
	height=Math.round(height);
	
	obj.style.height=height+'px';
//	alert(obj.style.height);
}

