function ShowCat(item){
    obj=  document.getElementById(item);
    if (obj)obj.style.display="block";
}

function HideCat(item){
    obj=  document.getElementById(item);
    if (obj) obj.style.display="none";
}

function AddName(o,lst){
  var txt = '';
	var o = document.getElementById(o);
	if (o) {

		allInput = o.getElementsByTagName("input");
		for (i=0; i<allInput.length;i++) {
			if (allInput[i].checked) {
				    txt=txt+allInput[i].name+', ';
			}
		}
	}

	o=document.getElementById(lst);

    	if (o!=null) {
    		txt=String(txt).substring(0,txt.length-2);
   			o.value=txt;

    	}



}

