<!--

function  checkUserSelect() {
   var check_nums = document.signform.elements.length;
   for(var i = 0; i < check_nums; i++) {
      var checkbox_obj = eval("document.signform.elements[" + i + "]");
      if(checkbox_obj.checked == true) {
         break;
      }
   }
   if(i == check_nums) {
      alert("¸ÕÀú ÀÐ°íÀÚ ÇÏ´Â °Ô½Ã¹°À» ¼±ÅÃÇÏ¿© ÁÖ½Ê½Ã¿À");
      return; 
   } else {
      document.signform.submit();
   }
}


function MB_closewindow() { 
   window.close();
}


//--------------------------------
//---------- Cookie °ü·Ã ---------
function getCookieVal (offset) {
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)
		endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen) {
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg)
			return getCookieVal (j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break;
	}
	return null;
}

function SetCookie (name, value) {
        var argv = SetCookie.arguments;
        var argc = SetCookie.arguments.length;
        var expires = (argc > 2) ? argv[2] : null;
        var path = (argc > 3) ? argv[3] : null;
        var domain = (argc > 4) ? argv[4] : null;
        var secure = (argc > 5) ? argv[5] : false;
        document.cookie = name + "=" + escape (value) +
        ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
        ((path == null) ? "" : ("; path=" + path)) +
        ((domain == null) ? "" : ("; domain=" + domain)) +
        ((secure == true) ? "; secure" : "");
}

//-------------------------------------
//---------- PopupWindow °ü·Ã ---------
function close_popupWin(time) {
	var curDate = new Date();
	curDate.setTime(curDate.getTime() + (time * 1000));
	if(document.forms[0].call.checked)
		SetCookie("popup_win", "close",curDate);
	self.close();
}

function open_PopupWin2(name, url, 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 open_PopupWin(name, url, 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';
  booklistPopupWin = window.open(url, name, 'width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
  booklistPopupWin.focus();
}

//---------- °¢ÀÚ ½ºÅ©¸° ³ôÀÌ¿¡ ¸Â°Ô popup Ã¢ open (200910) ---------------
function open_PopupWin_H(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  var window_H = screen.height;

  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='+window_H+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

//---------- news popup (200911) ----------
function news_PopupWin(ref) {
	var window_left = (screen.width-580)/2;
	var window_top = (screen.height-405)/5;
	window.open(ref,"newsWin",'width=580,height=405,status=no,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
	//window.open(ref,"newsWin",'width=580,height=390,status=no,top=' + window_top + ',left=' + window_left + '');
}

//---------- eshop °ü·Ã (addcart) (200911) ---------------
function openWin_addcart(name, url) {
	addCartWindow = window.open(url, name);
	addCartWindow.focus();
}
//-------------------------------------
//---------- eBook °ü·Ã ---------------
function openEbookWin() {
		wwidth = 230;
		wheight = screen.height -30 ;
		wleft = (screen.width) - wwidth - 9 ;

		winFeatures = "width=230,height=" + wheight + ",left=" + wleft + ",top=1";;
		//window.open ('../ebook/ebook_conditions.php','ebook_conditions',winFeatures);
		window.open ('/community/ebook/ebook_conditions.php','ebook_conditions',winFeatures);
}

//-->




