
var has_data = false;	
var table_html = '<table border="0" cellpadding="0" cellspacing="0">'
				+	'<tr>'
				+   	'<td colspan="3" height="20" align="center" bgcolor="D7E5F0" class="tabText">'
				+			'<strong>'+unescape(displayName)+'</strong>'
				+		'</td>'
				+	'</tr>';
				
// warning! displayName	is defined outside this script in the portion that assign values for the image browser.

var count = 0;
for (i in specs) { 
	if (specs[i]!="") {
		has_data = true;
		bg = (count++%2==0)?'':'bgcolor="#EAECEC"';					// test for odd / even table
		table_html += 	'<tr>'
					+   	'<td width="180" align="center" nowrap="nowrap" '+bg+' class="tabText" height="15">'+i+'</td>'
					+		'<td bgcolor="#CCCCCC"></td>'
					+		'<td width="180" align="center" nowrap="nowrap" '+bg+' class="tabText">'+specs[i]+'</td>'
					+	'</tr>';
	}
}
if (has_data)
	table_html += '</table>';
else
	table_html = '';
	

if (table_html!='')
	document.getElementById('tab_specifications').innerHTML = table_html;

