Index: wp-includes/js/comment-reply.js
===================================================================
--- wp-includes/js/comment-reply.js	(revision 0)
+++ wp-includes/js/comment-reply.js	(revision 0)
@@ -0,0 +1,37 @@
+function moveAddCommentForm(theId, threadId) {
+	var addComment = document.getElementById("respond");
+	var comment = document.getElementById(theId);
+	addComment.parentNode.removeChild(addComment);
+
+	comment.appendChild(addComment);
+//	if(comment.className.indexOf("alt")>-1) {
+//		addComment.className = addComment.className.replace(" alt", "");					
+//	} else {
+//		addComment.className += " alt";
+//	}
+	var replyId = document.getElementById("comment-parent");
+	replyId.value = threadId;
+	var reRootElement = document.getElementById("cancel-comment-reply");
+	reRootElement.style.display = "block";
+	var aTags = comment.getElementsByTagName("A");
+	var anc = aTags.item(0).id;
+	//document.location.href = "#"+anc;
+	document.getElementById("comment").focus();
+}
+
+function cancelCommentReply() {
+	var addComment = document.getElementById("respond");			
+	var reRootElement = document.getElementById("cancel-comment-reply");
+	reRootElement.style.display = "none";
+	var content = document.getElementById("content-main");
+	if( !content )
+		content = document.getElementById("content");
+	if( content ) {
+		addComment.parentNode.removeChild(addComment);
+		content.appendChild(addComment);
+	}
+//	addComment.className = addComment.className.replace(" alt", "");
+	document.location.href = "#respond";
+	document.getElementById("comment").focus();				
+	document.getElementById("comment-parent").value = "0";
+}
\ No newline at end of file
Index: wp-includes/comment-template.php
===================================================================
--- wp-includes/comment-template.php	(revision 8760)
+++ wp-includes/comment-template.php	(working copy)
@@ -837,4 +837,85 @@
 	echo '</a>';
 }
 
+function comment_reply_link($comment = null, $post = null, $add_below = 'comment') {
+	global $user_ID;
+
+	$comment = get_comment($comment);
+	$post = get_post($post);
+
+	if ( 'open' != $post->comment_status )
+		return;
+
+	$link = '';
+
+	if ( get_option('comment_registration') && !$user_ID )
+		$link = '<a href="' . site_url('wp-login.php?redirect_to=' . get_permalink()) . '">' . __('Log in to Reply') . '</a>';
+	else 
+		$link = "<a href='#' onclick='moveAddCommentForm(\"$add_below-$comment->comment_ID\", $comment->comment_ID); return false;'>" . __('Reply to this comment') . '</a>';
+
+	return $link;
+}
+
+class Walker_Comment extends Walker {
+	var $tree_type = 'comment';
+	var $db_fields = array ('parent' => 'comment_parent', 'id' => 'comment_ID');
+
+	function start_lvl(&$output, $depth, $args) {
+		$indent = str_repeat("\t", $depth);
+		$output .= "$indent<ul class='children'>\n";
+	}
+
+	function end_lvl(&$output, $depth, $args) {
+		$indent = str_repeat("\t", $depth);
+		$output .= "$indent</ul>\n";
+	}
+
+	function start_el(&$output, $comment, $depth, $args) {
+		$GLOBALS['comment'] = $comment;
+		extract($args);
+
+		$output .= "<li " . get_comment_class() . " id=\"comment-" . get_comment_ID() . '">' . "\n";
+		$output .= '<div class="comment-author vcard">' . "\n";
+		$output .= get_avatar( $comment, 32 ) . "\n";
+		$output .= sprintf(__('<cite>%s</cite> Says:'), get_comment_author_link()) . "\n";
+		$output .= '</div>' . "\n";
+
+		if ($comment->comment_approved == '0')
+			$output .= '<em>'  . __('Your comment is awaiting moderation.') . '</em>' . "\n";
+		$output .= '<br />' . "\n";
+
+		$output .= '<div class="comment-meta commentmetadata"><a href="#comment-' . get_comment_ID() . '" title="">' . sprintf(__('%1$s at %2$s'), get_comment_date('F jS, Y'),  get_comment_time()) . '</a>' . edit_comment_link('edit','&nbsp;&nbsp;','', false) . '</div>' . "\n";
+
+		$output .= apply_filters('comment_text', get_comment_text());
+
+		$output .= "<div class='reply'>";
+		$output .= comment_reply_link();
+		$output .= '</div>';
+	}
+
+	function end_el(&$output, $comment, $depth, $args) {
+		$output .= "</li>\n";
+	}
+
+}
+
+function wp_list_comments(&$comments, $args = array() ) {
+	$defaults = array('walker' => '', 'depth' => 3, 'echo' => true);
+
+	$r = wp_parse_args( $args, $defaults );
+
+	extract( $r );
+
+	if ( empty($walker) )
+		$walker = new Walker_Comment;
+
+	$output = '';
+	$output .= $walker->walk($comments, $depth, $r);
+
+	if ( $echo )
+		echo $output;
+	else
+		return $output;
+}
+
 ?>
