function ShowTable(vIdent,vId)
{
	var oTable=eval(vIdent+vId);
	if(oTable.style.display=="none") oTable.style.display="block";
	else oTable.style.display="none";
}

function CheckAll(vForm,vCheckbox)
{
	var vTrueFalse=eval(vCheckbox).checked;
	var AllInput=eval(vForm).all.tags("input");
	for(ii=0;ii<AllInput.length;ii++)
	{
		if(AllInput[ii].type=="checkbox") AllInput[ii].checked=vTrueFalse;
	}
}

function ViewImage(catalog,img,width,height)
{
	var left=(screen.availWidth-width)/2
	var top=(screen.availHeight-height)/2
	wId=window.open("library/viewimage.php?catalog="+catalog+"&img="+img, "wo", 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,left='+left+',top='+top+',width='+width+',height='+height);
	wId.focus();
}

