function make_window(img_name){
	new_win=window.open("","","left=180,top=150, status=false, menubar=false, width=450, height=400")
	if(new_win!=null){
		new_win.document.write("<html><head><title>::::: P h o t o - S h o p :::::</title></head><body>")
		new_win.document.write("<p align=center><img src="+img_name+" width=400 height=300 border=0><br>")
		new_win.document.write("<input type='button' value='::::: ´Ý     ±â :::::' onClick='self.close()'>")
		new_win.document.write("</p></body></html>")
	}
}


function make_window_img(img_name,_w, _h){
	new_win=window.open("","","left=180,top=150, status=false, menubar=false, width="+eval(_w+20)+", height="+eval(_h+80)+"\"")
	if(new_win!=null){
		new_win.document.write("<html><head><title>::::: »çÁø ÀÚ¼¼È÷ º¸±â :::::</title></head><body>");
		new_win.document.write("<p align=center><a href='javascript:window.close();'><img src="+img_name+" border=0><br><br>");
		new_win.document.write("<input type='button' value='::::: ´Ý     ±â :::::' onClick='self.close()'>");
		new_win.document.write("</p></body></html>");
	}
}
function make_window_img_scroll(img_name,_w, _h){
	new_win=window.open("","","scrollbars=yes, left=180,top=150, status=false, menubar=false, width="+eval(_w+20)+", height="+eval(_h+80)+"\"")
	if(new_win!=null){
		new_win.document.write("<html><head><title>::::: »çÁø ÀÚ¼¼È÷ º¸±â :::::</title></head><body>");
		new_win.document.write("<p align=center><a href='javascript:window.close();'><img src="+img_name+" border=0><br><br>");
		new_win.document.write("<input type='button' value='::::: ´Ý     ±â :::::' onClick='self.close()'>");
		new_win.document.write("</p></body></html>");
	}
}
function make_window_url(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable){
	toolbar_str = toolbar ? 'yes' : 'no';
	menubar_str = menubar ? 'yes' : 'no';
	statusbar_str = statusbar ? 'yes' : 'no';
	scrollbar_str = scrollbar ? 'yes' : 'no';
	resizable_str = resizable ? 'yes' : 'no';
	window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
//--------------------------------------------------·Î±×ÀÎ °ü·Ã-----------------------------------------
function popup(name) {
	window.open( name ,"_login", 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,width=330,height=280');
}

function checkLogout(dir){
	//popup("login.html");
	document.LogoutForm.action=dir+"login.html";
	document.LogoutForm.submit();
	//return true;

}
function checkLogin(dir){
	if( document.LoginForm.id.value == ''){
		alert("ID¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		return false;
	}else if(document.LoginForm.pw.value == ''){
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		return false;
	}else{
		//popup("blank.html");
		document.LoginForm.action=dir+"login.html";
		document.LoginForm.submit();
		//return true;
	}
}

function EnterCheck(i,dir) {

	if(event.keyCode ==13 && i==1)  {
	if ( document.LoginForm.id.value == ''){
		alert("ID¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		document.LoginForm.id.focus()
	} else {
		document.LoginForm.pw.focus();    // ÆÐ½º¿öµå·Î Æ÷Ä¿½ºÀÌµ¿
	}
	return false;
}

	if(event.keyCode ==13 && i==2)  {
		if( document.LoginForm.pw.value == ''){
			alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
			document.LoginForm.pw.focus();    // ÆÐ½º¿öµå·Î Æ÷Ä¿½ºÀÌµ¿
			return false;
		} else {
			document.LoginForm.action="login.html";
			checkLogin(dir);
			//document.LoginForm.submit();
			return false;
		}
	}
}
//==================================================·Î±×ÀÎ °ü·Ã ³¡========================================

