//Electriduct JS FILE
function make_accessories(data)
{
//Creating the ElectriductTAb
//Format : DESCRIPTION1:DATA1,DATA2,DATA3;DESCRIPTION2:DATA1,DATA2,DATA3;DESCRIPTION3:DATA1,DATA2,DATA3
	if (data.length <= 2)
	{
		//document.write(data);
		return false;
	}

	totaltab = data.split(';');
	
	document.write('<table border="0" width="100%" cellspacing="0" cellpadding="0" class="ProdTable" align="center">');
	//Header Creation
	document.write('<tr class="Toptable" align="center">');
	document.write('<th width="100%" >Accessories for this product :</th>');
	document.write('</tr>');
	
	
	var pic = null;
	var temp = null;
	var i;
	for (i = 0; i < totaltab.length; i++)
		{	
			temp = totaltab[i].split(':');
			if (temp[2] != null)
				pic = '<img src="assets/images/' + temp[2] + '" border="0" align="left" height="40" width="40"/>';
			else
				pic = "";
				if (temp[0].length <= 5) continue;
			document.write('<tr align="left">');
			document.write('<td style="font-weight:bold;"><a href="product.asp?itemid=' + temp[1] + '">' + pic + '<br>&nbsp;&nbsp;&nbsp;' + temp[0] + '&nbsp;&nbsp;<img src="assets/templates/layout8/images/more_info_small.jpg" border="0" align="absmiddle"/></a></td>');
			document.write('</tr>');
		}
	
	document.write(' </table>');
	return true;
}