<!--
 SiteUrl = '';
//²É¹è´Þ Àü¹® ºÐ¾ç¸ô


url_list = new Array();
newwin_list = new Array();
window_list = new Array()
fullwin_list = new Array()


// ÇÃ·¹½ÃÆÄÀÏ¿¡¼­ ¸µÅ©°É¶§¿¡´Â
// javascript:go_site(1);
// ÀÌ·±½ÄÀ¸·Î ¸µÅ©°É¸é µË´Ï´Ù.
// ¹øÈ£´Â url_list[¹øÈ£]°ªÀ» ³ÖÀ¸¸é µË´Ï´Ù.
 
url_list[100] = '/index.htm';                                                       // ¸ÞÀÎÆäÀÌÁö

//[1]
url_list[111] = '/shop/bonsa_shop.htm?type=product_list&brandcode=001001000000000000'; //°ÅÇ°¸ñ¿å/Àå¹Ì²Éºñ´©
url_list[112] = '/shop/bonsa_shop.htm?type=product_list&brandcode=001002000000000000'; //±ÝÀå¹Ì(ÀÍÀÏ¹è¼Û)
url_list[113] = '/shop/bonsa_shop.htm?type=product_list&brandcode=001003000000000000'; //²É´Ù¹ß
url_list[114] = '/shop/bonsa_shop.htm?type=product_list&brandcode=001004000000000000'; //²É¹Ù±¸´Ï
url_list[115] = '/shop/bonsa_shop.htm?type=product_list&brandcode=001005000000000000'; //²É»óÀÚ
url_list[116] = '/shop/bonsa_shop.htm?type=product_list&brandcode=001006000000000000'; //¼¼Æ®»óÇ°
url_list[117] = '/shop/bonsa_shop.htm?type=product_list&brandcode=001007000000000000'; //µ¿¾ç¶õ
url_list[118] = '/shop/bonsa_shop.htm?type=product_list&brandcode=001008000000000000'; //¼­¾ç¶õ
url_list[119] = '/shop/bonsa_shop.htm?type=product_list&brandcode=001009000000000000'; //ºÐÀç
url_list[120] = '/shop/bonsa_shop.htm?type=product_list&brandcode=001010000000000000'; //È­ºÐ
url_list[121] = '/shop/bonsa_shop.htm?type=product_list&brandcode=001011000000000000'; //”ÊºÎÀÛ
url_list[122] = '/shop/bonsa_shop.htm?type=product_list&brandcode=001012000000000000l'; //À£ºù
url_list[123] = '/shop/bonsa_shop.htm?type=product_list&brandcode=001013000000000000'; //ÃàÇÏ±ÙÁ¶È­È¯

//[2]
url_list[211] = '/';       //1
url_list[212] = '/';       //2
url_list[213] = '/';       //3
url_list[214] = '/';       //4


//[È¸¿øÁ¤º¸]
url_list[311] = '/member/member.htm?type=login';       //·Î±×ÀÎ
url_list[312] = '/member/member.htm?type=join';      //È¸¿ø°¡ÀÔ
url_list[313] = '/member/insert.htm?type=logout';     //·Î±×¾Æ¿ô
url_list[314] = '/member/member.htm?type=modify';     //Á¤º¸¼öÁ¤
url_list[315] = '/member/member.htm?type=idsearch';   //IDPWÃ£±â
url_list[316] = '/member/member.htm?type=mypage';     //¸¶ÀÌÆäÀÌÁö


//[°Ô½ÃÆÇ]
url_list[411] = '/bbs/bbs.htm?code=notice';               //°øÁö»çÇ×
url_list[412] = '/bbs/bbs.htm?code=qna';                  //°í°´»ó´ã½Ç


//##############################   ÆäÀÌÁö Á¤ÀÇ   ###############################

// »õÃ¢ÀÎ ¸Þ´º
//newwin_list[101] = 'true';

// À©µµ¿ì·Î ¿­¸®´Â°æ¿ì
//window_list[101] = 'width=450 height=350 resizable=no';

//ÀüÃ¼È­¸éÀÎ ¸Þ´º
//fullwin_list[10] = 'true'

function go_site(num)
{
  if(url_list[num])
  {
// º»Ã¢À¸·Î ÀÌµ¿ÇÏ´Â °æ¿ì
    if(newwin_list[num] != 'true' && fullwin_list[num] != 'true' && (window_list[num] == '' || window_list[num] == null))
    {
    	location=url_list[num];
    }

// À©µµ¿ì Ã¢À¸·Î ¿­¸®´Â°æ¿ì
    if(window_list[num] != '' && window_list[num] != null)
    {
      window.open(url_list[num], 'new_win', window_list[num]);
    }


// ÀüÃ¼Ã¢À¸·Î ¿­¸®´Â °æ¿ì
    if(fullwin_list[num] == 'true')
    {
      window.open(url_list[num], 'new_win', 'width=1024 height=724 resizable=yes');
    }


// »õÃ¢À¸·Î ¿­¸®´Â°æ¿ì
    if(newwin_list[num] == 'true')
    {
      window.open(url_list[num], '_blank', 'directories=yes, titlebar=yes, toolbar=yes, menubar=yes, statusbar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes');
    }
  }
}


