function board_load(xml, id) {
	if( id == undefined ) {
		id = "comment_div";
	}

	var board = '';
	var sum = '';
	var sort_CU = new Array();
	var sort_hash = new Array();
	var sort_ImgUrl = new Array();	//Ä«¿îÆ®°¡ ³ôÀº¼øÀ¸·Î Á¤·ÄÇÑ ¾ÆÀÌÄÜ url
	var sort_count = new Array(); //Ä«¿îÆ®¼ø°¡ ³ôÀº¼øÀ¸·Î Á¤·Ä
	var i = 0;
	var page = 0;

	$(xml).find('COUNT').each( function() {
		txt = parseInt($(this).text());
		sum = parseInt(sum + txt);
		
		var count_ = $(this).text();
		var url_ = $(this).parent().find('ICON_URL').text();

		sort_CU[i] = count_ + url_;
		i++;
	});
	var sort_ = sort_CU.sort(compare);
	for( i=0; i<9; i++) {
		sort_hash[i] = sort_[i].indexOf('http');
		sort_ImgUrl[i] = sort_[i].substring(sort_hash[i], sort_[i].length);
		sort_count[i] = sort_[i].substring(0, sort_hash[i]);
	}
	$(xml).find('PN').each( function() {
		var pn = $(this);
		var pageno = $(xml).find('pageno');

		if( pn.text() == pageno.text() ) {
			return page++;
		}
	});
	
	//°Ô½ÃÆÇ ¸¸µé±â
	var cmt_list = $(xml).find('Content[@id="grid.grade_cmt.list"]');

	board += '<div id="WZ_Reply">';
	board += '<h3 class="fl"><img src="http://image.daum-img.net/hanmail/s_img/comic5/ic_mark.gif" width="14" height="15" alt="" class="vm" name="reader_reply" />';
	board += 'µ¶ÀÚ ÆòÁ¡&´ñ±Û <span>(' + sum + '°ÇÀÇ ´ñ±ÛÀÌ ÀÖ½À´Ï´Ù.)</span></h3>';
	board += '<span class="fr top">';
	for( i=0; i<2; i++ ) {
		board += '<img src="' + sort_ImgUrl[i] + '" class="vm emo" /> ' + sort_count[i] + '¸í(';
		if( sum == 0 ) {
			board += '0%) ';
		}else {
			board += Math.round(sort_count[i] / sum * 100) + '%)';
		}

		if( i == 0 ) {
			board += ' | ';
		}
	}
	board += '</span><br class="clear" />';
	board += '<form onsubmit="insert_comment(document.getElementsByName(\'item_seq\'), document.getElementById(\'comment\').value); return false;" style="margin:0;">';
	board += '<table width="694" border="0" cellpadding="0" cellspacing="0" id="WZ_Reply_TT"><tr>';
	board += '<td colspan="9"><img src="http://image.daum-img.net/hanmail/s_img/comic5/bg03_1.gif" width="694" height="6" alt="" /></td></tr>';
	board += '<tr><td height="5"></td></tr><tr>';
	for(i=0; i<$(xml).find('COUNT').length; i++) {
		board += '<td width="78" class="tc"><img src="' + $(xml).find('ICON_URL:eq(' + i + ')').text() + '" width="19" height="18" alt="" /><br />';
		board += '<input type="radio" name="item_seq" value="' + $(xml).find('ITEM_SEQ:eq(' + i + ')').text() + '" /><br />';
		if(i == 0 ) { board += 'ÃßÃµ'; }
		else if( i == 1) { board += '±â»Û,À¯Äè'; }
		else if( i == 2) { board += 'Àç¹Ì,¿ô±ä'; }
		else if( i == 3) { board += '»ç¶û½º·±'; }
		else if( i == 4) { board += '½½ÇÂ'; }
		else if( i == 5) { board += '°¨µ¿ÀûÀÎ'; }
		else if( i == 6) { board += '¹Î¸ÁÇÑ'; }
		else if( i == 7) { board += 'È²´çÇÑ'; }
		else if( i == 8) { board += '½Ç¸Á'; }
		board += '</td>';
	}
	board += '</tr><tr><td colspan="9" class="tc"><img src="http://image.daum-img.net/hanmail/s_img/comic5/dotline_11.gif" width="665" height="1" alt="" class="dot" /></td></tr>';
	board += '<tr><td colspan="9" class="b tc write"><img src="http://image.daum-img.net/hanmail/s_img/comic5/ic_reply.gif" width="13" height="11" alt="" class="vm" />´ñ±Û¾²±â';
	if( $(xml).find('userid').text() != "") {
		board += ' <input type="text" class="vm write" id="comment" value="ÀúÀÛ±Ç, ÀÎ°ÝÀ» Ä§ÇØÇÏ´Â ÀÇ°ßÀº »çÀüÅëº¸ ¾øÀÌ »èÁ¦µË´Ï´Ù." onfocus="this.value = \'\';"/>';
	}else {
		board += ' <input type="text" class="vm write" id="comment" value="±ÛÀ» µî·ÏÇÏ±â À§ÇØ¼­´Â ·Î±×ÀÎÀ» ÇØ¾ßÇÕ´Ï´Ù." readonly="true" onclick="goLogin()" />';
	}
	board += '<img src="http://image.daum-img.net/hanmail/s_img/comic5/b_register.gif" width="34" height="21" alt="µî·Ï" class="vm cursor" onclick="insert_comment(document.getElementsByName(\'item_seq\'), document.getElementById(\'comment\').value)" style="margin-left:3px;" /></td></tr>';
	board += '<tr><td colspan="9"><img src="http://image.daum-img.net/hanmail/s_img/comic5/bg03_4.gif" width="694" height="11" alt="" class="bottom" /></td></tr>';
	board += '</table></form>';
	if( sum != 0) {	//±ÛÀÌ ÀÖÀ» ¶§
		board += '<table width="694" border="0" cellpadding="0" cellspacing="0" id="WZ_Reply_BT">';
		board += '<tr><td width="13"></td><td width="665"><table width="665" border="0" cellpadding="0" cellspacing="0">';

		cmt_list.find('Row').each( function() {
			var item_seq = parseInt($(this).find("ITEM_SEQ").text()) + 1;
			var icon_url = 'http://image.daum-img.net/hanmail/s_img/comic4/webz/e_mo' + item_seq + '.gif';

			if( $(this).find("PN").text() == $(xml).find("pageno").text() ) {	//pageno¿Í PNÀÌ °°Àº °Í¸¸ »Ñ·ÁÁÜ
				board += '<tr><td class="tr emo"><img src="' + icon_url + '" border="0" width="19" height="19" /><br />';	//±Û¾´ÀÌ°¡ ¼±ÅÃÇÑ ¾ÆÀÌÄÜ º¸¿©ÁÖ±â
				board += '<td class="tc nick">' + $(this).find("NICK").text().replace(/\</g, "\&lt;") + '´Ô</td>';
				board += '<td class="reply">';
				if( $(this).find("DELETED").text() == 'T' ) {
					board += '<span style="color:#8A8888;">º»ÀÎÀÌ »èÁ¦ÇÑ ±ÛÀÔ´Ï´Ù.</span></td>';
				}else if( $(this).find("DELETED").text() == 'F' ) {
					board += $(this).find("COMMENT").text().replace(/\</g, "\&lt;");
				}else {
					board += '<span style="color:#8A8888;">¿î¿µÀÚ¿¡ ÀÇÇØ »èÁ¦µÈ ±ÛÀÔ´Ï´Ù.</span></td>';
				}
				board += '<td class="tc date">[' + $(this).find("REGDTTM").text() + ']&nbsp;';
				if( $(this).find("IS_WRITER").text() == 'T' && $(this).find("DELETED").text() == 'F') {	//»èÁ¦ ¾ÆÀÌÄÜ Ç¥½Ã
					board += '<a href="javascript:delete_comment(' + $(this).find("SEQ").text() + ')"><img src="http://image.comic.daum-img.net/event/comics_0708/poptoon/delete.gif" alt="»èÁ¦"/></a>';
				}
				board += '</td><tr><td colspan="4"><img src="http://image.daum-img.net/hanmail/s_img/comic5/dotline_12.gif" width="665" height="1" alt="" /></td></tr>';
				board += '</td></tr>';
			}
			i++;
		});
		board += '</table></td><td width="16"></td></tr>';
		board += '<tr><td colspan="3">';

		//ÆäÀÌÁö
		board += '<div id="Daum_paging" style="text-align:center; padding-top:12px;"><span id="paging_left">';
		if( $(xml).find('PN:eq(0)').text() == '1' ) {
			board += '<img src="http://image.daum-img.net/hanmail/s_img/comic5/bt_pre.gif" width="13" height="13" onmouseover="comic_paging_rollover(this, \'bt_pre\', \'on\')" onmouseout="comic_paging_rollover(this, \'bt_pre\', \'out\')" alt="ÀÌÀü" /></span>'; //¿ÞÂÊ È­»ìÇ¥
		}else {
			board += '<a href="javascript:load_comment(' + (parseInt($(xml).find('PN:eq(0)').text()) - 1) + ', \''+id+'\')"><img src="http://image.daum-img.net/hanmail/s_img/comic5/bt_pre.gif" width="13" height="13" onmouseover="comic_paging_rollover(this, \'bt_pre\', \'on\')" onmouseout="comic_paging_rollover(this, \'bt_pre\', \'out\')" alt="ÀÌÀü" /></a></span>';
		}
		//ÆäÀÌÁö ¹øÈ£ »Ñ·ÁÁÖ±â
		board += '<span id="num">';
		for(i=$(xml).find('PN:eq(0)').text(); i<$(xml).find('pageno').text(); i++) {
			board += '<a href="javascript:load_comment(' + i + ', \''+id+'\')">' + i + '&nbsp;</a>';
		}
		if( $(xml).find('PN:last').text() == $(xml).find('pageno').text() ) {
			board += '<b class="last">' + i + '&nbsp;</b>';
		}else {
			board += '<b>' + i + '&nbsp;</b>';
		}
		for(i=parseInt($(xml).find('pageno').text()) + 1; i<=$(xml).find('PN:last').text(); i++) {
			if($(xml).find('PN:last').text() == i) {
				board += '<a href="javascript:load_comment(' + i + ', \''+id+'\')" class="last">' + i + '&nbsp;</a>';
			}else {
				board += '<a href="javascript:load_comment(' + i + ', \''+id+'\')">' + i + '&nbsp;</a>';
			} 
		}

		board += '</span><span id="paging_right">';
		if( $(xml).find('SEQ:last').text() < 10) {
			board += '<img src="http://image.daum-img.net/hanmail/s_img/comic5/bt_next.gif" width="13" height="13" onmouseover="comic_paging_rollover(this, \'bt_next\', \'on\')" onmouseout="comic_paging_rollover(this, \'bt_next\', \'out\')" alt="´ÙÀ½" />';
		}else {
			board += '<a href="javascript:load_comment(' + (parseInt($(xml).find('PN:last').text()) + 1) + ', \''+id+'\')"><img src="http://image.daum-img.net/hanmail/s_img/comic5/bt_next.gif" width="13" height="13" onmouseover="comic_paging_rollover(this, \'bt_next\', \'on\')" onmouseout="comic_paging_rollover(this, \'bt_next\', \'out\')" alt="´ÙÀ½" /></a>';
		}

		board += '</span></div></td></tr>';
		board += '<tr><td colspan="3"><img src="http://image.daum-img.net/hanmail/s_img/comic5/bg04_3.gif" width="694" height="3" alt="" class="b" /></td></tr></table>';
	}else {	//±ÛÀÌ ¾øÀ» ¶§
		board += '<table width="694" border="0" cellpadding="0" cellspacing="0" id="WZ_Reply_BT" style="margin-bottom:20px;">';
		board += '<tr><td class="tc">µî·ÏµÈ ´ñ±ÛÀÌ ¾ø½À´Ï´Ù.</td></tr>';
		board += '<tr><td><img src="http://image.daum-img.net/hanmail/s_img/comic5/bg04_3.gif" width="694" height="3" alt="" /></td></tr>';
		board += '</table>'
	}
	board += '</div>';
	$("#"+id).html(board);
}

 
//Á¤·Ä
function compare(a, b) {
	var a1 = a.indexOf('http');
	var b1 = b.indexOf('http');
	var aSum = a.substring(0, a1);
	var bSum = b.substring(0, b1);

	return bSum - aSum;
}

