function premier(n, t, imgname, typename, refname) {
    for(var i = 1; i < t + 1; i++) {
        obj = document.getElementById(typename+i);
        img = document.getElementById(typename+'_button'+i);
        href = document.getElementById(refname+i);
        if ( n == i ) {
            obj.style.display = "block";
            href.style.display = "block";
			//img.height = 20;
            img.src = "/img/"+imgname+i+"a.gif";
        } else {
            obj.style.display = "none";
            href.style.display = "none";
			//img.height = 20;
            img.src = "/img/"+imgname+i+".gif";
        }
    }
}
function mem_winopen(id, width, height)
{
	window.open('/popup_map.php?mb_id='+id,'imgview','left=10.top=10,width='+width+',height='+height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}

  function go_check()
  {
   var status  = "width=500 height=450 menubar=no,scrollbars=no,resizable=no,status=no";
   var obj     = window.open('', 'kcp_pop', status);
   
   document.shop_check.method = "post";
   document.shop_check.target = "kcp_pop";
   document.shop_check.action = "http://admin.kcp.co.kr/Modules/escrow/kcp_pop.jsp";

   document.shop_check.submit();
  }

