function addPages(dir,no,ptitle,plink) {				
	var i;
	document.write('<div style="padding: 0 40px 0 40px;"><span style="color: red;font-size:12px;font-weight:normal;"></span><br/>');
	document.write('<span style="font-weight: bold;">'+ptitle+'</span><br/>');
	for (i=1;i<=no;i++) {
		document.write('<div style="width: 200px;height: 135px;background-image: url(/images/book.gif);float:left;">');
		if (i<=no)
			document.write('<a href="'+plink+'"><img src="/images/pubblicati/'+dir+'/img'+i+'.jpg" width="85" height="110" border="0" alt="" style="float:left;padding: 13px 12px 0 10px;"/></a>');
		i++;
		if (i<=no)
			document.write('<a href="'+plink+'"><img src="/images/pubblicati/'+dir+'/img'+i+'.jpg" width="85" height="110" border="0" alt="" style="float:left;padding: 13px 0px 0 0px;"/></a>');
		else
			document.write('<a href="'+plink+'"><img src="/images/pubblicati/pagina_pub.gif" width="85" height="110" border="0" alt="" style="float:left;padding: 13px 0px 0 0px;"/></a>');
		  
		document.write('</div>');
	}
	document.write('</div><br clear="all"/>');
}