/*
url 앞의 '/young' 서버에서는 없어야 함 이것을 어떻게 조치해야 할지 검토중
*/
//alert(context_path);
function open_search_zipcode(args)
{
	
//	alert(args);
	var url = context_path + '/zipcode/list.action?pt=popup&args=' + args;
	var w = window.open(url,'zip_code','width=500, height=300, left=100, top=100 scrollbars=yes');
	w.focus();
	//location=no, resizable=no, scrollbars=yes, menubar=yes, toolbars=no, directories=no
}
function open_search_jibu(args)
{
	var url = context_path + '/code/listJibu.action?pt=popup&args=' + args;
	var w = window.open(url,'zip_code','width=500, height=300, left=100, top=100 scrollbars=yes');
	w.focus();
}

// 'choid_id_${i}:person_name_${i}:person_jumin_${i}_1:person_jumin_${i}_2')" style='cursor:hand'
function open_search_member(arg_name, args)
{
	try
	{
		
		
		var name = document.getElementById(arg_name).value;
/*		
		 ListAction.java 에서 아래 부분 처리
		 if(searchWord!=null) searchWord = java.net.URLDecoder.decode(searchWord, "UTF-8"); 
*/		 
		name = escape(encodeURIComponent(name)); 

		if(name.length < 2) {
			alert('이름을 입력하세요.');
			w.focus();	
			return false;
		} else {
			var url = context_path + '/member/popup_search.action?args=' + args + '&searchKey=name&searchWord=' + name;
			var w = window.open(url,'zip_code','width=500, height=300, left=100, top=100 scrollbars=yes');
			w.focus();	
		}
	} catch (e) {}
	
}



function please_login()
{
	alert('로그인 해 주세요.');
}