/**
 * @author jun k8440ty@nate.com
 */

function get_login(){

	$.ajax({
		type: "POST",
		url: "./php/get_login.php",
		data: "id=" + $("#user_id").val()+"&pw=" + $("#user_pw").val(),
		success: function(msg){
			if(msg =="true"){
				 location.href="./";
			}else{
				alert("아아디 혹은 암호가 틀렸습니다.");
			}
		},
		error: function(){
			alert('error');
		}
	});
	
}
function password_Enter(e){

	if(e.keyCode == 13){
		get_login();
	}
}

function footerInclude(){
	$.post("../include/footer_sub.html",{},function(data){
		$("#footer").html(data);
		
	});
}

$(document).ready(function() {
	footerInclude();
});
