<!--
var pSub = null;
var pCat = null;
function ShowSubCat(id,cat){
	var ob = GetObject(id);
	if(pSub != ob){
		if(ob != null){
			ob.className = 'cSubVisible';
			if(pSub != null){
				pSub.className = 'cSubHidden';
			}
			pSub = ob;
		}
	}
	if(pCat != null){
		pCat.className = 'cCat';
		pCat = null;
	}
	cat =  GetObject(cat);
	if(cat != null){
		cat.className = 'cCatS';
		pCat = cat;
	}
} 
function FormatItem(formatID, name,  description, image){
  this.formatID = formatID;
  this.name = name;
  this.description = description;
  this.image = image;
}
function StartProject(grupaID){
	var ob = GetObject('formaty_'+grupaID);
	if(ob != null){
		document.location = "?action=DocumentNew&formatID="+ob.options[ob.options.selectedIndex].value+"&grupaID="+grupaID;
	}
}
function FtpProject(grupaID){
	var ob = GetObject('formaty_'+grupaID);
	if(ob != null){
		document.location = "?action=FtpProjectAdd&formatID="+ob.options[ob.options.selectedIndex].value+"&grupaID="+grupaID;
	}
}
function ChangeFormat(grupaID){
	var ob = GetObject('formaty_'+grupaID);
	if(ob != null){
		var format = FormatList[grupaID][ob.options[ob.options.selectedIndex].value];
		if(format != null){
			if (document.images){
				document.images['group_'+grupaID].src = 'resources/pictures/grupy/' + format.image;
	  	}
		}
	}
}
function ShowPriceList(grupaID){
	var ob = GetObject('formaty_'+grupaID);
	if(ob != null){
		document.location = '?action=PriceListDisplay&grupaID='+grupaID+'&formatID='+ob.value;
	}
}
//-->