\ No newline at end of file
Index: wp-includes/link-template.php
===================================================================
--- wp-includes/link-template.php	(revision 8760)
+++ wp-includes/link-template.php	(working copy)
@@ -531,7 +531,7 @@
 	return apply_filters( 'get_edit_comment_link', $location );
 }
 
-function edit_comment_link( $link = 'Edit This', $before = '', $after = '' ) {
+function edit_comment_link( $link = 'Edit This', $before = '', $after = '', $echo = true ) {
 	global $comment, $post;
 
 	if ( $post->post_type == 'attachment' ) {
@@ -544,7 +544,11 @@
 	}
 
 	$link = '<a href="' . get_edit_comment_link( $comment->comment_ID ) . '" title="' . __( 'Edit comment' ) . '">' . $link . '</a>';
-	echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID ) . $after;
+	$link = $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID ) . $after;
+	if ( $echo )
+		echo $link;
+	else
+		return $link;
 }
 
 function get_edit_bookmark_link( $link = 0 ) {
Index: wp-includes/script-loader.php
===================================================================
--- wp-includes/script-loader.php	(revision 8760)
+++ wp-includes/script-loader.php	(working copy)
@@ -107,6 +107,8 @@
 	$scripts->add( 'jquery-ui-resizable', '/wp-includes/js/jquery/ui.resizable.js', array('jquery-ui-core'), '1.5.2' );
 	$scripts->add( 'jquery-ui-dialog', '/wp-includes/js/jquery/ui.dialog.js', array('jquery-ui-resizable', 'jquery-ui-draggable'), '1.5.2' );
 
+	$scripts->add( 'comment-reply', '/wp-includes/js/comment-reply.js', false, '20080828');
+
 	if ( is_admin() ) {
 		$scripts->add( 'ajaxcat', '/wp-admin/js/cat.js', array( 'wp-lists' ), '20071101' );
 		$scripts->localize( 'ajaxcat', 'catL10n', array(
Index: wp-content/themes/default/comments.php
===================================================================
--- wp-content/themes/default/comments.php	(revision 8760)
+++ wp-content/themes/default/comments.php	(working copy)
@@ -23,30 +23,7 @@
 	<h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to &#8220;<?php the_title(); ?>&#8221;</h3>
 
 	<ol class="commentlist">
-
-	<?php foreach ($comments as $comment) : ?>
-
-		<li <?php comment_class($oddcomment) ?> id="comment-<?php comment_ID() ?>">
-			<?php echo get_avatar( $comment, 32 ); ?>
-			<cite><?php comment_author_link() ?></cite> Says:
-			<?php if ($comment->comment_approved == '0') : ?>
-			<em>Your comment is awaiting moderation.</em>
-			<?php endif; ?>
-			<br />
-
-			<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('edit','&nbsp;&nbsp;',''); ?></small>
-
-			<?php comment_text() ?>
-
-		</li>
-
-	<?php
-		/* Changes every other comment to a different class */
-		$oddcomment = ( empty( $oddcomment ) ) ? 'alt' : '';
-	?>
-
-	<?php endforeach; /* end for each comment */ ?>
-
+	<?php wp_list_comments($comments); ?>
 	</ol>
 
  <?php else : // this is displayed if there are no comments so far ?>
@@ -64,8 +41,13 @@
 
 <?php if ('open' == $post->comment_status) : ?>
 
-<h3 id="respond">Leave a Reply</h3>
+<div id="respond">
 
+<div id="cancel-comment-reply" style="display: none;">
+	<small><a href="#" onclick="cancelCommentReply(); return false;"><?php _e('Click here to cancel "reply".') ?></a></small>
+</div>
+<h3>Leave a Reply</h3>
+
 <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
 <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>
 <?php else : ?>
@@ -95,10 +77,12 @@
 
 <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
+<input type="hidden" name="comment_parent" id="comment-parent" value="0" />
 </p>
 <?php do_action('comment_form', $post->ID); ?>
 
 </form>
+</div>
 
 <?php endif; // If registration required and not logged in ?>
 
Index: wp-content/themes/default/header.php
===================================================================
--- wp-content/themes/default/header.php	(revision 8760)
+++ wp-content/themes/default/header.php	(working copy)
@@ -24,6 +24,8 @@
 
 </style>
 
+<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
+
 <?php wp_head(); ?>
 </head>
 <body>

