/**	DreamWeaver Script */
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
} 

/**	layer Ã³¸® */
function show(id) {
	try{
		if ( document.layers )	{
		    document.layers[id].visibility = "visible"
			//alert(document.layers[id].tt_left_box);
			//document.layers[id].style.backgroundColor='#000000';
		}
		else if ( document.all )	{
		    document.all[id].style.visibility = "visible"
			//document.all[id].style.backgroundColor='#000000';
			//alert(document.all[id].tt_left_box);
		}
	} catch(e){}
}
function hide(id) {
	try{
		if ( document.layers )		document.layers[id].visibility = "hidden"
		else if ( document.all )	document.all[id].style.visibility = "hidden"
	} catch(e){	}
}
function hide_all() {
	try{
		if ( document.layers )		document.layers.visibility = "hidden"
		else if ( document.all )	document.all.style.visibility = "hidden"
	} catch(e){	}
}

/**
*  html ¿¡¼­ ÇØ´ç id ¸¦°®´Â object ¹ÝÈ¯
*/
function getObject(objectId) { 
	// checkW3C DOM, then MSIE 4, then NN 4. 
	if(document.getElementById && document.getElementById(objectId)) { 
		return document.getElementById(objectId); 
	} else if (document.all && document.all(objectId)) { 
		return document.all(objectId); 
	} else if (document.layers && document.layers[objectId]) { 
		return document.layers[objectId]; 
	} else { 
		return false; 
	} 
}

//	- Ã¼Å© ¹Ú½º¸¦ ÀüÃ¼ Ã¼Å©ÇÏ´Â ÇÔ¼ö
function do_all_check(objid){
	try {
		var el = window.event.srcElement;
		if(el.tagName == 'IMG'){
			//	- ÀüÃ¼¼±ÅÃ¹öÆ°ÀÌ img tag ÀÎ°æ¿ì tag ¿¡ checked ¶ó´Â attribute Ãß°¡ÇØ¼­ ±× °ªÀ¸·Î ÀüÃ¼Ã¼Å©¿©ºÎ¸¦ È®ÀÎÇÑ´Ù.
			if( el.getAttribute("checked") == null ){
				el.setAttribute("checked",false);
			}
			bl = !el.getAttribute("checked");
			el.setAttribute("checked",bl);
		} else /* if( el.tagName == 'INPUT' || el.type == 'checkbox' ) */{
			//	- ÀüÃ¼¼±ÅÃ¹öÆ°ÀÌ input tag ¿¡ type ÀÌ checkbox ÀÎ°æ¿ì ÇØ´ç el ÀÇ Ã¼Å©¿©ºÎ¸¦ ÀüÃ¼Ã¼Å©¿©ºÎ·Î ÇÑ´Ù.
			bl = el.checked;
		}

		var obj = typeof(objid) == 'string' ? getObject(objid) : objid;
	    if( typeof(obj) != 'undefined'){
	      if( typeof(obj.length) == 'undefined'){
	        //	- 1°³
	        if( obj.type == "checkbox" && !obj.disabled) obj.checked = bl;
	      } else {
	        //	- ¿©·¯°³
	        for(i=0; i<obj.length; i++)	if( obj[i].type == "checkbox" && !obj[i].disabled ) obj[i].checked = bl;
	      }
	    } else {
	    }
	} catch(e) {alert(e.message);}
}

