//&reloadTemplate=T
var isRecom = false;
var daumId = '';
var articleId = '7IbU9';
//·Î±×ÀÎÆäÀÌÁö À̵¿
function chkLogin(type){
if(type == 1){
url="loginAgreeArticle?bbsId=K150&commentId=0&type=R&articleId=406226&$parameter";
}else{
url="loginDisagreeArticle?bbsId=K150&commentId=0&type=R&articleId=406226&$parameter";
}
top.location.href=url;
}
function readRecom1(type){
//·Î±×ÀÎüũ
if(daumId==''){chkLogin(type);return;}
//º»Àο©ºÎüũ
if(daumId==articleId){
alert("ÀÚ½ÅÀÇ ±Û¿¡´Â ÅõÇ¥ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù");
return false;
}
if(isRecom){
alert("ÀÌ¹Ì Æò°¡Çϼ̽À´Ï´Ù");
return;
}
var url = (type==1) ? 'agreeArticle':'disagreeArticle';
var ftype = (type==1) ? 'A':'D';
//·ÎµùÀ̹ÌÁö º¸¿©ÁÖ±â
UI.$('bt_rcmd').style.display = "none";
UI.$('bt_oppo').style.display = "none";
UI.$('ld_image').style.display = "";
document.getElementById('ld_image').innerHTML = "";
new UI.Ajax( { url:url, param:'bbsId=K150&feedback.bbsId=K150&feedback.articleId=406226&feedback.commentId=0&feedback.type='+ftype+'&articleId=406226', onComplete:readRecom2 } );
}
function readRecom2(req)
{
var result = eval('(' + req.responseText + ')');
//alert(result.status)
UI.$('ld_image').style.display = "none";
UI.$('bt_rcmd').style.display = "";
UI.$('bt_oppo').style.display = "";
//·ÎµùÀ̹ÌÁö »èÁ¦
if (result.status == '500'){
alert("ÀÌ¹Ì Âù¼º ȤÀº ¹Ý´ë¸¦ Çϼ̽À´Ï´Ù");
isRecom = true;
return false;
}else if(result.status == '600'){
alert("ÀÌ¹Ì ÃßõÇϼ̽À´Ï´Ù");
isRecom = true;
return false;
}else if (result.status == '700'){
alert("ÀÌ¹Ì ¹Ý´ëÇϼ̽À´Ï´Ù");
isRecom = true;
return false;
}else if (result.status == '300'){
alert("À߸øµÈ ¿À·ùÀÔ´Ï´Ù. ´Ù½ÃÇѹø ½ÃµµÇØ ÁÖ¼¼¿ä.");
return false;
}else if (result.status == '200'){
UI.$('bt_rcmd').innerHTML = "
"+result.agreeCount+"";
UI.$('bt_oppo').innerHTML = "
"+result.disagreeCount+"";
//UI.$('bt_result').innerHTML = result.agreeRate +"%";
//setSwfScore(result.agreeRate);
//alert("ÅõÇ¥°¡ ¼º°øÀûÀ¸·Î µÇ¾ú½À´Ï´Ù");
isRecom = true;
}else
return false;
//alert(req.responseText)
//status üũ
/* status
200 : ¼º°ø
500 : Áߺ¹ ¼±ÅÃÇÑ °æ¿ì
600:Âù¼º
700:¹Ý´ë
300 : ½ÇÆÐ
{status:"500", bbsId:"K152", articleId:"58367", agreeCount:"3", disagreeCount:"0", agreeRate:"100"}
*/
}
´ã¹è ²÷°í ½Í¾îÁö´Âµ¥..........