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];}
}

// ¼ýÀÚ¸¸ ÀÔ·Â (INPUT) *********************************************************
function num_only()
{
	if((event.keyCode < 48) || (event.keyCode > 57))
	{
		event.returnValue=false;
	}
}

// ÁÖ¹Îµî·Ï¹øÈ£ Ã¼Å© ***********************************************************
function ssnCheck(str_ssn)
{
	var jumin1	= str_ssn.substr(0,6);
	var jumin2	= str_ssn.substr(6,7);
	var yy		= jumin1.substr(0,2);		// ³âµµ
	var mm		= jumin1.substr(2,2);		// ¿ù
	var dd		= jumin1.substr(4,2);		// ÀÏ
	var genda	= jumin2.substr(0,1);		// ¼ºº°
	var msg, ss, cc;

	// ¼ýÀÚ°¡ ¾Æ´Ñ °ÍÀ» ÀÔ·ÂÇÑ °æ¿ì
	if (!isNumeric(jumin1))
		return false;

	// ±æÀÌ°¡ 6ÀÌ ¾Æ´Ñ °æ¿ì
	if (jumin1.length != 6)
		return false;

	// Ã¹¹øÂ° ÀÚ·á¿¡¼­ ¿¬¿ùÀÏ(YYMMDD) Çü½Ä Áß ±âº» ±¸¼º °Ë»ç
	if (yy < "00" || yy > "99" || mm < "01" || mm > "12" || dd < "01" || dd > "31")
		return false;

	// ¼ýÀÚ°¡ ¾Æ´Ñ °ÍÀ» ÀÔ·ÂÇÑ °æ¿ì
	if (!isNumeric(jumin2))
		return false;

	// ±æÀÌ°¡ 7ÀÌ ¾Æ´Ñ °æ¿ì
	if (jumin2.length != 7)
		return false;

	// ¿¬µµ °è»ê - 1 ¶Ç´Â 2: 1900³â´ë, 3 ¶Ç´Â 4: 2000³â´ë
	cc = (genda == "1" || genda == "2") ? "19" : "20";

	// Ã¹¹øÂ° ÀÚ·á¿¡¼­ ¿¬¿ùÀÏ(YYMMDD) Çü½Ä Áß ³¯Â¥ Çü½Ä °Ë»ç
	if (!isYYYYMMDD(parseInt(cc+yy), parseInt(mm), parseInt(dd)))
		return false;

	// ¼ºº°ºÎºÐÀÌ 1 ~ 4 °¡ ¾Æ´Ñ °æ¿ì -> Àç¿Ü±¹ÀÎ¹øÈ£ Ã¼Å©·Î µ¹¸²
	if (genda < "1" || genda > "4")
		return fsnCheck(str_ssn);
	else
	{
		// Check Digit °Ë»ç
		if (!isSSN(jumin1, jumin2))
			return false;
	}

	return true;
}

function isSSN(s1, s2)
{
	n = 2;
	sum = 0;
	for (i=0; i<s1.length; i++)
		sum += parseInt(s1.substr(i, 1)) * n++;
	for (i=0; i<s2.length-1; i++)
	{
		sum += parseInt(s2.substr(i, 1)) * n++;
		if (n == 10) n = 2;
	}
	c = 11 - sum % 11;
	if (c == 11) c = 1;
	if (c == 10) c = 0;
	if (c != parseInt(s2.substr(6, 1))) return false;
	else return true;
}

function isYYYYMMDD(y, m, d)
{
	switch (m)
	{
		case 2:        // 2¿ùÀÇ °æ¿ì
			if (d > 29) return false;
			if (d == 29)
			{
				// 2¿ù 29ÀÇ °æ¿ì ´çÇØ°¡ À±³âÀÎÁö¸¦ È®ÀÎ
				if ((y % 4 != 0) || (y % 100 == 0) && (y % 400 != 0))
				return false;
			}
			break;
		case 4:        // ÀÛÀº ´ÞÀÇ °æ¿ì
		case 6:
		case 9:
		case 11:
		if (d == 31) return false;
	}
	// Å« ´ÞÀÇ °æ¿ì
	return true;
}

function isNumeric(s)
{
	for (i=0; i<s.length; i++)
	{
		c = s.substr(i, 1);
		if (c < "0" || c > "9")
			return false;
	}
	return true;
}