//	- Ã¼Å© ¹Ú½º°¡ Ã¼Å©µÇ¾îÀÖ´ÂÁöÀÇ ¿©ºÎ ¹ÝÈ¯
function do_chk_check(objid){
	try {
		var obj = typeof(objid)=='string' ? getObject(objid) : objid;
    var _checked = false;
    if( typeof(obj) != 'undefined'){
      if( typeof(obj.length) == 'undefined'){
        //	- 1°³
        _checked = obj.checked;
      } else {
        //	- ¿©·¯°³
        for(i=0; i<obj.length;i++){
          _checked = _checked || obj[i].checked;
        }
      }
    }
		return _checked;
	} catch(e) {alert(e.message);}
}
//Ã¼Å©¹Ú½º ÀüÃ¼¼±ÅÃ , ÀüÃ¼ÇØÁ¦
function checkBoxAll(objChkBox) 
{ 
	bChecked = (objChkBox.checked)?false:true;
	for (x=0;x<objChkBox.form.length;x++) 
	{ 
		objChkBox.form.elements[x].checked = bChecked; 
	} 
} 
//	- ¼ö·®º¯°æ1
function do_qty_change(obj,mode){
	try {
		tmp = parseInt(obj.value) + parseInt(mode);
		if(tmp<1) tmp = 1;
		obj.value = tmp;
	} catch(e) {}
}

function getvaluebyindex(obj,idx){
    if( typeof(obj) != 'undefined'){
    	return typeof(obj.length) == 'undefined' ? obj.value : obj[idx].value;
    } else {
    	return null;
    }
}
function setvaluebyindex(obj,idx,val){
    if( typeof(obj) != 'undefined'){
    	var el = typeof(obj.length) == 'undefined' ? obj : obj[idx]; 
    	el.value = val;
    } else {
    	return null;
    }
}
//	- input type=radio ÀÇ °ª ¹ÝÈ¯
function getvalueofradio(el){
	if( typeof(el)!='undefined' ){
		var ret = null;
		for(i=0;i<el.length;i++){
			if(el[i].checked){	ret = el[i].value;	break;	}
		}
		return ret;
	} else {
		alert(el+"ÀÌ Á¤ÀÇµÇ¾îÀÖÁö ¾Ê½À´Ï´Ù");
	}
}
//	- input type=radio ¿¡ °ªÀ¸·Î check
function setradiobyvalue(el,val){
	if( typeof(el)!='undefined' ){
		for(i=0;i<el.length;i++){
			el[i].checked = (el[i].value == val);
		}
	} else {
		alert(el+"ÀÌ Á¤ÀÇµÇ¾îÀÖÁö ¾Ê½À´Ï´Ù");
	}
}

function _find_top(obj){
	if( typeof(obj.parent)=='undefined' ) {
		return "";
	} else if( obj.location.host != obj.parent.location.host ) {
		return "";
	} else {
		return "parent."+_find_top(obj.parent.document);
	}
}


/**
* ÆË¾÷ »õÃ¢ ¿­±â
* @return null
*/
function do_open_popup(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable) {
	try {
		toolbar_str   = toolbar  ||typeof(toolbar  )=='undefined' ? 'yes' : 'no';
		menubar_str   = menubar  ||typeof(menubar  )=='undefined' ? 'yes' : 'no';
		statusbar_str = statusbar||typeof(statusbar)=='undefined' ? 'yes' : 'no';
		scrollbar_str = scrollbar||typeof(scrollbar)=='undefined' ? 'yes' : 'no';
		resizable_str = resizable||typeof(resizable)=='undefined' ? 'yes' : 'no';
		width  = width    ? width  : screen.width / 3 * 2;
		height = height   ? height : screen.height / 2;
		top	   = top > 0  ? top    : (screen.height - height) / 2;
		left   = left > 0 ? left   : (screen.width - width) / 2;
		var win=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);
		if(win== null) {
			alert("Â÷´ÜµÈ ÆË¾÷Ã¢À» Çã¿ëÇØ ÁÖ½Ê½Ã¿À.");
		}
	} catch(e) {
		window.open(url, name, 'width='+width+',height='+height);
	}
}

/**
 * ÆË¾÷Ã¢ ÃÊ±âÈ­
 * - body ÀÇ Ã¹ table ÀÇ width ¸¦ ±âÁØÀ¸·Î ÆË¾÷Ã¢ÀÇ »çÀÌÁî¸¦ Á¶Á¤ÇÑ´Ù.
 * 2006.04.14 -> À±µ¿ÇÏ ¼öÁ¤ - xp¿Í ´Ù¸¥ OSÀÇ »çÀÌÁî¸¦ ´Ù¸£°Ô Á¶Á¤ÇÑ´Ù.
 */
