function jumin_check(j1, j2) 
{
    if (j1.value.length < 6 || j2.value.length < 7)
        return false;

    var sum_1 = 0;
    var sum_2 = 0;
    var at=0;
    var juminno= j1.value + j2.value;
    sum_1 = (juminno.charAt(0)*2)+
            (juminno.charAt(1)*3)+
            (juminno.charAt(2)*4)+
            (juminno.charAt(3)*5)+
            (juminno.charAt(4)*6)+
            (juminno.charAt(5)*7)+
            (juminno.charAt(6)*8)+
            (juminno.charAt(7)*9)+
            (juminno.charAt(8)*2)+
            (juminno.charAt(9)*3)+
            (juminno.charAt(10)*4)+
            (juminno.charAt(11)*5);
    sum_2=sum_1 % 11;

    if (sum_2 == 0) {
        at = 10;
    } else {
        if (sum_2 == 1) 
            at = 11;
        else 
            at = sum_2;
    }
    att = 11 - at;
    if (juminno.charAt(12) != att) {
        return false;
    }

    return true
}

function popup_zip(frm_name, frm_zip1, frm_zip2, frm_addr1, frm_addr2, dir, top, left)
{
    url = 'index.php?doc='+dir+'/memberZip.php&frm_name='+frm_name+'&frm_zip1='+frm_zip1+'&frm_zip2='+frm_zip2+'&frm_addr1='+frm_addr1+'&frm_addr2='+frm_addr2;
    opt = 'scrollbars=yes,width=500,height=250,top='+top+',left='+left;
    window.open(url, "memberZip", opt);
}

function del(href) 
{
    if (confirm("Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n\n»èÁ¦ÈÄ¿¡´Â ÀÚ·á¸¦ º¹±¸ÇÒ ¼ö ¾ø½À´Ï´Ù."))
	 {
        document.location.href = href;
    }
}

function winopen(url, name, option)
{
    window.open(url, name, option);
    return ;
}

function textarea_size(fld, size)
{
	var rows = parseInt(fld.rows);

	rows += parseInt(size);
	if (rows > 0)
	{
		fld.rows = rows;
	}
}

function image_window(img, w, h)
{
	var tmp_w = w;
	var tmp_h = h;
	winl = (screen.width-w)/2;
	wint = (screen.height-h)/3;
	
	if (w >= screen.width)
	{
		winl = 0;
		w = screen.width - 10;
		h = (parseInt)(w * (h / w));
	}
	
	if (h >= screen.height)
	{
		wint = 0;
		h = screen.height - 80;
		w = (parseInt)(h * (w / h));
	}
	
	var settings  ='width='+w+',';
		settings +='height='+h+',';
		settings +='top='+wint+',';
		settings +='left='+winl+',';
		settings +='scrollbars=no,';
		settings +='resizable=no,';
		settings +='status=no';
	
	win=window.open("","newWindow",settings);
	win.document.open();
	win.document.write ("<html><head><meta http-equiv='content-type' content='text/html; charset=euc-kr'>");
	win.document.write ("<title>ÀÌ¹ÌÁö º¸±â</title></head>");
	win.document.write ("<body leftmargin=0 topmargin=0>");
	//win.document.write ("<img src='"+img+"' width='"+w+"' height='"+h+"'border=0 onclick='window.close();' style='cursor:hand' title='ÇØ»óµµ ("+tmp_w+"x"+tmp_h+")\nÅ¬¸¯ÇÏ¸é ´ÝÇô¿ä'>");
	win.document.write ("<img src='"+img+"' width='"+w+"' height='"+h+"'border=0 onclick='window.close();' style='cursor:hand'>");
	win.document.write ("</body></html>");
	win.document.close();
	
	if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
