
// Å©±â Á¶ÀýµÇ´Â ÆË¾÷ À©µµ¿ì¸¦ ¶ç¿ó´Ï´Ù.
function opwin(win_url, win_attr)
{
	window.open(win_url,"",win_attr + ', scrollbars=yes,scrolling=yes,menubar=no,resizable=yes');
}

// ÀÌ¸§ÀÖ´Â Å©±â Á¶ÀýµÇ´Â ÆË¾÷ À©µµ¿ì¸¦ ¶ç¿ó´Ï´Ù.
function opwin_name(win_url, name, win_attr)
{
	var win=window.open(win_url,name,win_attr + ', scrollbars=yes,scrolling=yes,menubar=no,resizable=yes');
  win.focus();
}

// Å©±â Á¶ÀýµÇÁö ¾Ê´Â ÆË¾÷ À©µµ¿ì¸¦ ¶ç¿ó´Ï´Ù.
function opwin_noresize(win_url, win_attr)
{
	var win = window.open(win_url,"",win_attr + ', scrollbars=yes,scrolling=yes,menubar=no,resizable=no');
	win.focus();
}

// Å©±â Á¶ÀýµÇÁö ¾Ê´Â ÆË¾÷ À©µµ¿ì¸¦ °è¼Ó °°Àº Ã¢¿¡ ¶ç¿ó´Ï´Ù.
function opwin_noresize_new(win_url, win_attr)
{
	var win = window.open(win_url,"_new",win_attr + ', scrollbars=yes,scrolling=yes,menubar=no,resizable=no');
	win.focus();
}

// Å©±â Á¶ÀýµÇÁö ¾Ê´Â ÆË¾÷ À©µµ¿ì¸¦ ¶ç¿ó´Ï´Ù.
function opwin_noresize_top(win_url, win_attr)
{
	var win = window.open(win_url,"",win_attr + ', scrollbars=yes,scrolling=yes,menubar=no,resizable=no');
	win.focus();
}

// ½ºÅ©·Ñ¹Ù ¾ø´Â ÆË¾÷ À©µµ¿ì¸¦ ¶ç¿ó´Ï´Ù.
function opwin_noframe(win_url, win_attr)
{
	var win = window.open(win_url,"",win_attr + ', scrollbars=no,scrolling=no,menubar=no,resizable=no');
	win.focus();
}

// ½ºÅ©·ÑµÇÁö ¾Ê´Â ÆË¾÷ À©µµ¿ì¸¦ ¶ç¿ó´Ï´Ù.
function opwin_noscroll(win_url, win_attr)
{
	var win = window.open(win_url,"",win_attr + ', scrollbars=no,scrolling=no,menubar=no,resizable=no');
	win.focus();
}

// ½ºÅ©·ÑµÇÁö ¾Ê´Â ÆË¾÷ À©µµ¿ì¸¦ °è¼Ó °°Àº Ã¢¿¡ ¶ç¿ó´Ï´Ù.
function opwin_noscroll_new(win_url, win_attr)
{
	var win = window.open(win_url,"_new",win_attr + ', scrollbars=no,scrolling=no,menubar=no,resizable=no');
	win.focus();
}

// SELECT BOX¿¡ ÀÖ´Â URL·Î »õÃ¢À» ¶ç¿ó´Ï´Ù.
function selectUrlWin(form) {
	if(form.url.selectedIndex != 0) {
		var win_url = form.url.options[form.url.selectedIndex].value;
		var win = window.open(win_url, "", "width=800,height=600,scrollbars=yes,resizable=yes,screenX=20px,screenY=20px,left=20px,top=20px,toolbar=yes,directories=yes,status=yes,menubar=yes,location=yes");
		win.focus();
	}
}

// SELECT BOX¿¡ ÀÖ´Â URL·Î °©´Ï´Ù(°°Àº À©µµ¿ì¿¡¼­)
function changeURL(form) {
	if(form.url.selectedIndex != 0) {
		window.location = form.url.options[form.url.selectedIndex].value;
	}
}

function changeURL2(form) {
	if(form.url.selectedIndex != 0) {
		top.mk_main.location.href = form.url.options[form.url.selectedIndex].value;
	}
}

// À©µµ¿ì ´Ý°í window.opener·Î
function goURL(url) {
	window.opener.location.href= url;
	self.close();
}

function open_win(site, w, h)
{
	var open_window=null;
	open_window = window.open(site, '_new', 'width='+w+',height='+h+',scrollbars=1,resizable=1');
}

// »õÃ¢ ¶ç¿ì±â¿Í °°Àº ÆË¾÷ À©µµ¿ì¸¦ ¶ç¿ó´Ï´Ù.
function opwinNew(wUrl)
{
    var winWidth  = document.body.clientWidth;
    if (winWidth == "undefined" || winWidth < 850)
        var open_window = window.open(wUrl, "_new", "directories=1,menubar=1,location=1,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=1,width=800,height=600,top=10,left=10");
    else
        var open_window = window.open(wUrl, "_new", "directories=1,menubar=1,location=1,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=1,width=1024,height=724,top=7,left=7");
}

// »õÃ¢ ¶ç¿ì±â¿Í °°Àº ÆË¾÷ À©µµ¿ì¸¦ ¶ç¿ó´Ï´Ù.
function opwinBlank(wUrl)
{
    var open_window = window.open(wUrl, "", "directories=1,menubar=1,location=1,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=1,width=800,height=600,screenX=100,screenY=100");
    open_window.focus();
}

// SELECT BOX¿¡ ÀÖ´Â URL·Î »õÃ¢À» ¶ç¿ó´Ï´Ù.(°°Àº À©µµ¿ì »ç¿ë)
function selectUrlWin2(form) {
	if(form.url.selectedIndex != 0) {
		var win_url = form.url.options[form.url.selectedIndex].value;
		var win = window.open(win_url, "_new", "directories=1,menubar=1,location=1,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=1");
		win.focus();
	}
}

// Áõ±Ç ÇöÀç°¡
function viewPrice(scd) {
	var url = 'http://vip.mk.co.kr/st/price/item_current.php?stCode=' + scd;
	document.location = url;
}