function popup_init(dbg) {
	try {
		var g_fIsSP2 = false;
		g_fIsSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
		if (g_fIsSP2) { 
			// XP SP2 ºê¶ó¿ìÀúÀÓ..
			sz = 55;
		} else {
			//XP SP2 ºê¶ó¿ìÀú°¡ ¾Æ´Ô.
			sz = 27;
		}
		var el = getObject("popup");
		if( el ){
			self.resizeTo(el.offsetWidth+10, el.offsetHeight+sz);
			if(typeof(dbg)!="undefined" && dbg)
				alert((el.offsetWidth+10)+","+(el.offsetHeight+sz));
		} else {
			el = document.getElementsByTagName("TABLE")[0];
			self.resizeTo(el.offsetWidth+10, el.offsetHeight+sz);
		}
	} catch(e) {
		alert(e.message);
	}
}

/**
* ¼±ÅÃ°ª¿¡ µû¶ó tab ÀÇ Ãâ·Â¿©ºÎ¸¦ Á¶Á¤ÇÑ´Ù.
* @param idkey	-html »óÀÇ object idkey
* @param attr	-ÇØ´ç object ÀÇ attribute ¸í
* @param val	-attribute °ª°ú ºñ±³ÇÒ °ª.
* @return null
*/
function do_change_tab(idkey,attr,val){
	try{
		var trobj = _get_elements_by_id(idkey);
		if( typeof(trobj.length) == 'undefined'){
			if(trobj.getAttribute(attr)!=null)
			_el_active( trobj, eval("/^("+trobj.getAttribute(attr)+")$/"+".test(val)") );
		} else {
			for(i=0;i<trobj.length;i++){
				if(trobj[i].getAttribute(attr)!=null)
				_el_active( trobj[i], eval("/^("+trobj[i].getAttribute(attr)+")$/"+".test(val)") );
			}
		}
	} catch(e){
	}
}

function _get_elements_by_id(idkey){
	if (document.all){
		return document.all[idkey];
	} else {
		var _return = new Array();
		var tagarray = new Array('TABLE','TR','TD','SPAN','DIV');
		for(var i=0; i < tagarray.length; i++) {
			el = document.getElementsByTagName(tagarray[i]);
			if( typeof(el.length) == 'undefined'){
				if( el.getAttribute('ID') == idkey ) {
					_return[_return.length] = el;
				}
			} else {
				for(i0=0;i0<el.length;i0++) {
					if( el[i0].getAttribute('ID') == idkey ){
						_return[_return.length] = el[i0];
					}
				}
			}
		}
		return _return;
	}
}

function _el_active(el,active){
	try {
		el.style.display = active ? "" : "none";
		el.style.visibility = active ? "visible" : "hidden";;
		el.disabled = !active;
	} catch(e){
	}
}

/** *****************************************
 * ÄíÅ°°ü·Ã ¸Þ¼Òµå Á¤ÀÇ
 ****************************************** */
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 to create or update a cookie.
//    name - String object object containing the cookie name.
//    value - String object containing the cookie value.  May contain any valid string characters.
//    [expires] - Date object containing the expiration data of the cookie.  If omitted or null, expires the cookie at the end of the current session.
//    [path] - String object indicating the path for which the cookie is valid. If omitted or null, uses the path of the calling document.
//    [domain] - String object indicating the domain for which the cookie is valid.  If omitted or null, uses the domain of the calling document.
//    [secure] - Boolean (true/false) value indicating whether cookie transmission requires a secure channel (HTTPS).  
//
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" : "");
}

function DeleteCookie (name) {
	var exp = new Date();
	exp.setTime (exp.getTime() - 1);  // This cookie is history
	var cval = GetCookie (name);
	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}

