    /**
     *  ÆË¾÷ Ã³¸®
     *  ¿ÞÂÊ À§Ä¡ ÀÚµ¿ ¸ÂÃã Ã³¸® 
     */
    var popup_left = 0;
    var frame_width = 10;   //À©µµ¿ì Æ² ³Êºñ
    function open_pop(cookieName, popFile, wid, hei, top, left,scroll) {
        //  ÄíÅ° ÀÌ¸§, ÆË¾÷ ÆÄÀÏ, °¡·Î, ¼¼·Î, »ó´ÜÀ§Ä¡, ¿ÞÂÊÀ§Ä¡
        //  ÁÂÃø À§Ä¡ ÁöÁ¤ÀÌ¸é ´ÙÀ½ ÆË¾÷ À§Ä¡¸¦ °è»êÇÏÁö ¾Ê½À´Ï´Ù.
        var name = cookieName;
        var sign = "no";
        var start = -1;
        var end = 0;
        var pop_flag = 0;
        var params = (popFile.indexOf("?") >= 0) ? "&" : "?"; // ÆÄ¶ó¸ÞÅÍ
        var ops = ""    // ºÎ°¡ ¿É¼Ç(°¡·Î ¼¼·Î »ó´Ü ÁÂÃø À§Ä¡);
        start = document.cookie.indexOf(name);
        end = start + name.length;
        if(start > -1) {
            start = start + name.length + 1;
            if(document.cookie.substring(start, start+sign.length) == sign){
                 pop_flag = 1;
            }
        }
        if(pop_flag == 0) {
            params += "s=" + sign + "&n="   + name;
            popFile += params;
            ops += (wid != null) ? "width="  + wid + "," : "";
            ops += (hei != null) ? "height=" + hei + "," : "";
            ops += (top != null) ? "top="    + top + "," : "top=0,";
            if(left == null) {
                if(wid != null) {
                    //¿ÞÂÊºÎÅÍ ¼ø¼­´ë·Î ÆË
                    ops += "left=" + popup_left + ",";
                    popup_left += wid + frame_width;    //´ÙÀ½ ÆË¾÷ÀÇ ¿ÞÂÊÀ§Ä¡
                }
            }else{
                ops += "left="   + left + ",";
            }
            window.open(popFile, name, ops + " scrollbars="+scroll+", toolbar=no, status=no, resizable=no");
        }
    }

// ÆË¾÷
function imageView(val){
		window.open("/about/food/image_pop.asp?pic="+val, "img", "width=100, height=100, menubar=no, scrollbars=yes, resizeable=no");
	}


// ÆË¾÷
function open_popup(url, wid, hei, scroll, winName)
{
	var url = url;
	var posi = "width="+ wid +",height="+hei+",toolbar=no,location=no,status=no,menubar=no,top=10,left=50,scrollbars=" + scroll +",resizable=no" ;
	if (winName == "")
	{
		winName = popup
	}
	window.open(url,winName,posi);
}

//¸µÅ© ÁÖº¯ Á¡¼± ¾ø¾Ö±â
var myAnchors=document.all.tags("A"); 
function allblur() {
	for (i=0;i<myAnchors.length;i++) { 
		myAnchors[i].onfocus=new Function("myAnchors["+i+"].blur()");
	} 
}

// ÀÌ¹ÌÁö »çÀÌÁî¸Â°Ô »õÃ¢ÀÌ ÀÚµ¿À¸·Î Á¶ÀýµÇ´Â ¼Ò½º
<!-- Begin
function cnj_win_view(img){
  img_conf1= new Image();
  img_conf1.src=(img);
  cnj_view_conf(img);
}

function cnj_view_conf(img){
  if((img_conf1.width!=0)&&(img_conf1.height!=0)){
    cnj_view_img(img);
  }
  else{
    funzione="cnj_view_conf('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}

var cnj_img_view = null;

function cnj_view_img(img){

    if(cnj_img_view != null) {
      if(!cnj_img_view.closed) { 
      cnj_img_view.close(); 
      }
    }

  cnj_width=img_conf1.width+0;
  cnj_height=img_conf1.height+0;
  str_img="width="+cnj_width+",height="+cnj_height;

   cnj_img_view=window.open("about:blank","",str_img);
   cnj_img_view.document.open();   // document.open() 
   cnj_img_view.document.writeln("<html>");
   cnj_img_view.document.writeln("<head>");
   cnj_img_view.document.writeln("<title>Ã»ÀÎ</title>");
   cnj_img_view.document.writeln("<meta http-equiv='content-type' content='text/html; charset=euc-kr'>");
   cnj_img_view.document.writeln("<meta http-equiv='imagetoolbar' content='no'>");
   var start="<";
   cnj_img_view.document.writeln("<script language='javascript'>");
   cnj_img_view.document.writeln("function click() {");
   cnj_img_view.document.writeln("if ((event.button==1) || (event.button==2))  {");
   cnj_img_view.document.writeln("top.close();");
   cnj_img_view.document.writeln("      }");
   cnj_img_view.document.writeln("}");
   cnj_img_view.document.writeln("document.onmousedown=click");
   cnj_img_view.document.writeln(start+"/script>");
   cnj_img_view.document.writeln("</head>");
   cnj_img_view.document.writeln("<body style='margin:0 0 0 0' bgcolor=#FFFFFF>");
   cnj_img_view.document.writeln("<img src="+ img +" border=0 style='cursor:hand'>") // ¼Ò½º Å×½ºÆ® ºÎºÐ
   cnj_img_view.document.writeln("</body></html>");
   cnj_img_view.document.close();  // ¹Ýµå½Ã document.close() ´Ý¾ÆÁÖ¾î¾ß ÇÔ
   
   cnj_img_view.focus();
  return;
}
//  End -->

function pop(pPage,name,Opt) {
	var popUpWin;

	popUpWin = window.open(pPage,name,Opt);
	popUpWin.focus();
 	
}

// Äü¸Þ´º ÆË¾÷ Ã¢ ¶ç¿ì±â
// 2009.11.20 ¼®¹Ì¾Ö 
function quick_popup(url_Kind)
{
	var url = "";

	if (parseInt(url_Kind) == 1) { url = "http://www.cjfreshway.com/design/"; }
	else if (parseInt(url_Kind) == 2) { url = "http://www.mkitchen.net/"; }
	else if (parseInt(url_Kind) == 3) { url = "http://new.cjfs.co.kr/"; }
	else if (parseInt(url_Kind) == 4) { url = "http://new.cjfoodnet.com/login.aspx"; }
	else if (parseInt(url_Kind) == 5) { url = "http://blog-cjfreshway.com/"; }
        else if (parseInt(url_Kind) == 6) { url = "http://twitter.com/cjfreshway"; }
        else if (parseInt(url_Kind) == 7) { url = "http://www.facebook.com/cjfreshway?ref=sgm"; }

	if (url != "")	{
		window.open(url);
	}
}