function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}



function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}


var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";

function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}

function getSty(id) {
	x = getRef(id);
	return (isNS4 ? getRef(id) : getRef(id).style);
}

//********************************
//E-mail Ã¼Å©
//********************************
	function isEmail(str){ 
	  // regular expression Áö¿ø ¿©ºÎ Á¡°Ë
	  var supported = 0;
		  if (window.RegExp) {
			var tempStr = "a";
			var tempReg = new RegExp(tempStr);
			    if (tempReg.test(tempStr)) supported = 1;
		  }
		  if (!supported) 
			return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
			var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
			var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
			return (!r1.test(str) && r2.test(str));
	}

//********************************
//ÁÖ¹Îµî·Ï¹øÈ£ Ã¼Å©
//********************************
	function Jumin_chk(resident){ 
		IDtot =0;
		IDAdd = "234567892345";
		for(i=0; i<12; i++)
			IDtot = IDtot + parseInt(resident.substring(i, i+1)) * parseInt(IDAdd.substring(i, i+1));
			IDtot = 11 - (IDtot%11);
			if (IDtot == 10) 
				IDtot = 0;
			else if (IDtot == 11) 
				IDtot =1;
					  
			if(parseInt(resident.substring(12, 13)) != IDtot) {
				return false;
			}
			return true;
	}

//************************************
//»ç¾÷ÀÚ¹øÈ£ Ã¼Å©
//************************************
function checkBizID( bizID ){
	// bizID´Â ¼ýÀÚ¸¸ 10ÀÚ¸®·Î ÇØ¼­ ¹®ÀÚ¿­·Î ³Ñ±ä´Ù.
	var checkID = new Array(1, 3, 7, 1, 3, 7, 1, 3, 5, 1);
	var tmpBizID, i, chkSum=0, c2, remander;

	for (i=0; i<=7; i++) chkSum += checkID[i] * bizID.charAt(i);

	c2 = "0" + (checkID[8] * bizID.charAt(8));
	c2 = c2.substring(c2.length - 2, c2.length);

	chkSum += Math.floor(c2.charAt(0)) + Math.floor(c2.charAt(1));

	remander = (10 - (chkSum % 10)) % 10 ;

	if (Math.floor(bizID.charAt(9)) == remander) return true; // OK!
	return false;
}

//**************************************
//ÇÃ·¡½Ã ÆÐÄ¡ 
//**************************************
function _ws_(id) 
{ 
        var _object = id.innerHTML; 
        _object = _object.replace("<!--", ""); 
        _object = _object.replace("-->" , ""); 
        document.write(_object); id.id=""; 
}

function _showflash(str, wid, hei) {

	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+wid+"' height='"+hei+"'>")
	document.write("<param name='movie' value='"+str+"'>")
	document.write("<param name='wmode' value='transparent'>")
	document.write("<param name='quality' value='high'>")
	document.write(" <embed src='"+str+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+wid+"' height='"+hei+"'></embed></object>")

}


//**************************************
//¾ÆÀÌµð Áßº¹È®ÀÎ Ã¢ ¿ÀÇÂ   
//**************************************

function CheckID(){
	var f = document.registform;
	var userid = f.userid.value;
	if (userid=='') {
		alert("ID¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		f.userid.focus();
		return false;
	}
	for (i = 0; i < userid.length; i++) {
		if (userid.charAt(i) >= '0' && userid.charAt(i) <= '9')
			continue;
		else if (userid.charAt(i) >= 'a' && userid.charAt(i) <= 'z')
			continue;
		else if (userid.charAt(i) >= 'A' && userid.charAt(i) <= 'Z')
			continue;
		else {
			alert("ID¿¡´Â ¿µ¹®ÀÚ, ¼ýÀÚ ¹× '_' ¸¸ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
			f.userid.select();
			return false;
		}
	}
	if (userid.length < 4 || userid.length > 12) {
		alert("ID´Â 4ÀÚ ÀÌ»ó, 8ÀÚ ÀÌÇÏ·Î¸¸ °¡´ÉÇÕ´Ï´Ù.");
		f.userid.focus();
		return false;
	}
	window.open('userCheck.php?userid='+userid,'_ChkID','width=357,height=200,status=no,scrollbars=no,resize=no, left=5, top=5');
}

function chk_login(){
	var f = document.form_login;

	if(!f.userid.value){
		alert("È¸¿ø ¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		ID_NAME();
		f.userid.focus();
		return false;
	}
	if(!f.pass.value){
		alert("È¸¿ø ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		PASS_NAME();
		f.pass.focus();
		return false;
	}
 }


function ID_NAME() {
	f = document.form_login;
	f.userid.style.background="#FFFFFF";
}

function PASS_NAME() {
	f = document.form_login;
	f.pass.style.background="#FFFFFF";
}



//-->
//****************************************
//¸µÅ© Å×µÎ¸® ¾ø¾Ö±â
//****************************************
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;
//-->
//****************************************
//°Ë»ö
//****************************************
function search_chk(){
	var f=document.form_search;
	if(f.part.options[0].selected == true){
		if(!f.word.value){
			alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			f.word.focus();
			return false;
		}
	}
}