/******************************************
 *	ÀÔ·Â°ü·Ã
 ******************************************/
//	¼ýÀÚÀÔ·Â¸¸ Çã¿ë
function only_number(){
	var c = window.event.keyCode;
	var e = window.event.srcElement;
	var s = window.event.shiftKey;
	if( s && !(c==9) ){
		window.event.returnValue = false;
		return false;
	}
	var isNumber    = (c >= 48 && c <= 57) || (c >= 96 && c <=105);
	var isDirection = (c >= 37 && c <= 40) || (c ==  9 && window.event.shiftKey) || (c ==  9);
	var isDelete    = (c ==  8 || c == 46);
	var isEnter     = (c == 13);

	window.event.returnValue = isNumber || isDirection || isDelete || isEnter;
	return isNumber || isDirection || isDelete || isEnter;
}
// ¼ýÀÚÀÔ·ÂÇã¿ë2
function js_CheckNum(obj)
{	
	var num = "0123456789.";
	var resident_num = obj.value;
	for(var i = 0; i < resident_num.length; i ++) {
		if(num.indexOf(resident_num.substring(i, i + 1)) < 0) {
			alert("¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä.");
			obj.value = "";
			obj.focus();
			return 0;
		}
	}
	return 1;
}

// Å° ÀÌº¥Æ® ¹ß»ý ½Ã ¼ýÀÚ¸¸ ¹Þ¾ÆµéÀÓ
function acceptNumber()
{
    if (event.keyCode < 48 || event.keyCode > 57) {
        event.returnValue = false;
    }
}

function _check_words_length(tgt,max){
	var el = window.event.srcElement;
	if( typeof(max)!="undefined" && el.value.length >= parseInt(max)){
		alert(max+"ÀÚ ±îÁö¸¸ ÀÔ·ÂÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù");
		el.value = el.value.substring(0,99);
	}
	tgt.innerText = el.value.length;
}

/******************************************
 *	iframe °ü·Ã
 ******************************************/
//	- iframe ¿¡ ÆäÀÌÁöÈ£Ãâ
function open_iframe(frameid,oURL){
	var obj = getObject(frameid);
	obj.src=oURL;
	obj.style.display='';
	resizeIframe(frameid);
}
//	- iframe ¼û±â±â
function hide_iframe(frameid){
	var obj = getObject(frameid);
	obj.style.display='none';
}

//	- iframe »çÀÌÁîº¯È­½Ã È£Ãâ
function resizeIframe(frameid) {
	var currentfr=document.getElementById(frameid)
	if (currentfr && !window.opera){
		if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
			currentfr.height = currentfr.contentDocument.body.offsetHeight; 
		else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
			currentfr.height = currentfr.Document.body.scrollHeight;

		if( currentfr.getAttribute("resized") == null){
			if (currentfr.addEventListener)	currentfr.addEventListener("load", readjustIframe, false)
			else if (currentfr.attachEvent)	currentfr.attachEvent("onload", readjustIframe)
			currentfr.setAttribute("resized","true");
		}

	}
}
//	- iframe »çÀÌÁîº¯È­½Ã È£Ãâ
function readjustIframe(loadevt) {
	var crossevt=(window.event)? event : loadevt
	var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
	if (iframeroot)
		resizeIframe(iframeroot.id);
}


//·¹ÀÌ·¯ ¸¶¿ì½º ¿À¹ö À§Ä¡ 
function clickXY(e,id) { 
	
	var layerID=eval("document.all."+id);
	var x,y; 
	if(e) { 
		x=e.pageX; 
		y=e.pageY; 
	}else{ 
		x=event.x; 
		y=event.y; 
	} 
	
//	alert("offsetX:"+event.offsetX+" x:"+event.x);
	//layerID.style.left =280;
	//alert("x:"+x+"scrollLeft:"+document.body.scrollLeft);
	var k = 150;
	if (document.body.offsetWidth > 1024)
	{
		k = k + (document.body.offsetWidth-1024)/2;	
	}
	layerID.style.left =k;
	layerID.style.top =y+document.body.scrollTop-30;		
}




