 


 /****************ÆË¾÷°ü·Ã Áö¿ìÁö¸¶¼¼¿ä ***********************/

// cookie Á¶È¸
function getCookie(name){
  var cname = name + "=";
  var dc = document.cookie;
  if (dc.length > 0) {
    begin = dc.indexOf(cname);
    if (begin != -1) {
      begin += cname.length;
      end = dc.indexOf(";", begin);
      if (end == -1) end = dc.length;
        return unescape(dc.substring(begin, end));
    }
  }
  return null;
}

/*

// cookie µî·Ï
function setCookie(name, value, expires, path, domain, secure) {
  document.cookie = name + "=" + escape(value) +
  ((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
  ((path == null) ? "" : "; path=" + path) +
  ((domain == null) ? "" : "; domain=" + domain) +
  ((secure == null) ? "" : "; secure");
}
*/
// cookie »èÁ¦
function delCookie (name,path,domain) {
  if (getCookie(name)) {
    document.cookie = name + "=" +
    ((path == null) ? "" : "; path=" + path) +
    ((domain == null) ? "" : "; domain=" + domain) + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
  //ÆäÀÌÁö ¸®·Îµå
  document.location.reload();
}





var firstCall = true;

function changeFontsize(fSize, increment) {

	if (firstCall) {
		firstCall = false;
		if (increment != "") {
			changeFontsize('12', '');
		}
	}

	if (document.getElementsByTagName) {
	//var getElement = document.getElementsByTagName("td");
	var getElement = getElementsByTagNames("td,a,span","");
	var eachElement, currentFontSize, fontIncrease, newFontSize;
	for (i=0; i<getElement.length; i++) {
		eachElement = getElement[i];
		if (increment != "") {
			currentFontSize = parseInt(eachElement.style.fontSize);
			fontIncrease = parseInt(increment);
			newFontSize = currentFontSize + fontIncrease;
		}
		else if (fSize != "") {
			newFontSize = parseInt(fSize);
		}
		eachElement.style.fontSize = newFontSize + "px";
	}
}
}

function getElementsByTagNames(list,obj)

{

   if (!obj) var obj = document;

   var tagNames = list.split(',');

   var resultArray = new Array();

   for (var i=0;i<tagNames.length;i++)

   {

          var tags = obj.getElementsByTagName(tagNames[i]);

          for (var j=0;j<tags.length;j++)

          {

                  resultArray.push(tags[j]);

          }

   }

   var testNode = resultArray[0];

   if (testNode.sourceIndex)

   {

          resultArray.sort(function (a,b) {

                         return a.sourceIndex - b.sourceIndex;

          });

   }

   else if (testNode.compareDocumentPosition)

   {

          resultArray.sort(function (a,b) {

                         return 3 - (a.compareDocumentPosition(b) & 6);

          });

   }

   return resultArray;

}
