function discussionReply (location, returnUrl, parentId, linkTo, linkId) {
	location = $(location);
	
	location.removeClassName('forumFooter');
	location.addClassName('entryBox');
	location.addClassName('forumFooterColors');
	
	replyForm = '<form action="/index.php" method="post">';
	replyForm = replyForm + '<input type="hidden" name="p" value="forums" />';
	replyForm = replyForm + '<input type="hidden" name="h" value="c" />';
	replyForm = replyForm + '<input type="hidden" name="action" value="post" />';
	if(parentId != null && parentId != '') {
		replyForm = replyForm + '<input type="hidden" name="child_of" value="'+parentId+'" />';
	}
	if(linkTo != null && linkTo != '') {
		replyForm = replyForm + '<input type="hidden" name="link_to" value="'+linkTo+'" />';
	}
	if(linkId != null && linkId != '') {
		replyForm = replyForm + '<input type="hidden" name="link_id" value="'+linkId+'" />';
	}
	if(returnUrl != null && returnUrl != '') {
		replyForm = replyForm + '<input type="hidden" name="source" value="'+returnUrl+'" />';
	}
	replyForm = replyForm + '<table border="0" cellpadding="0" cellspacing="0">';
	replyForm = replyForm + '<tr>';
	replyForm = replyForm + '<td valign="top">Subject&nbsp;</td>';
	replyForm = replyForm + '<td valign="top"><input type="text" value="" maxlength="255" name="form[subject]" /></td>';
	replyForm = replyForm + '</tr><tr>';
	replyForm = replyForm + '<td valign="top">Message&nbsp;</td>';
	replyForm = replyForm + '<td valign="top"><textarea cols="70" rows="6" name="form[message]"></textarea></td>';
	replyForm = replyForm + '</tr><tr>';
	replyForm = replyForm + '<td></td>';
	replyForm = replyForm + '<td style="text-align: center;"><input type="submit" value="Save" name="submit" style="width: 75px; font-weight: bold;"/>';
	replyForm = replyForm + '</tr>';
	replyForm = replyForm + '</table>';
	replyForm = replyForm + '</form>';
	
	location.update(replyForm);
}