function clickXY2(e,id) { 
	
	var layerID=eval("document.all."+id);
	var x,y; 
	if(e) { 
		x=e.pageX; 
		y=e.pageY; 
	}else{ 
		x=event.x; 
		y=event.y; 
	} 
	
	layerID.style.left =300;
	layerID.style.top =y+document.body.scrollTop;		
}


//·¹ÀÌ·¯ ¸¶¿ì½º ¿À¹ö À§Ä¡ 
function clickXY3(e,id) { 
	
	var layerID=eval("document.all."+id);
	var x,y; 

	if(e) { 
		x=e.pageX; 
		y=e.pageY; 
	}else{ 
		x=event.x; 
		y=event.y; 
	} 
	
	layerID.style.left =x+document.body.scrollLeft-80;
	layerID.style.top = y;
}

//·¹ÀÌ¾î ¸¶¿ì½º ¿À¹ö ¼¼·Î À§Ä¡ °íÁ¤(»ó´Ü)  
function clickXY3_01(e,id) { 
	
	var layerID=eval("document.all."+id);
	var x,y; 

	if(e) { 
		x=e.pageX; 
		y=153;
		//y=e.pageY; 
	}else{ 
		x=event.x; 
		y=153;
		//y=event.y; 
	} 
	
	layerID.style.left =x+document.body.scrollLeft-80;
	layerID.style.top = y;
}

//·¹ÀÌ¾î ¸¶¿ì½º ¿À¹ö ¼¼·Î À§Ä¡ °íÁ¤(Áß´Ü)  
function clickXY3_02(e,id) { 
	var layerID=eval("document.all."+id);
	var x,y; 

	if(e) { 
		x=e.pageX; 
		//y=170;
		y=e.pageY; 
	}else{ 
		x=event.x; 
		//y=170;
		y=event.y; 
	} 
	
	layerID.style.left =x+document.body.scrollLeft-80;
	layerID.style.top = y;
}

function moneyFormats(num){
	num = new String(num);
	num = num.replace(/,/gi,"");
	return moneyFormatChange(num);
}

function moneyFormatChange(num){
var sign="";
	if(isNaN(num)){
		alert("??? ??? ? ????.");
		return 0;
	}
	if(num == 0)
 	return num;
	if(num < 0){
  	num= num*(-1);
    sign = "-";
  } else {
    num = num*1;
  }
	var temp = "";
  var pos = 3;
	num = new String(num)
  num_len = num.length;
	while(num_len>0) {
  	num_len = num_len-pos;
		if(num_len < 0){
			pos = num_len+pos;
			num_len = 0;
		}
    temp = ","+ num.substr(num_len,pos) + temp;
  }
	return sign + temp.substr(1);
}

/****************************************************
 *	´Þ·Â°ü·Ã
 ***************************************************/