//´ñ±Û¾²±â
function insert_comment(items, cmt) {
	var bytes = 0;
	var item_seq = '';

	if(!login) {
		goLogin();
		return;
	}

	for(i=0; i<cmt.length; i++){
		var ch = cmt.charAt(i);
	
		if( escape(ch).length > 4){
			bytes += 2;
		}else{
			bytes += 1;
		}
	}
	for(idx = 0; idx < items.length; idx++) {
		if(items[idx].checked) {
			item_seq = items[idx].value;
			break;
		}
	}

	if( bytes > 100 ) {
		alert('ÇÑ±Û50ÀÚ, ¿µ¹®100ÀÚ¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		return;
	}else if(item_seq == '') {
		alert("ÀÌ¸ðÆ¼ÄÜÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		return;
	}else if(cmt == '') {
		alert("³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		return;
	}else {
		insert_cmt(item_seq, cmt);
	}
}

function codeMessage(code, rtnUrl) { 
	switch(code) {
		case '100' :
			alert("¸ÕÀú loginÇØ ÁÖ¼¼¿ä.");
			break;
		case '200':
			alert("°Ô½Ã¹°À» ÀúÀåÇÏ¿´½À´Ï´Ù.");
			break;
		case '201':
			alert("³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			break;
		case '300':
			alert("¼±ÅÃÇÏ½Å °Ô½Ã¹°ÀÌ »èÁ¦µÇ¾ú½À´Ï´Ù.");
			break;
		case '301':
			alert("Á¸ÀçÇÏÁö ¾Ê´Â °Ô½Ã¹°ÀÌ°Å³ª, °Ô½Ã¹°ÀÇ ÀÛ¼ºÀÚ°¡ ¾Æ´Õ´Ï´Ù.");
			break; 
		case '401':
			location.href = rtnUrl + encodeURIComponent(location.href);
			break;
		case '500':
			alert("ÀÏ½ÃÀûÀÎ ½Ã½ºÅÛ Àå¾ÖÀÔ´Ï´Ù. Àá½ÃÈÄ ´Ù½Ã ÀÌ¿ëÇØ ÁÖ¼¼¿ä.");
			break;
		case '-400':
			alert('³»¿ë Áß ±ÝÄ¢¾î°¡ Æ÷ÇÔµÇ¾î ÀÖ½À´Ï´Ù. ±ÝÄ¢¾î¸¦ Á¦¿ÜÇÏ°í ÀÇ°ßÀÛ¼ºÀ» ÇØÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.');
			break;
		case '-500':
			alert('°í°´´Ô²²¼­´Â 3¹øÀÇ °æ°í¸¦ ¹ÞÀ¸¼Ì½À´Ï´Ù.Daum¸¸È­ ¿î¿µÁ¤Ã¥¿¡ µû¶ó ±Û¾²±â¸¦ ÀÌ¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.');
			break;
	}
} 

function rankBoard_load(xml, name) {
	var cmt_list = $(xml).find("Content[@id='grid.grade_cmt.list.size']");
	var cmt_stat = $(xml).find("Content[@id='grid.grade_cmt.stat']");

	board = '<table width="292" border="0" cellspacing="0" cellpadding="0" style="clear:both; margin:20px 0 10px 0;" id="cmt1">';
	cmt_list.find("Row").each( function() {
		var list = $(this).find("ITEM_SEQ").text();
		var nick = $(this).find("NICK").text().replace(/\</g, "\&lt;");
		var comment = $(this).find("COMMENT").text().replace(/\</g, "\&lt;");
		var deleted = $(this).find("DELETED").text();
		var regdttm = $(this).find("REGDTTM").text();
		var is_writer = $(this).find("IS_WRITER").text();
		var grid = $(this).find("GRID").text();
		var seq = $(this).find("SEQ").text();

		cmt_stat.find("Row").each( function() {
			if( $(this).find("ITEM_SEQ").text() == list ) {
				board += '<tr><td width="25" height="30">' + "<img src='" + $(this).find("ICON_URL").text() + "' />" + "</td>";
				board += '<td width="59" height="30" style="color:#33999b;">';
				if( nick.length > 4) {
					board += nick.substring(0, 3) + "..";
				}else {
					board += nick;
				}
				board += '</td><td width="137" height="30">';
				if( deleted == "T" ) {
					board += '<span style="color:#8A8888;">º»ÀÎÀÌ »èÁ¦ÇÑ ±ÛÀÔ´Ï´Ù.</span></td>';
				}else if( deleted == "F"){
					if( comment.length > 14) {
						board += comment.substring(0, 11) + '..</td>';
					}else {
						board += comment + '</td>';
					}
				}else {
					board += '<span style="color:#8A8888;">¿î¿µÀÚ¿¡ ÀÇÇØ »èÁ¦µÈ ±ÛÀÔ´Ï´Ù.</span></td>';
				}
				board += '<td width="71" height="30">[' + regdttm + ']';
				if( is_writer == 'T' && deleted == 'F') {
					board += '<a href="javascript:delete_comment(\'' + grid + '\', ' + seq + ', \'' + name + '\')"><img src="http://image.comic.daum-img.net/event/comics_0708/poptoon/delete.gif" alt="»èÁ¦"/></a>';
				}
				board += '</td></tr>';
				board += '<tr><td colspan="4" height="1" width="292"><img src="http://image.comic.daum-img.net/comic5/smallDotBar.gif" width="292" height="1" /></td></tr>';
			}
		});
	});
	board += '</table>';

	if( name == "comment_div") {
		$("#comment_div").html(board);
	}else {
		$("#comment_div2").html(board);
	}
}

function note_load(xml, id) {
	if( id == undefined ) {
		id = "comment_div";
	}
	var i = '1';
	var echo = $(xml).find("Content[@id='grid.echo']");
	var best = $(xml).find("Content[@id='grid.note.best']");
	var list = $(xml).find("Content[@id='grid.note.list']");

	var note = '<div id="GOODSCENCE" style="margin-bottom:20px;">';
	note += '<h3 class="fl">¸íÀå¸é/¸í´ë»ç <span style="font-weight:normal;">(' + $(xml).find("COUNT").text() + '¸í Âü¿©)</span></h3><br class="clear" />';
	note += '<form onsubmit="insertNote(document.getElementById(\'name\').value, document.getElementById(\'comment\').value); return false;">';
	note += '<table id="GOODSCENCE_WRITE" width="694" border="0" cellpadding="0" cellspacing="0">';
	note += '<tr><td colspan="4"><img src="http://image.daum-img.net/hanmail/s_img/comic5/bg03_1.gif" width="694" height="6" alt="" /></td></tr>';
	note += '<tr>';
	if( echo.find("userid").text() != '' ) {
		note += '<td width="410" class="textcenter" style="height:35px;"><input type="text" class="l" id="comment" value="" stle="font-size:12px; padding:3px 0 0 3px; color:#666666;" /></td>';
		note += '<td width="72" class="green b"><img src="http://image.daum-img.net/hanmail/s_img/comic5/ic_character.gif" width="9" height="12" alt="" class="middle" style="margin:0 2px 4px 0;" />Ä³¸¯ÅÍ¸í</td>';
		note += '<td width="166" style=""><input type="text" class="r" id="name" value="" stle="font-size:12px; padding:3px 0 0 3px; color:#666666;" /></td>';
	}else {
		note += '<td width="410" class="textcenter" style="height:35px;"><input type="text" class="l" id="comment" value="±ÛÀ» µî·ÏÇÏ±â À§ÇØ¼­´Â ·Î±×ÀÎÀ» ÇØ¾ßÇÕ´Ï´Ù." readonly="true" stle="font-size:12px; padding:3px 0 0 3px; color:#666666;" onclick="goLogin()" /></td>';
		note += '<td width="72" class="green b"><img src="http://image.daum-img.net/hanmail/s_img/comic5/ic_character.gif" width="9" height="12" alt="" class="middle" style="margin:0 2px 4px 0;" />Ä³¸¯ÅÍ¸í</td>';
		note += '<td width="166" style=""><input type="text" class="r" id="name" value="" readonly="true" stle="font-size:12px; padding:3px 0 0 3px; color:#666666;" onclick="goLogin()" /></td>';
	}
	note += '<td width="46"><img src="http://image.daum-img.net/hanmail/s_img/comic5/b_register.gif" width="34" height="21" alt="µî·Ï" onclick="insertNote(document.getElementById(\'name\').value, document.getElementById(\'comment\').value)" style="cursor:pointer;" /></td></tr>';
	note += '<tr><td colspan="4"><img src="http://image.daum-img.net/hanmail/s_img/comic5/bg03_4.gif" width="694" height="11" alt="" /></td></tr>';
	note += '</table>';
	note += '</form>';


	if( best.find("Row").length != '0' ) {
		note += '<table id="GOODSCENCE_TOPTHREE" width="694" border="0" cellpadding="0" cellspacing="0">';
		note += '<tr><td style="height:6px;"></td></tr>';
		best.find("Row").each( function() {
			note += '<tr><td width="34" class="rank"><img src="http://image.daum-img.net/hanmail/s_img/comic5/ic_' + i + 'm.gif" width="13" height="13" alt="' + i + 'À§" class="middle" style="margin-bottom:3px;" /></td>';
			if( $(this).find("DELETED").text() == 'T') {
				note += '<td width="391" class="content">º»ÀÎÀÌ »èÁ¦ÇÑ ±ÛÀÔ´Ï´Ù.(' + $(this).find('NAME').text() + ')' + '</td>';
			}else if( $(this).find("DELETED").text() == 'F' ) {
				note += '<td width="391" class="content">' + $(this).find('COMMENT').text() + '(' + $(this).find('NAME').text() + ')' + '</td>';
			}else {
				note += '<td width="391" class="content">¿î¿µÀÚ¿¡ ÀÇÇØ »èÁ¦µÈ ±ÛÀÔ´Ï´Ù.(' + $(this).find('NAME').text() + ')' + '</td>';
			}
			note += '<td width="1" class="bar">|</td>';
			note += '<td width="155" class="textcenter green nick">' + $(this).find('NICK').text() + '´Ô <span class="date">[' + $(this).find("REGDTTM").text() + ']</span></td>';
			note += '<td width="1" class="bar">|</td>';
			note += '<td width="112" class="rec"><p><img src="http://image.daum-img.net/hanmail/s_img/comic5/ic_good.gif" width="11" height="16" alt="" class="middle" style="margin-bottom:3px;" />(' + $(this).find("RECCNT").text() + ')';
			note += '<a href="javascript:recommendNote(' + $(this).find("SEQ").text() + ', \''  + $(this).find("IS_WRITER").text() + '\')"><img src="http://image.daum-img.net/hanmail/s_img/comic5/b_recom.gif" width="36" height="16" alt="ÃßÃµ" onclick="" class="middle" style="cursor:pointer; margin-bottom:3px;" /></a>';
			if( $(this).find("IS_WRITER").text() == 'T' || $(this).find("IS_ADMIN").text() == 'T') {
				note += '<a href="javascript:deleteNote(' + $(this).find("SEQ").text() + ')"><img src="http://image.comic.daum-img.net/event/comics_0708/poptoon/delete.gif" alt="»èÁ¦"/></a>';
			}
			note += '</p></td></tr>';
			note += '<tr><td colspan="6" class="dotline"></td></tr>';
			i++;
		});
		note += '<tr><td style="height:9px;"></td></tr>';
		note += '<tr><td colspan="6" class="bottom"></td></tr>';
		note += '</table>';

		if( list.find("Row") ) {
			note += '<table id="GOODSCENCE_LIST" width="694" border="0" cellpadding="0" cellspacing="0">';
			note += '<tr><td style="height:7px;"></td></tr>';
			list.find("Row").each( function() {
				if( $(this).find("DELETED").text() == 'T' ) {
					note += '<tr><td width="419" class="content"><p>º»ÀÎÀÌ »èÁ¦ÇÑ ±ÛÀÔ´Ï´Ù.</p></td>';
				}else if( $(this).find("DELETED").text() == 'F' ) {
					note += '<tr><td width="419" class="content"><p>' + $(this).find("COMMENT").text() + '</p></td>';
				}else {
					note += '<tr><td width="419" class="content"><p>¿î¿µÀÚ¿¡ ÀÇÇØ »èÁ¦µÈ ±ÛÀÔ´Ï´Ù.</p></td>';
				}
				note += '<td width="1" class="bar">|</td>';
				note += '<td width="162" class="textcenter green nick">' + $(this).find("NICK").text() + '´Ô <span class="date">[' + $(this).find("REGDTTM").text() + ']</span></td>';
				note += '<td width="1" class="bar">|</td>';
				note += '<td width="111" class="rec"><p>';
				note += '<img src="http://image.daum-img.net/hanmail/s_img/comic5/ic_good.gif" width="11" height="16" alt="" class="middle" style="margin-bottom:3px;" />(' + $(this).find("RECCNT").text() + ')';
				note += '<a href="javascript:recommendNote(' + $(this).find("SEQ").text() + ', \'' + $(this).find("IS_WRITER").text() + '\')"><img src="http://image.daum-img.net/hanmail/s_img/comic5/b_recom.gif" width="36" height="16" alt="ÃßÃµ" onclick="" class="middle" style="cursor:pointer; margin-bottom:3px;" /></a>';
				if( $(this).find("IS_WRITER").text() == 'T' || $(this).find("IS_ADMIN").text() == 'T' ) {
					note += ' <a href="javascript:deleteNote(' + $(this).find("SEQ").text() + ')"><img src="http://image.comic.daum-img.net/event/comics_0708/poptoon/delete.gif" alt="»èÁ¦"/></a>';
				}
				note += '</p></td></tr>';
				note += '<tr><td colspan="5" class="textcenter"><img src="http://image.daum-img.net/hanmail/s_img/comic5/dotline_13.gif" width="665" height="1" alt="" /></td></tr>';
			});
			note += '</table>';
			//ÆäÀÌÁö
			var firstpage = ($(xml).find("pageno").text() - 1) / 10 * 10 + 1;
			var lastpage = $(xml).find("pageno").text() / 10 * 10;
			var totalpage = Math.ceil($(xml).find('COUNT').text() / $(xml).find("lpp").text());
			var currno = lastpage - 1;

			note += '<div id="Daum_paging"><span id="paging_left">';
			note += '<a href="javascript:loadNote(1)" style="margin-right:4px;"><img src="http://image.daum-img.net/hanmail/s_img/comic5/bt_recent.gif" width="13" height="13" onmouseover="comic_paging_rollover(this, \'bt_recent\', \'on\')" onmouseout="comic_paging_rollover(this, \'bt_recent\', \'out\')" alt="ÃÖ½Å" /></a>';
			if( $(xml).find("pageno").text() < '1') {
				note += '<a href="javascript:loadNote(' + (firstpage-1) + ')"><img src="http://image.daum-img.net/hanmail/s_img/comic5/bt_pre.gif" width="13" height="13" onmouseover="comic_paging_rollover(this, \'bt_pre\', \'on\')" onmouseout="comic_paging_rollover(this, \'bt_pre\', \'out\')" alt="ÀÌÀü" /></a>';
			}else {
				note += '<img src="http://image.daum-img.net/hanmail/s_img/comic5/bt_pre.gif" width="13" height="13" onmouseover="comic_paging_rollover(this, \'bt_pre\', \'on\')" onmouseout="comic_paging_rollover(this, \'bt_pre\', \'out\')" alt="ÀÌÀü" />';
			}
			note += '</span><span id="num">';
			for( i=1; i<=totalpage; i++ ) {
				if( i == totalpage ) {
					if( i == $(xml).find("pageno").text() ) {
						note += '<b class="last">' + i + ' </b>';
					}else {
						note += '<a href="javascript:loadNote(' + i + ')" class="last">' + i + ' </a>';
					}
				}else {
					if( i == $(xml).find("pageno").text() ) {
						note += '<b>' + i + ' </b>';
					}else {
						note += '<a href="javascript:loadNote(' + i + ')">' + i + ' </a>';
					}
				}
			}
			note += '</span>';
	 
			note += '<span id="paging_right">';
			if( lastpage < totalpage ) {
				note += '<a href="javascript:loadNote(' + (lastpage + 1) + ')"><img src="http://image.daum-img.net/hanmail/s_img/comic5/bt_next.gif" width="13" height="13" onmouseover="comic_paging_rollover(this, \'bt_next\', \'on\')" onmouseout="comic_paging_rollover(this, \'bt_next\', \'out\')" alt="´ÙÀ½" /></a>';
			}else {
				note += '<img src="http://image.daum-img.net/hanmail/s_img/comic5/bt_next.gif" width="13" height="13" onmouseover="comic_paging_rollover(this, \'bt_next\', \'on\')" onmouseout="comic_paging_rollover(this, \'bt_next\', \'out\')" alt="´ÙÀ½" />';
			}
			note += ' <a href="javascript:loadNote(' + totalpage + ')"><img src="http://image.daum-img.net/hanmail/s_img/comic5/bt_last.gif" width="13" height="13" onmouseover="comic_paging_rollover(this, \'bt_last\', \'on\')" onmouseout="comic_paging_rollover(this, \'bt_last\', \'out\')" alt="³¡" /></a>';

			note += '</span></div>';
		}
	}else {
		note += '<table id="GOODSCENCE_TOPTHREE" width="694" border="0" cellpadding="0" cellspacing="0">';
		note += '<tr><td width="694" class="textcenter">µî·ÏµÈ ¸íÀå¸é/¸í´ë»ç°¡ ¾ø½À´Ï´Ù.</td></tr>';
		note += '<tr><td width="694" class="bottom"></td></tr>';
		note += '</table>';
	}
	note += '</div>';

	$("#"+id).html(note);
}

function readcommentlist() {
}