// Àç¿Ü±¹ÀÎ¹øÈ£ Ã¼Å© ***********************************************************
function fsnCheck(str_fsn)
{
	var sum = 0;
	var odd = 0;
	buf = new Array(13);
	for(i=0; i<13; i++)
	{
		buf[i] = parseInt(str_fsn.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;
}


// ÀÌ¸ÞÀÏ Ã¼Å© *****************************************************************
function emailCheck(str_email)
{
	var pattern = /^(.+)@(.+)$/;
	var atom = "\[^\\s\\(\\)<>#@,;:!\\\\\\\"\\.\\[\\]\]+";
	var word = "(" + atom + "|(\"[^\"]*\"))";
	var user_pattern = new RegExp("^" + word + "(\\." + word + ")*$");
	var ip_pattern = /^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
	var domain_pattern = new RegExp("^" + atom + "(\\." + atom +")*$");

	var arr = str_email.match(pattern);
	if (!arr)
		return false;			//"Email address seems incorrect (check @ and .'s)";
	if (!arr[1].match(user_pattern))
		return false;			//"The username doesn't seem to be valid.";

	var ip = arr[2].match(ip_pattern);
	if (ip)
	{
		for (var i=1; i<5; i++)
		{
			if (ip[i] > 255)
				return false;	//"Destination IP address is invalid!";
		}
	}
	else
	{
		if (!arr[2].match(domain_pattern))
			return false;		//"The domain name doesn't seem to be valid.";
		var domain = arr[2].match(new RegExp(atom,"g"));
		if (domain.length < 2)
			return false;		//"This address is missing a hostname!";
		if (domain[domain.length-1].length < 2 || domain[domain.length-1].length > 3)
			return false;		//"The address must end in a three-letter domain, or two letter country.";
	}

	return true;
}

// ¼ýÀÚÆ÷¸Ë (,) ³Ö±â ***********************************************************
function number_format(number)
{
	unit		= 3;
	i			= 0;
	rst			= '';
	number		= number + '';
	len			= number.length;
	arr			= new Array(len);

	while(i <len){
		arr[i]	= number.charAt(len-i-1);
		rst		= arr[i] + rst;
		i++;
		if(i % unit == 0 && i != len)
			rst	= ',' + rst;
	}
	return rst;
}


// ÆË¾÷Ã¢ ¶ç¿ì±â ***************************************************************
function popup_win(url, target, width, height, left, top, scrollbars)
{
	if (left == "")
		left	= 0;
	if (top == "")
		top		= 0

	setting = 'width='+ width +', height='+ height +', left='+ left +', top='+ top +', scrollbars='+ scrollbars;
	window.open(url, target, setting);
}

// ½ÃÁð±Ç ÆÄÀÏ¾÷·Îµå Ã¼Å© ******************************************************
function checkUpload(txtJumin_id, jumin_no, preview, hdnJumin_id)
{
	var result = true;

	if (txtJumin_id != "")
	{
		var jumin = document.getElementById(txtJumin_id);

		if (jumin.value == "")
		{
			alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.");
			jumin.focus();
			result = false;
		}
		else if (!ssnCheck(jumin.value))
		{
			alert ("ÁÖ¹Îµî·Ï¹øÈ£°¡ Àß¸ø µÇ¾ú½À´Ï´Ù.");
			jumin.focus();
			result = false;
		}
	}

	if (result == true)
	{
		popup_upload_st(jumin_no, preview, hdnJumin_id);
	}
}

// File Upload Ã¢ ¶ç¿ì±â (½ÃÁð±Ç ÀÌ¹ÌÁö) ***************************************
function popup_upload_st(jumin_no, preview, hdnJumin_id)
{
	var win = '/Toolkit/NWS_upload/fileUpload01.aspx?jumin_no='+ jumin_no +'&preview='+ preview + '&hdnJumin_id=' + hdnJumin_id;
	window.open(win, 'popup', 'width=350, height=254');
}

// ½ÃÁð±Ç ÆÄÀÏ¾÷·Îµå Ã¼Å© ******************************************************
function checkUpload_db(txtJumin_id, jumin_no, preview, hdnJumin_id)
{
	var result = true;

	if (txtJumin_id != "")
	{
		var jumin = document.getElementById(txtJumin_id);

		if (jumin.value == "")
		{
			alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.");
			jumin.focus();
			result = false;
		}
		else if (!ssnCheck(jumin.value))
		{
			alert ("ÁÖ¹Îµî·Ï¹øÈ£°¡ Àß¸ø µÇ¾ú½À´Ï´Ù.");
			jumin.focus();
			result = false;
		}
	}

	if (result == true)
	{
		popup_upload_mp();
	}
}

// ½ÃÁð±Ç ÆÄÀÏ¾÷·Îµå Ã¼Å© ******************************************************
function checkUpload_db2(txtJumin_id, jumin_no, preview, hdnJumin_id)
{
	var result = true;

	if (txtJumin_id != "")
	{
		var jumin = document.getElementById(txtJumin_id);

		if (jumin.value == "")
		{
			alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.");
			jumin.focus();
			result = false;
		}
		else if (!ssnCheck(jumin.value))
		{
			alert ("ÁÖ¹Îµî·Ï¹øÈ£°¡ Àß¸ø µÇ¾ú½À´Ï´Ù.");
			jumin.focus();
			result = false;
		}
	}

	if (result == true)
	{
		popup_upload_mp_flag(jumin_no);
	}
}



// File Upload Ã¢ ¶ç¿ì±â (¸¶ÀÌÆäÀÌÁö ÀÌ¹ÌÁö) ***********************************
function popup_upload_mp()
{
	var win = '/Toolkit/NWS_upload/fileUpload02.aspx';
	window.open(win, 'popup', 'width=350, height=254');
}

// File Upload Ã¢ ¶ç¿ì±â (¼¼¼Ç°ª»ç¿ë¾ÈÇÏ°í ÀÌ¹ÌÁö ¼öÁ¤) ***********************************
function popup_upload_mp_flag(jumin_no)
{
	var win = '/Toolkit/NWS_upload/fileUpload03.aspx?jumin_no='+jumin_no;
	window.open(win, 'popup', 'width=350, height=254');
}

// ÀÎÇ²°ª °¡Á®¿À±â *************************************************************
function getTextValue(input_id)
{
	var input = document.getElementById(input_id);
	return input.value;
}

// ÁÖ¼ÒÃ£±â ÆË¾÷ ***************************************************************
function popup_address(zipcode, address1, address2)
{
	var win = '/Toolkit/NWS_address/address.aspx?zipcode='+ zipcode +'&address1='+ address1 +'&address2='+ address2;
	popup_win(win, 'address', 386, 450, 100, 100, 1);
}

// ÀÌ¹ÌÁö Å©±â Á¶ÀýÇÏ¿© img ÅÂ±× Ãâ·Â ******************************************
function change_image_size(imgFile, limit_width, limit_height)
{
	var real_width			= imgFile.width;
	var real_height			= imgFile.height;

	if (limit_width == 0)
		limit_width			= real_width;
	if (limit_height == 0)
		limit_height		= real_height;

	if (real_width >= real_height)
	{
		if (real_width <= limit_width)
		{
			result_width	= real_width;
			result_height	= real_height;
		}
		else
		{
			result_width	= limit_width;
			result_height	= parseInt((real_height * limit_width) / real_width);
		}
	}
	else
	{
		if (real_height <= limit_height)
		{
			result_width	= real_width;
			result_height	= real_height;
		}
		else
		{
			result_width	= parseInt((real_width * limit_height) / real_height);
			result_height	= limit_height;
		}
	}

	imgFile.width			= result_width;
	imgFile.height			= result_height;
}


// ÀÌ¹ÌÁö Á¦Å©±â·Î ÆË¾÷Ã¢ ¶ç¿ì±â ***********************************************
function popup_realsize(src)
{
	var imgObj = new Image();
	imgObj.src = src;
	var wopt = "scrollbars=no,status=no,resizable=no";
	wopt += ",width=" + imgObj.width;
	wopt += ",height=" + imgObj.height;
	var wbody = "<head><title>»çÁø º¸±â</title>";
	wbody += "<s"+"cript language='javascript'>";
	wbody += "function finalResize(){";
	wbody += "  var oBody=document.body;";
	wbody += "  var oImg=document.images[0];";
	wbody += "  var xdiff=oImg.width-oBody.clientWidth;";
	wbody += "  var ydiff=oImg.height-oBody.clientHeight;";
	wbody += "  window.resizeBy(xdiff,ydiff);";
	wbody += "}";
	wbody += "</"+"script>";
	wbody += "</head>";
	wbody += "<body onLoad='finalResize()' style='margin:0'>";
	wbody += "<a href='javascript:window.close()'><img src='" + src + "' border=0></a>";
	wbody += "</body>";
	winResult = window.open("about:blank","",wopt);
	winResult.document.open("text/html", "replace");
	winResult.document.write(wbody);
	winResult.document.close();
	return;
}

// ÀÌ¹ÌÁö Á¦Å©±â·Î ÆË¾÷Ã¢ ¶ç¿ì±â ***********************************************
function popup_realsize_db(src,jumin)
{
	var imgObj = new Image();
	imgObj.src = src+"?jumin_no="+jumin;
	src = src+"?jumin_no="+jumin;
	var wopt = "scrollbars=no,status=no,resizable=no";
	wopt += ",width=" + imgObj.width;
	wopt += ",height=" + imgObj.height;
	var wbody = "<head><title>»çÁø º¸±â</title>";
	wbody += "<s"+"cript language='javascript'>";
	wbody += "function finalResize(){";
	wbody += "  var oBody=document.body;";
	wbody += "  var oImg=document.images[0];";
	wbody += "  var xdiff=oImg.width-oBody.clientWidth;";
	wbody += "  var ydiff=oImg.height-oBody.clientHeight;";
	wbody += "  window.resizeBy(xdiff,ydiff);";
	wbody += "}";
	wbody += "</"+"script>";
	wbody += "</head>";
	wbody += "<body onLoad='finalResize()' style='margin:0'>";
	wbody += "<a href='javascript:window.close()'><img src='" + src + "' border=0></a>";
	wbody += "</body>";
	winResult = window.open("about:blank","",wopt);
	winResult.document.open("text/html", "replace");
	winResult.document.write(wbody);
	winResult.document.close();
	return;
}


// TRIM ************************************************************************
function trim(str)
{
	str += '';				// ¼ýÀÚ¶óµµ ¹®ÀÚ¿­·Î º¯È¯
	return str.replace(/^\s*|\s*$/g, '');
}


// input or textarea OnFocus ³»¿ëÁö¿ì±â ****************************************
function delete_contents(input)
{
	if (input.value == input.defaultValue)
	{
		input.value = "";
	}
}


// input or textarea OnFocus ¹è°æÀÌ¹ÌÁö Áö¿ì±â *********************************
function delete_background(input)
{
	input.style.backgroundImage = "url(about:blank)";
}


// ³¯Â¥ À¯È¿¼º Ã¼Å© ************************************************************
function checkDate(date_value)
{
	var getNow				= new Date();
	var sYear				= date_value.substring(0, 4);
	var sMonth				= date_value.substring(5, 7);
	var sDay				= date_value.substring(8, 10);

	if (date_value.length != 10)
		return false;
	if (sYear == null || sYear == "" || sMonth == null || sMonth == "" || sDay == null || sDay == "")
		return false;

	var iYear				= parseInt(sYear);
	var iMonth				= sMonth.substring(0, 1) == "0"	? parseInt(sMonth.substring(1, 2)) : parseInt(sMonth);
	var iDay				= sDay.substring(0, 1) == "0"	? parseInt(sDay.substring(1, 2)) : parseInt(sDay);

	if (iMonth < 1 || iMonth > 12)
		return false;

	if (iDay < 1 || iDay > 31)
		return false;

	if (iMonth == 2)
	{
		if ((iYear % 400 == 0 || (iYear % 100 != 0 && iYear % 4 == 0)))
		{
			if (iDay > 29)
				return false;
		}
		else if (iDay > 28)
			return false;
	}
	else if (iMonth==4 || iMonth==6 || iMonth==9 || iMonth==11)
	{
		if (iDay > 30)
			return false;
	}
	else
	{
		if (iDay > 31)
			return false;
	}

//	if (iYear < 1900 || iYear > getNow.getFullYear() + 1)
//		return false;

	return true;
}


// ¹ÙÀÌÆ® ¼ö ¼¼±â **************************************************************
function calculateBytes(contents, maxBytes, bytesId)
{
	var tcount	= 0;
	var tmpStr1	= new String(contents.value);
	var tmpStr2	= "";
	var temp	= tmpStr1.length;
	var onechar;

	for (k=0; k<temp; k++)
	{
		onechar = tmpStr1.charAt(k);
		if (escape(onechar).length > 4)
		{
			tcount += 2;
		}
		else
		{
			tcount += 1;
		}

		if (tcount <= maxBytes)
		{
			tmpStr2	= tmpStr2 + onechar;
		}
	}

	if (bytesId != "")
	{
		var bytesId_input	= document.getElementById(bytesId);
		replaceText(bytesId_input, tcount);
	}

	if (tcount > maxBytes)
	{
		alert(maxBytes +"¹ÙÀÌÆ®¸¦ ³Ñ±æ ¼ö ¾ø½À´Ï´Ù.");
		contents.value		= tmpStr2;
		calculateBytes(contents, maxBytes, bytesId);
	}
}


function replaceText(el, text)
{
	if (el != null)
	{
		clearText(el);
		var newNode = document.createTextNode(text);
		el.appendChild(newNode);
	}
}

function clearText(el)
{
	if (el != null)
	{
		if (el.childNodes)
		{
			for (var i = 0; i < el.childNodes.length; i++)
			{
				var childNode = el.childNodes[i];
				el.removeChild(childNode);
			}
		}
	}
}

function getText(el)
{
	var text = "";
	if (el != null)
	{
		if (el.childNodes)
		{
			for (var i = 0; i < el.childNodes.length; i++)
			{
				var childNode = el.childNodes[i];
				if (childNode.nodeValue != null)
				{
					text = text + childNode.nodeValue;
				}
			}
		}
	}
	return text;
}

// ÄíÅ° Ã£±â *******************************************************************
function getCookie(name)
{
	var returnCookie		= "";
	var thisCookie			= document.cookie.split("; ") ;
	for (i = 0; i < thisCookie.length; i++)
	{
		// ÄíÅ°°¡ ¹ß°ßµÉ¶§±îÁö Ã£±â
		if(thisCookie[i].split("=")[0] == name)
			returnCookie	= thisCookie[i].split("=")[1]; // ÄíÅ°¸¦ Ã£¾Æ¼­"=" ·Î ºÐ¸®ÇÑÈÄ º¯¼ö·Î ÀúÀå
	}
	return returnCookie;
}

// Family Site Open ************************************************************
function openSite(site_url)
{
	if (site_url != "")
	{
		window.open(site_url);
	}
}

// ¹é±×¶ó¿îµå ******************************************************************
function setPng24(obj)
{
	obj.width=obj.height=1;
	obj.className=obj.className.replace(/\bpng24\b/i,'');
	obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
	obj.src='';
	return '';
}

// ÇÃ·¡½Ã ÆÄÀÏ *****************************************************************
function flashInc(width, height, file, query)
{
	if (query != "")
		query = "?" + query;

	var flash_tag = "";
	flash_tag = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
	flash_tag +='codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ';
	flash_tag +='WIDTH="'+width+'" HEIGHT="'+height+'" >';
	flash_tag +='<param name="allowScriptAccess" value="sameDomain" />';
	flash_tag +='<param name="movie" value="/Common/Flash/'+file+'.swf'+query+'">';
	flash_tag +='<param name="quality" value="high">';
	flash_tag +='<param name="wmode" value="transparent">';
	flash_tag +='<embed src="/Common/Flash/'+file+'.swf'+query+'" name="'+ file +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	flash_tag +='type="application/x-shockwave-flash" allowScriptAccess="sameDomain" wmode="transparent" WIDTH="'+width+'" HEIGHT="'+height+'"></embed></object>'

	document.write(flash_tag);
}

// FLEX ÇÃ·¡½Ã ÆÄÀÏ ************************************************************
function flashInc2(width, height, path, file, bgcolor, query)
{
	if (query != "")
		query = "?" + query;

	var flash_tag = "";

	flash_tag +='<noscript>';
	flash_tag +='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="'+file+'" width="'+width+'" height="'+height+'" ';
	flash_tag +='codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">';
	flash_tag +='<param name="movie" value="'+path+'/'+file+'.swf'+query+'" />';
	flash_tag +='<param name="quality" value="high" />';
	flash_tag +='<param name="bgcolor" value="'+ bgcolor +'" />';
	flash_tag +='<param name="wmode" value="transparent">';
	flash_tag +='<param name="allowScriptAccess" value="sameDomain" />';
	flash_tag +='<embed src="'+path+'/'+file+'.swf'+query+'" quality="high" bgcolor="'+ bgcolor +'" width="'+width+'" height="'+height+'" ';
	flash_tag +='name="'+ file +'" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" ';
	flash_tag +='wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer">';
	flash_tag +='</embed>';
	flash_tag +='</object>';
	flash_tag +='</noscript>';

	document.write(flash_tag);
}

// ¹è¿­ ObjectÀÎÁö È®ÀÎ ********************************************************
function isArray(a)
{
	return isObject(a) && a.constructor == Array;
}

function isObject(a)
{
	return (typeof a == 'object' && !!a) || isFunction(a);
}

function isFunction(a)
{
	return typeof a == 'function';
}


// TR¿¡ ¹è°æ»ö ÁÖ±â ************************************************************
function ColorChange(tr_node, color_cd)
{
	for (i = 0; i < tr_node.childNodes.length; i++)
	{
		if (tr_node.childNodes[i].tagName == "TD")
			tr_node.childNodes[i].style.backgroundColor = color_cd;
	}
}