function addzero(val){
	try{
		switch(String(val).length){
		case 0:	return "00";
		case 1: return "0"+val;
		case 2: return val;
		}
	}catch(e){
		alert(e.message);
	}
}
//	ÇöÀç³¯Â¥¸¦ ed ¿¡. term ÀÇ±â°£ÀÌÀüÀÇ ³¯ÀÚ¸¦ sd¿¡ ¼³Á¤ÇÑ´Ù.
//	- sd,ed ´Â [0]³â,[1]¿ù,[2]ÀÏ °¢ 3°³ÀÇ field·Î ±¸¼ºµÈ array id °´Ã¼¸íÀÌ´Ù.
//	- term Àº ¼ýÀÚ+[D]ÀÏ,[W]ÁÖ,[M]¿ù ÀÇ stringÀ¸·Î ±¸¼º
// - 11.08 Y Ãß°¡
function changeNearDate(sd,ed,term){
	var pattern = /^([0-9]*)(D|W|M|Y){1}$/i
	if (pattern.test(term)){
		_ed = new Date();
		ed[0].value = _ed.getFullYear();
		ed[1].value = addzero(_ed.getMonth()+1);
		ed[2].value = addzero(_ed.getDate());
		switch(RegExp.$2){
		case "D":
			_sd = new Date(_ed.getFullYear(),_ed.getMonth(),_ed.getDate()-parseInt(RegExp.$1));
			break;
		case "W":
			_sd = new Date(_ed.getFullYear(),_ed.getMonth(),_ed.getDate()-(parseInt(RegExp.$1)*7));
			break;
		case "M":
			_sd = new Date(_ed.getFullYear(),_ed.getMonth()-parseInt(RegExp.$1),_ed.getDate());
			break;
		case "Y":
			_sd = new Date(_ed.getFullYear()-parseInt(RegExp.$1),_ed.getMonth(),_ed.getDate());
			break;
		default:
			_sd = new Date();
			break;
		}
		sd[0].value = _sd.getFullYear();
		sd[1].value = addzero(_sd.getMonth()+1);
		sd[2].value = addzero(_sd.getDate());
	}
}

function isValidJumin(num) {
    var pattern = /^([0-9]{6})-?([0-9]{7})$/; 
    if (!pattern.test(num)) return false;

    num = RegExp.$1 + RegExp.$2;
	num2= RegExp.$2;
	if( num2.substring(0,1)=='5'||num2.substring(0,1)=='6'||num2.substring(0,1)=='7'||num2.substring(0,1)=='8'){
		return isFgnNo(num);
	}

	var sum = 0;
	var last = num.charCodeAt(12) - 0x30;
	var bases = "234567892345";
	for (var i=0; i<12; i++) {
		if (isNaN(num.substring(i,i+1))) return false;
		sum += (num.charCodeAt(i) - 0x30) * (bases.charCodeAt(i) - 0x30);
	}
	var mod = sum % 11;
	return ((11 - mod) % 10 == last) ? true : false;
}

// Àç¿Ü±¹ÀÎ ¹øÈ£ Ã¼Å©
function isFgnNo(fgnno){
	var sum=0;
    var odd=0;
    buf = new Array(13);
    try{
		for(i=0; i<13; i++){
			buf[i]=parseInt(fgnno.charAt(i));
		}
        odd = buf[7]*10 + buf[8];
		if(odd%2 != 0){
			return  false;
		}
        if((buf[11]!=6) && (buf[11]!=7) && (buf[11]!=8) && (buf[11]!=9)){
			return false;
		}
        multipliers = [2,3,4,5,6,7,8,9,2,3,4,5];
        for(i=0, sum=0; i<12; i++){
			sum +=  (buf[i] *= multipliers[i]);
        }
        sum = 11 - (sum%11);
        if(sum >= 10){
			sum -= 10;
        }
        sum += 2;
        if(sum >= 10){
            sum -= 10;
        }
        if(sum != buf[12]){
            return  false
        }
        return true;
    }catch(e){
        return false;
    }
}

// ÃâÆÇ»ç CI ÀÌ¹ÌÁö ¾øÀ» ¶§ º¸¿©ÁÖ´Â NoImage ÀÌ¹ÌÁö 
function noPubCiImage(obj){
	//obj.src = "http://image.kyobobook.co.kr/newimages/apps/b2b_academy/common/noimage_publish.gif";
	obj.src = "http://image.kyobobook.co.kr/newimages/apps/b2b_academy02/common/noimg_187_79.gif";
}
// ÃâÆÇ»ç ±âÅ¸ ÀÌ¹ÌÁö ¾øÀ» ¶§ º¸¿©ÁÖ´Â NoImage ÀÌ¹ÌÁö 
function noPubEtcImage(obj){
	obj.src = "http://image.kyobobook.co.kr/newimages/apps/b2b_academy/common/noimage_publish02.gif";
}