function topicRow(is_new,is_normal,is_important,is_announcement,is_sticky,is_locked,topic_prefix,topic_name,topic_url,arrPages,page_new_url,topic_replies,topic_starter,topic_starter_url,topic_views,topic_lastpost_by,topic_lastpost_by_url,topic_lastpost_date) {
	icon_type = (is_normal != "") ? "normal" : "";
	icon_type = (is_important != "") ? "important" : icon_type;
	icon_type = (is_announcement != "") ? "announcement" : icon_type;
	icon_type = (is_sticky != "") ? "sticky" : icon_type;
	icon_type = (is_locked != "") ? "locked" : icon_type;
	icon_ext = (is_new != "") ? "_new.gif" : ".gif";
	icon_title = (is_new != "") ? "New Posts in this topic!" : "";
	icon_url = ''+URL_CURR_SKIN+'img/icon_topic_' + icon_type + icon_ext + '';
	
	d.write('<tr>');
	d.write('<td><img src="'+URL_IMG+'space.gif" width="1" height="1" border="0" alt="" title=""></td>');
	d.write('<td class="contentbox2" align="center">');
	d.write('<img src="'+icon_url+'" width="16" height="16" border="0" alt="" title="'+icon_title+'" />');
	d.write('</td>');

	d.write('<td class="contentbox2" onmouseover="this.style.backgroundImage=\'url('+URL_CURR_SKIN+'img/contentbox2_bg2.gif)\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundImage=\'url('+URL_CURR_SKIN+'img/contentbox2_bg.gif)\';" onclick="window.location.href=\''+topic_url+'\';">');
	d.write('<b>'+topic_prefix+'</b><a href="'+topic_url+'"><b>'+topic_name+'</b></a>');
	if(arrPages.length > 0) {

		d.write('<br /><small>Goto Page:&nbsp;');

		for(i=0;i<arrPages.length;i++) {	
			if(arrPages[i] != "") {
				if(arrPages[i][1] != "") {
					d.write(' <a href="'+arrPages[i][1]+'">'+arrPages[i][0]+'</a>');
				} else {
					d.write(' '+arrPages[i][0]+'');
				}
				//topicRowPages(arrPages[i][0],arrPages[i][1]);
			}
		}

		d.write('</small>');

		if(page_new_url != "") {
			d.write('<a href="'+page_new_url+'"><img src="'+URL_CURR_SKIN+'img/icon_post_new_goto.gif" width="20" height="9" border="0" alt="" title="Only Show New Posts" /></a>');
		}
	}
	d.write('</td>');
	d.write('<td class="contentbox2b" align="center">'+topic_replies+'</td>');
	d.write('<td class="contentbox2" align="center"><small><a href="'+topic_starter_url+'">'+topic_starter+'</a></small></td>');
	d.write('<td class="contentbox2b" align="center">'+topic_views+'</td>');
	d.write('<td class="contentbox2" align="center" align="center" nowrap>');
	if(topic_lastpost_date != "") {
		d.write('<small>'+topic_lastpost_date+'<br /><a href="'+topic_lastpost_by_url+'">'+topic_lastpost_by+'</a></small>');
	} else {
		d.write('&nbsp;');
	}
	d.write('</td>');
	d.write('<td class="contentbox2_right"><img src="'+URL_IMG+'space.gif" width="1" height="1" border="0" alt="" title=""></td>');
	d.write('</tr>');
}

