function show_products( category ) {
	document.write( "<table cellpadding=2 cellspacing=0 border=0>\n" );
	for( var i = 0; i < categories[category].length; i++ ) {
		document.write( "<tr valign=baseline>\n" );
		document.write( "<td width=50>"+ categories[category][i] + "</td>\n" );
		if( products[categories[category][i]].image == '' )
			document.write( "<td width=220><a href='noimg.gif' target='image' onClick='parent.frames[\"image\"].document.pic.src=\"../images/noimg.gif\"; return false;'>" + products[categories[category][i]].description + "</a></td>\n" );
		else
			document.write( "<td width=220><a href='" + products[categories[category][i]].image + "' target='image' onClick='parent.frames[\"image\"].document.pic.src=\"../images/" + products[categories[category][i]].image + "\"; return false;'>" + products[categories[category][i]].description + "</a></td>\n" );
		document.write( "<td width=70 align=center>" + formatCurrency( products[categories[category][i]].price ) + "</td>\n" );
		document.write( "<td width=90 align=center><INPUT TYPE=text NAME=\'" + categories[category][i] + "\' MAXLENGTH=3 SIZE=3>&nbsp;&nbsp;<INPUT type=image name='buy" + categories[category][i] + "' src='../index_images/buyone.gif' width=24 height=24 align=top></td>\n" );
		document.write( "</tr>\n" );
	}
	document.write( "</table>" );
}

function show_new_releases() {
	for( var i = 0; i < categories["New"].length; i++ ) {
		if( ( ( i + 1 ) % 3 ) == 1 ) {
			document.write( "<center><table>\n" );
			document.write( "  <tr>\n" );
		}
		document.write( "    <td valign=top>\n" );
		document.write( "      <table width=120 border=1 cellspacing=0 cellpadding=0>\n" );
		document.write( "        <tr>\n" );
		document.write( "		       <th height=50 colspan=2>\n" );
		document.write( "			       <FONT SIZE=-1>" + products[categories["New"][i]].description + "</FONT>\n" );
		document.write( "	     	   </th>\n" );
		document.write( "	       </tr>\n" );
		document.write( "  	     <tr>\n" );
		document.write( "	   	     <td><font size=2>Code</FONT></td>\n" );
		document.write( "  		     <td align=right><font size=2>" + categories["New"][i] + "</FONT></td>\n" );
		document.write( "	       </tr>\n" );
		document.write( "	       <tr>\n" );
		document.write( "  		     <td><font size=2>Price</FONT></td>\n" );
		document.write( "		       <td align=right><font size=2>" + formatCurrency( products[categories["New"][i]].price ) + "</FONT></td>\n" );
		document.write( "  	     </tr>\n" );
		document.write( "	       <tr>\n" );
		document.write( "  	      	<td align=center><FONT SIZE=2>Quantity</FONT></TD>\n" );
		document.write( "		        <TD align=center><INPUT TYPE=text NAME=\'" + categories["New"][i] + "\' MAXLENGTH=3 SIZE=3>&nbsp;&nbsp;<INPUT type=image name='buy" + categories["New"][i] + "' src='../index_images/buyone.gif' width=24 height=24 align=top></TD>\n" );
		document.write( "	       </tr>\n" );
		document.write( "    	   <tr>\n" );
		document.write( "		       <td valign=absbottom colspan=2 align=center><img src='../images/" + products[categories["New"][i]].image + "'></td>\n" );
		document.write( "	       </tr>\n" );
		document.write( "      </table>\n" );
		document.write( "    </td>\n" );
		if( ( ( i + 1 ) % 3 ) == 0 ) {
			document.write( "  </tr>\n" );
			document.write( "</table>\n" );
		}
	}
}
