// request 객체 생성
var req = null;
function create_request() {
    var request = null;
    try {
        request = new XMLHttpRequest();
    } catch (trymicrosoft) {
        try {
            request = new ActiveXObject("Msxml12.XMLHTTP");
        } catch (othermicrosoft) {
            try {
                request = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (failed) {
                request = null;
            }
        }
    }
    if (request == null)
        alert("Error creating request object!");
    else
        return request;
}

// 트랙백을 사용한다면 토큰을 실시간으로 생성
var trackback_url = "";
function trackback_send_server(url) {
    req = create_request();
    trackback_url = url;
    req.onreadystatechange = function() {
        if (req.readyState == 4) {
            if (req.status == 200) {
                var token = req.responseText;
                prompt("아래 주소를 복사하세요. 이 주소는 스팸을 막기 위하여 한번만 사용 가능합니다.", trackback_url+"/"+token);
                trackback_url = "";
            }
        }
    }
    req.open("POST", g4_path+'/'+g4_bbs+'/'+'tb_token.php', true);
    //req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 
    req.send(null);
}

// ------------------------------------------------------------------------------------------
// Ajax 스크립트 함수(json return) by jeon
// ------------------------------------------------------------------------------------------

// 메인 플레이펀 gallery
function mn_playfun_list(bo_table) {
	var para = "bo_table="+ bo_table;
	$.getJSON("/ajax/mn_playfun.data.php?"+ para, function(data) {

			$("#mn_playfun").empty();
			var playfun_view = "";
			var i = 1;
			try{
				if (data)	{
					if(data == "19") {
						playfun_view ='<table cellpadding="0" cellspacing="0" border="0" align="center"><tr><td>19세이상 이용 Or 로그인 </td></tr></table>';
					}else{
						playfun_view += '<div style="padding:10px 0px 0px 0px;"><table cellpadding="0" cellspacing="0" border="0" align="center">';
						$.each(data, function(index, entry) {
								if(i%7 == 0 || i == 0){
									playfun_view += '<tr>';
								}
							playfun_view += '<td width="121" align="center">';
							playfun_view += '<div style="width:105px;"><a href="/bbs/board.php?bo_table='+ bo_table +'&wr_id='+ entry["wr_id"] +'"><img src='+ entry["thumb_file"]+' width="105" height="95" class="img1"></a></div>';
							playfun_view += '<div style="width:105px;padding:7px 0px 0px 0px;" class="fs11_gray1"><a href="/bbs/board.php?bo_table='+ bo_table +'&wr_id='+ entry["wr_id"] +'">'+ entry["wr_subject"]+'<span class="fs11_green1">('+ entry["wr_comment"]+')</span></a></div>';
							playfun_view += '<div style="width:105px;padding:0px 0px 3px 0px;" class="fs11_gray1"><a href="/bbs/board.php?bo_table='+ bo_table +'&wr_id='+ entry["wr_id"] +'">'+ entry["wr_name"]+'</a></div>';
							playfun_view += '</td>';
								if(i%6 == 0 && i >0){
									playfun_view += '</tr><tr height="10"><td></td></tr>';
								}
							i++;
						});
						playfun_view += '</table></div>';
					}
				}
				$("#mn_playfun").html(playfun_view);
			}
			catch (e){$("#mn_playfun").empty();}
	});
}

// 메인 플레이펀 List
function mn_playfun_list2(bo_table) {
	var para = "bo_table="+ bo_table;
	$.getJSON("/ajax/mn_playfun.data.php?"+ para, function(data) {

			$("#mn_playfun").empty();
			var playfun_view = "";
			var i = 1;
			try{
				if (data)	{
						playfun_view += '<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center"><tr><td height="20"></td></tr>';
						playfun_view += '<tr valign="top">';
						playfun_view += '<td width="48%">';
						playfun_view += '<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">';
						$.each(data, function(index, entry) {
								if(i == 0){
									playfun_view += '';
								}
							playfun_view += '<tr height="40"><td style="padding: 0px 0px 0px 0px;"><img src="img/arr01.png" align="absmiddle"><a href="/bbs/board.php?bo_table='+ bo_table +'&wr_id='+ entry["wr_id"] +'">'+ entry["wr_subject"]+'</a> <BR>&nbsp;&nbsp;&nbsp;&nbsp;<span class="fs11_gray1">'+ entry["wr_name"]+'&nbsp;&nbsp;ㅣ </span><span class="fs11_gray3">'+ entry["wr_datetime"]+'</span></td></tr>';
								if(i%6 == 0 && i >0){
									playfun_view += '</table></td><td width="4%"></td><td width="48%"><table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">';
								}
							i++;
						});
						playfun_view += '</table></td></tr></table>';
				}
				$("#mn_playfun").html(playfun_view);
			}
			catch (e){$("#mn_playfun").empty();}
	});
}

function mn_playfun_list3(bo_table) {
	var para = "bo_table="+ bo_table;
	$.getJSON("/ajax/mn_playfun.data3.php?"+ para, function(data) {
			$("#mn_playfun").empty();
			var playfun_view = "";
			var i = 1;
			try{
				if (data)	{
						playfun_view += '<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">';
						playfun_view += '<tr valign="top" align="center">';

						$.each(data, function(index, entry) {
								if(i == 0){
									playfun_view += '';
								}
								playfun_view += '<td width="50%"  style="padding: 7px 0px 0px 0px">';
								playfun_view += '<div style="width:90px;height:70px;text-align:center;border:1px solid #f0f0f0;"><a href="/bbs/board.php?bo_table='+ bo_table +'&wr_id='+ entry["wr_id"] +'"><img src='+ entry["thumb_file"]+' width="80" height="70"></a></div>';
								playfun_view += '<div style="width:90px;padding:5px 0px 0px 0px;line-height:125%;text-align:left;height:30px;" class="fs11_gray5"><a href="/bbs/board.php?bo_table='+ bo_table +'&wr_id='+ entry["wr_id"] +'">'+ entry["wr_subject"]+'<span class="fs11_green1">('+ entry["wr_comment"]+')</span></a></div>';
								playfun_view += '<td>';
								if(i%2 == 0 && i >0){
									playfun_view += '</tr></table>';
									playfun_view += '<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">';
									playfun_view += '<tr valign="top" align="center">';								
								}
							i++;
						});
						playfun_view += '</tr></table>';
				}
				$("#mn_playfun").html(playfun_view);
			}
			catch (e){$("#mn_playfun").empty();}
	});
}

// 출석부 List
function mn_cal_list(sYear, sMonth) {
	try{
		var where	= "cal_view";
		var uri = "/ajax/mn_cal.data.php";
		$("#" + where).load(
				uri
				,{y:sYear,m:sMonth}
				,function(data) {}
		);
	}catch(e){}
}

// 출석부 체크 처리
function fn_attend(){
	var cNow = new Date();
	try{
			$.ajax({
				type: "POST",
				url: "/ajax/mn_cal.check.php",
				data: "chk=chk" ,
				success: function(msg){
					if(msg == "s"){
						alert("출석체크가 이루어졌습니다.");
						mn_cal_list(cNow.getYear(), cNow.getMonth() +1);
					}else{
						alert("출석체크을 하셨습니다.");
					}
				}
			});
	}catch(e){}
}

// 게시글 신고하기
function win_singo(bo_table, wr_id){
	try{
			$.ajax({
				type: "POST",
				url: "/ajax/singo.php",
				data: "bo_table="+ bo_table +"&wr_id="+ wr_id ,
				success: function(msg){
					if(msg == "s"){
						alert("선택한 게시물이 신고되었습니다.");
					}else{
						alert("신고하신 게시물입니다.");
					}
				}
			});
	}catch(e){}
}

// 하트콘 구매
function fn_heartcon(){

	var idx = document.form1.idx.value;
	var ht_phone1 = document.form1.ht_phone1.value;
	var ht_phone2 = document.form1.ht_phone2.value;
	var ht_phone3 = document.form1.ht_phone3.value;
	
	if(!confirm("[전화번호] "+ ht_phone1 +"-"+ ht_phone2 +"-"+ ht_phone3 +"\n\n하트콘을 구매하시겠습니까?")){return false;};
	
	//중복클릭 막기
	$("#ht_bt").attr("disabled",true);
	
	try{
			$.ajax({
				type: "POST",
				url: "/ajax/heartcon_send.php",
				data: "idx="+ idx +"&ht_phone1="+ ht_phone1 +"&ht_phone2="+ ht_phone2 +"&ht_phone3="+ ht_phone3 ,
				success: function(msg){
					if(msg == "s"){
						alert("정상적으로구매가 이루어졌습니다.\n\n발송이 안될시 고객센터에 문의해주시기 바랍니다.");
						window.close();
					}else if(msg == "p"){
						alert("회원님의 포인트가 구매포인트보다 적습니다.");
						window.close();
					}else if(msg == "d"){
						alert("발송된 상태입니다.");
						window.close();
					}else{
						//alert(msg);
						alert("구매시 오류가 발생하였습니다.\n\n포인트 차감은 이루어지지 않습니다.");
						window.close();
					}
				}
			});
	}catch(e){}
}

function fn_cm(){

	$.getJSON('/ajax/cm.php', function (data){
	  if (data.length > 0) {
		var temp ="";

		for(var i =0; i < data.length; i++){
		  temp = temp + '<div style="padding:2 0 0 0"><A HREF="' + data[i]['ClickUrl'] + '"  target="_blank"><span style="font-size:11px;,color:3C65DF"><B>[AD]</B></span></A> <A HREF="' + data[i]['ClickUrl'] + '" target="_blank"><span style="font-size:11px;,color:3C65DF"><B>' + data[i]['title'] + '</B></span></A> <A HREF="' + data[i]['ClickUrl'] + '" target="_blank"><span style="font-size:12px;,color:000">- ' + data[i]['description'] + '</span></a></div>'
		}
		temp = temp + '<div class=bar03></div>';
		document.getElementById("writeCm").innerHTML = temp;
		//$('#writeCm2').html(temp);
	  }
	});
}


// 메인 왼쪽 기종별 자유게시글
function fn_main_left(bo_table){

	$.getJSON('/ajax/mn_left.php?bo_table='+ bo_table, function (data){
	  if (data.length > 0) {
		var temp ='<div style="padding: 8px 0px 0px 15px"></div>';
		for(var i =0; i < data.length; i++){
			temp += '<div style="padding: 7px 0px 0px 10px;overflow:hidden;width:210px;height:20px;"><img src="img/arr01.png" align="absmiddle"><a href="/bbs/board.php?bo_table='+ data[i]['bo_table'] +'&wr_id='+ data[i]['wr_id'] +'">'+ data[i]['wr_subject'] +'</a></div>';
		}
		$('#mn_left_latest').html(temp);
	  }
	});
}

// 메인 하단 오른쪽 다운로드
function fn_main_right(bo_table,last_limit){

	$.getJSON('/ajax/mn_left.php?bo_table='+ bo_table +'&last_limit='+ last_limit, function (data){
	  if (data.length > 0) {
		var temp ='';
		for(var i =0; i < data.length; i++){
			temp += '<div style="padding: 7px 0px 0px 10px;overflow:hidden;width:210px;height:20px;"><img src="img/arr01.png" align="absmiddle"><a href="/bbs/board.php?bo_table='+ data[i]['bo_table'] +'&wr_id='+ data[i]['wr_id'] +'">'+ data[i]['wr_subject'] +'</a></div>';
		}
		$('#mn_data_view').html(temp);
	  }
	});
}






////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 메인어플추천 인기top7 chart
function mn_main_appl(type,bo_table){

	$.getJSON('/ajax/mn_appl.php?type='+ type+'&bo_table='+bo_table, function (data){
	  if (data.length > 0) {
		var temp ="";
		temp += '<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">';
		temp += '<tr>';
		temp += '<td colspan="2" height="1" background="img/dot01.gif"></td>';
		temp += '</tr>';
		temp += '<tr valign="top">';
		temp += '<td width="66%" style="padding:20 0 0 5">';
		temp += '<table cellpadding="0" cellspacing="0" border="0" align="center">';
		temp += '<tr valign="top">';
		for(var i =0; i < data.length; i++){
// if문 합치기 20111230 
			if(i < 3){
				temp += '<div style="position:absolute;z-index:10">';
				temp += '<div style="width:450px;position:absolute;left:-10px;top:-10px;overflow:hidden;z-index:100;text-align:left">';
				temp += '<div class="fl" style="width:150px"><img src="/img/ic_appl_01.png"></div> <div class="fl" style="width:150px"><img src="/img/ic_appl_02.png"></div> <div class="fl" style="width:150px"><img src="/img/ic_appl_03.png"></div>';
				temp += '</div>';				
				temp += '<td width="150">';
				temp += '<div style="width:120px;padding:0 0 0 0"><A HREF="/bbs/board.php?bo_table='+ data[i]['bo_table'] +'&wr_id='+ data[i]['wr_id'] +'">'+ data[i]['thumb'] +'</A></div>';
				temp += '<div style="width:120px;height:42px;padding:7 0 0 0"><A HREF="/bbs/board.php?bo_table='+ data[i]['bo_table'] +'&wr_id='+ data[i]['wr_id'] +'">'+ data[i]['wr_subject']  +'</A></div>';
				temp += '<div style="width:120px;padding:5 0 0 0"><img src="/img/ic_star_on.gif"><img src="/img/ic_star_on.gif"><img src="/img/ic_star_on.gif"><img src="/img/ic_star_on.gif"><img src="/img/ic_star_on.gif"></div>';
				temp += '<div class="fs11_6" style="widht:120px;padding:5 0 0 0">종류 : <span class="fs11_7">'+ data[i]['ca_name']  +'</span></div>';
				temp += '</td>';
				temp += '</div>';
			}
			if(i == 2){
				temp += '</tr>';
				temp += '</table>';
				temp += ' </td>';
				temp += '<td width="34%" style="padding:10 0 0 0">'; 	
				temp += '<table width="100%" cellpadding="0" cellspacing="0" border="0">';
			}
			if(i > 2){
				temp += '<tr>';
				temp += '<td height="35">';
				temp += '<div class="fl" style="overflow:hidden;height:25px;padding:5 0 0 0;"><img src="/img/no'+[i+1]+'.gif" align="absmiddle"> <A HREF="/bbs/board.php?bo_table='+ data[i]['bo_table'] +'&wr_id='+ data[i]['wr_id'] +'">'+ data[i]['wr_subject']  +'</a></div>';
				temp += '<div class="fr fs11_6" style="overflow:hidden;height:25px;padding:5 0 0 0">l &nbsp;&nbsp;<span class="fs11_7">'+ data[i]['ca_name']  +'</span></div>';
				temp += '</td>';
				temp += '</tr>';
				temp += '<tr>';
				temp += '<td height="1" bgcolor="EBEBEB"></td>';
				temp += '</tr>';
			}
//		
		}

		temp += '</table>';
		temp += '<div style="padding:10 0 0 0">';
		temp += '<div style="border-left:1px #E3E3E3 solid; border-right:1px #E3E3E3 solid; border-top:1px #E3E3E3 solid;  border-bottom:1px #E3E3E3 solid;background-color:F3F3F3;padding:5px 0px 0px 7px;height:30px"><a href="http://5daymall.com" target="_blank"><span style="font-size:12px; color: #D71A6A;letter-spacing:0px;font-weight: bold;">5DAYmall</span> <span style=font-size:11px; color: #666;letter-spacing:-1px>- 매달 5, 15, 25일을 주목하라! </span></a></div>';
		temp += '<div style="padding: 10px 5px 0px 0px;text-align:right"><a href="/bbs/board.php?bo_table='+data[0]['bo_table']+'"><img src="/img/btn_more03.gif" align="absmiddle"></A></div>';
		temp += ' </td>';
		temp += '</tr>';
		temp += '</table>';
		
	  }
	else{
		temp = '<table width="100%" align="center" height="200"><tr align="center"><td>데이타가 없습니다.'+ '[' + bo_table + ']</td></tr></table>';
	}
$('#div_app').html(temp);
	});
}

// 메인파워리뷰
function mn_review_list(bo_table){
	$.getJSON('/ajax/mn_review.php?bo_table='+bo_table, function (data){


	var temp ='';
	if (data.length > 0) {
	temp += '<table width="470" cellpadding="0" cellspacing="0" border="0">';
	temp += '<tr valign="top">';
	temp += '<td width="30%" style="padding:0px 0px 10px 0px;">';
	temp += '<A HREF="/bbs/board.php?bo_table='+ data[0]['bo_table'] +'&wr_id='+ data[0]['wr_id'] +'"><img src="'+ data[0]['thumb'] +'" width="140"  height="100" class="img1"></A></td>';
	temp += '<td width="70%" style="padding:5px 0px 0px 5px;">';
	for(var i =0; i < data.length; i++){

	temp += '<div style="width:100%;height:18px">';
	temp += '<div class="fl"><img src="/img/arr01.gif" align="absmiddle"><A HREF="/bbs/board.php?bo_table='+ data[i]['bo_table'] +'&wr_id='+ data[i]['wr_id'] +'">'+ data[i]['wr_subject']  +'</a></div>';
	temp += '<div class="fr"><span style=" font-size:10px; color: #666;font-family:Tahoma;">l&nbsp;&nbsp;&nbsp;'+ data[i]['wr_datetime']+'</span></div>';
	temp += '</div>';

	}
	temp += '</td>';
	temp += '</tr>';
	temp += '</table>';
	temp += '<table width="470" height="60" cellpadding="0" cellspacing="0" border="0"  background="img/bg_review02.gif">';
	temp += '<tr>';
	if(!data[0]['wr_comment_name']) {data[0]['wr_comment_name']='폰인사이드';}
	if(!data[0]['wr_comment_subject']) {data[0]['wr_comment_subject']='코멘트를달아주세요.';}
	temp += '<td valign="top" style="padding:17px 10px 0px 10px" class="fs11_8"><span class="fs11_7">['+ data[0]['wr_comment_name'] +']</span>'+ data[0]['wr_comment_subject'] +'</td>';
	temp += '</tr>';
	temp += '</table>';
	}
	else{
		temp = '<table width="100%" align="center" height="150"><tr align="center"><td>데이타가 없습니다.'+ '[' + bo_table + ']</td></tr></table>';
	}

	$('#div_review').html(temp);

	});


}

//메인어플공유방
function mn_app_list(bo_table){
	$.getJSON('/ajax/mn_app.php?bo_table='+bo_table, function (data){
	var temp ='';
	//alert(data.length);	
	if (data.length > 0) {
		temp +='<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">';
		temp +='<tr align="center" valign="top">';
		temp +='<td width="6%" style="padding:40 0 0 0"><A HREF="javascript:;" onclick="mn_app_go(\'-\',\''+bo_table+'\');"><img src="/img/arr_left02.gif"></A></td>';
	for(var i =0; i < data.length; i++){

		if(i < 4){
			temp +='<td width="22%">';
			temp +='<div style="width:130px;height:85px;padding:7px 0px 0px 0px;"><A HREF="/bbs/board.php?bo_table='+ data[i]['bo_table'] +'&wr_id='+ data[i]['wr_id'] +'"><img src="'+ data[i]['thumb'] +'" width="130"  height="80" class="img1"></A></div>';
			temp +='<div style="width:130px;padding:7px 0px 0px 0px;line-height:125%;text-align:left;height:30px;overflow:hidden;" class="fs11_5"><A HREF="/bbs/board.php?bo_table='+ data[i]['bo_table'] +'&wr_id='+ data[i]['wr_id'] +'">'+ data[i]['wr_subject']  +'</a></div>';
			temp +='</td>';
		}
		if(i == 3){
			temp +='<td width="6%" style="padding:40 0 0 0"><A HREF="javascript:;" onclick="mn_app_go(\'+\',\''+bo_table+'\');"><img src="/img/arr_right02.gif"></A></td>';
			temp +='</tr>';
			temp +='<tr>';
			temp +='<td></td>';
			temp +='<td colspan="2" style="padding:2 0 0 0">';
		}
		if(i > 3){
			if(i == 7){ temp +='<td colspan="2" style="padding:2 0 0 0">'; }
			temp +='<div style="padding:3 0 0 0"><img src="/img/arr01.gif" align="absmiddle"><A HREF="/bbs/board.php?bo_table='+ data[i]['bo_table'] +'&wr_id='+ data[i]['wr_id'] +'">'+ data[i]['wr_subject']  +'</a></div>';
		}
	}
	temp +='</td>';
	temp +='<td></td>';
	temp +='</tr>';
	temp +='</table>';

	}else{
		temp +='<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">';
		temp +='<tr align="center" valign="top">';
		temp +='<td width="6%" style="padding:40 0 0 0"><A HREF="javascript:;" onclick="mn_app_go(\'-\',\''+bo_table+'\');"><img src="/img/arr_left02.gif"></A></td>';
		temp +='<td style="padding:80 0 0 0"><a href="/bbs/board.php?bo_table='+ bo_table +'">데이타가 없습니다.'+ '[' + bo_table + ']</a></td>';
		temp +='<td width="6%" style="padding:40 0 0 0"><A HREF="javascript:;" onclick="mn_app_go(\'+\',\''+bo_table+'\');"><img src="/img/arr_right02.gif"></A></td>';
		temp +='</tr>';
		temp +='</table>';
	}

	$('#div_app2').html(temp);

	});


}

//메인폰꾸미기2
function mn_deco_list2(bo_table){
	$.getJSON('/ajax/mn_deco.php?bo_table='+bo_table, function (data){
	var temp ='';

temp +='<div class="fr fs11_3" style="padding: 18px 15px 0px 0px"><A HREF="bbs/board.php?bo_table='+bo_table+'"><img src="/img/btn_more02.gif" align="absmiddle"></A></div>';

	if (data.length > 0) {
	temp +='<table width="98%" cellpadding="0" cellspacing="0" border="0" align="center">';
	temp +='<tr align="center" valign="top">';
	for(var i =0; i < data.length; i++){
		if(i < 5){
			temp +='<td width="20%">';
			temp +='<div style="width:83px;height:107px;padding:7px 0px 0px 0px;"><A HREF="/bbs/board.php?bo_table='+ data[i]['bo_table'] +'&wr_id='+ data[i]['wr_id'] +'"><img src="'+ data[i]['thumb'] +'" width="83"  height="100" class="img1"></A></div>';
			temp +='<div style="width:83px;padding:7px 0px 0px 0px;line-height:125%;text-align:left;height:35px;overflow:hidden;"><A HREF="/bbs/board.php?bo_table='+ data[i]['bo_table'] +'&wr_id='+ data[i]['wr_id'] +'">'+ data[i]['wr_subject']  +'</a></div>';
			temp +='</td>';
		}
	}
	temp +='</tr>';
	temp +='</table>';
	}else{
		temp = '<table width="100%" align="center" height="150"><tr align="center"><td>데이타가 없습니다.'+ '[' + bo_table + ']</td></tr></table>';
	}
	$('#div_deco2').html(temp);

	});
}


function mn_menu_list(gr_id){
	$.getJSON('/ajax/mn_menu.php?gr_id='+gr_id, function (data){
	temp = "";
	if (data.length > 0) {
		
		if(data[0]['gr_id']=='appl'){
			temp += '<div style="padding-left:680px;">';
		}else if(data[0]['gr_id']=='play'){
			temp += '<div style="padding-left:610px;">';
		}else if(data[0]['gr_id']=='deco'){
			temp += '<div style="padding-left:680px;">';
		}else{
			temp += '<div style="padding-left:500px;">';
		}

		for(var i =0; i < data.length; i++){
			
			if(i == 0) spl = "";
			else{ spl = " <span class=fs10_5> | </span> " ;}
			
			temp += spl + '<A HREF="/bbs/board.php?bo_table='+ data[i]['bo_table']+data[i]['ca_name']+'" class="fs11_link2">' + data[i]['bo_subject'] + '</a>';
		}

		if(data[0]['gr_id']=='community'){
			temp += ' <span class=fs10_5> | </span> <A HREF="/bbs/chulsuck.php" class="fs11_link2">출석체크</a>';
		}
		temp += '</div>';
		
	}
	$('#div_menu').html(temp);
	});
}


//메인스마트폰강좌
function mn_about_list(bo_table){
	$.getJSON('/ajax/mn_about.php?bo_table='+bo_table, function (data){
	var temp ='';

	if (data.length > 0) {



	for(var i =0; i < data.length; i++){
							
temp +='<div style="overflow:hidden;width:95%;height:21px;text-align:center">';
temp +='<div class="fl"><img src="/img/arr01.gif" align="absmiddle"><A HREF="/bbs/board.php?bo_table='+ data[i]['bo_table'] +'&wr_id='+ data[i]['wr_id'] +'">'+ data[i]['wr_subject']  +'</a></div>';
temp +='<div class="fr fs11_3" style="padding: 0px 5px 0px 0px"><span style=" font-size:11px; color: #999;font-family:Tahoma;;letter-spacing:0px">l&nbsp;&nbsp;&nbsp;'+ data[i]['wr_datetime']+'</span></div>';
temp +='</div>';

	}


	}else{
		temp = '<table width="100%" align="center" height=""><tr align="center"><td>데이타가 없습니다.'+ '[' + bo_table + ']</td></tr></table>';
	}

	$('#div_about').html(temp);

	});


}
//메일인증추가포인트적립
function mail_point(){
	if(confirm("확인가능한 Email이 아닌경우 Email발송은 재발송이 불가능합니다.\n\n이대로 진행하시겠습니까?")){
		$.getJSON('/ajax/mail_point_send.php', function (data){
		if (data[0] == 'ok') {
			alert("이메일이 발송되었습니다.이메일을 확인해주세요.\n\n회원님의 이메일은 "+data['mb_email']+" 입니다");
		}else{
			alert("이메일 발송이 실패했습니다.\n\n이미 한번 사용되었습니다.");
		}
		});
	}else{
		if(confirm("정보수정페이지에서 Email을 수정하시겠습니까?")){
			location.href="../bbs/member_confirm.php?url=register_form.php";
		}
	}
}
