	
	function PPCBlock(divName, chSel) {

		nbTable = new ajaxTable(divName);

		tbls.add(divName, nbTable);

		nbTable.setAjaxURL("console/_stuff/Ajaxpage.asp");
		nbTable.setPaginator("", 1, 10);
		nbTable.setPaginatorPosition(0);
		nbTable.setTableStyle(2);
	
		nbTable.setProperty('RowHeader', '');
		nbTable.setProperty('RowFooter', '');
		nbTable.setProperty('Cell1Header', '<img class="PPC" src="');
		nbTable.setProperty('Cell1Footer', '"/>');
		nbTable.setProperty('Cell2Header', '<h5><a href="index.asp?P=114&CH=' + chSel + '&AR=@@ID@@" title="');
		nbTable.setProperty('Cell2Footer', '">');
		nbTable.setProperty('Cell3Header', '');
		nbTable.setProperty('Cell3Footer', '</a></h5>');
		nbTable.setProperty('Cell4Header', '<h6>');
		nbTable.setProperty('Cell4Footer', '</h6>');

		nbTable.AjaxCall("EleArticoliCh", "&chsel=" + chSel + "&front_line=1" + "&getImg=Y" + "&fromDIV=" + divName,
			function() {
				if (this.readyState == 4) {
				
					// Recupera il DIV name di questa risposta
					var strRes=this.responseText;
					strRes=strRes.replace('<complete>','');
					strRes=strRes.replace('<script>','');
					strRes=strRes.replace('<\/script>','');
					strRes=strRes.replace('<\/complete>','');
				    jsonData = YAHOO.lang.JSON.parse(strRes);
				    reqDivName = jsonData.fromDIV;
				    
				    // Usa il DIV name per trovare la corrispondente classe
					for (i=0; i<tbls.propertieslist.length; i++) {
						tbl = tbls.propertieslist[i].value;
						if (tbl.getDIV() == reqDivName) {
							tbl.setJSON(tbl.getResponseArray());
							tbl.displayTable();
							break;
						}
					}

				}
			}
		);
	}
	
