function geti(s) {
 	return document.getElementById(s);
}

function display_change(item){	obj = geti(item);	if (obj.style.visibility=='hidden'){		obj.style.visibility = 'visible';
		obj.style.position = 'static';	}else{		obj.style.visibility = 'hidden';
		obj.style.position = 'absolute';
	}
}
function show_change(item){
	obj = geti(item);
	if (obj.style.display=='none'){
		obj.style.display = 'block';
	}else{
		obj.style.display = 'none';
	}
}
function display_none(item){
	obj = geti(item);
	obj.style.visibility = 'hidden';
	obj.style.position = 'absolute';
}
function display_block(item){
	obj = geti(item);
	obj.style.visibility = 'visible';
	obj.style.position = 'static';
}

tmp_img1 = new Image(); tmp_img1.src='/fond-content/themes/default/tree-img/nolines_minus.gif';
tmp_img2 = new Image(); tmp_img2.src='/fond-content/themes/default/tree-img/nolines_plus.gif';

function tree_open(img_item, item){	obj = geti(item);
	img_obj = geti(img_item);
	if (obj.style.visibility=='hidden'){
		obj.style.visibility = 'visible';
		obj.style.position = 'static';
		img_obj.src="/fond-content/themes/default/tree-img/nolines_minus.gif";
		img_obj.style.width='18px';
		img_obj.style.height='18px';
	}else{
		obj.style.visibility = 'hidden';
		obj.style.position = 'absolute';
		img_obj.src="/fond-content/themes/default/tree-img/nolines_plus.gif";
		img_obj.style.width='18px';
		img_obj.style.height='18px';
	}
}
function tree_checkbox(checkbox, subitems, suffix){	if (subitems!=''){		eval('si='+subitems+';');
		eval('si_cnt='+subitems+'_cnt;');
		for (i=0;i<si_cnt;i++){			geti('checkbox-'+suffix+'-'+si[i]).checked = checkbox.checked;		}
	}
}

function form_all_uncheck(cb1_id,cb2_id){	cb1 = geti(cb1_id);
	cb2 = geti(cb2_id);
	cb1.checked = false;
	cb2.checked = true;}

function forms_all(){}

