//»õÃ¢¶ç¿ì±â
function openWin(url, name, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
	toolbar_str = toolbar ? 'yes' : 'no';
	menubar_str = menubar ? 'yes' : 'no';
	statusbar_str = statusbar ? 'yes' : 'no';
	scrollbar_str = scrollbar ? 'yes' : 'no';
	resizable_str = resizable ? 'yes' : 'no';
	window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

//Äí±â¸¸µé±â
function setCookie(name, value, expiredays) {
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	document.cookie = name + "=" + escape( value ) + "; path=/; domain=megaseller.co.kr; expires=" + todayDate.toGMTString() + ";"
}

//À©µµ¿ì ´Ý±â
function closeWin(cookieName) {
	//¸µÅ©¹æ½Ä
	setCookie(cookieName, "no", 1);

	/*
	//form.check ¹æ½Ä
	if(document.form.event.checked) {
		setCookie(cookieName, "no", 1);
	}
	*/

	top.close();
}

//Äí±â°¡Á®¿À±â
function getCookie(name) {
	var Found = false
	var start, end
	var i = 0

	while(i <= document.cookie.length) {
		start = i
		end = start + name.length

		if(document.cookie.substring(start, end) == name) {
			Found = true
			break
		}
		i++
	}

	if(Found == true) {
		start = end + 1
		end = document.cookie.indexOf(";", start)

		if(end < start)
			end = document.cookie.length
		return document.cookie.substring(start, end)
	}

	return ""
}

//ÁÖ¼Òº¸³»±â
function goUrl(src) {
	opener.location.href=src;
	self.close();
}