<!--
var OBJ;

NS4=(document.layers)?1:0;
IE4=(document.all)?1:0;

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.0
  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 && document.getElementById) x=document.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];}
}

function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_showHideLayers() { 
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_controlSound(x, _sndObj, sndFile) { 
  var i, method = "", sndObj = eval(_sndObj);
  if (sndObj != null) {
    if (navigator.appName == 'Netscape') method = "play";
    else {
      if (window.MM_WMP == null) {
        window.MM_WMP = false;
        for(i in sndObj) if (i == "ActiveMovie") {
          window.MM_WMP = true; break;
      } }
      if (window.MM_WMP) method = "play";
      else if (sndObj.FileName) method = "run";
  } }
  if (method) eval(_sndObj+"."+method+"()");
  else window.location = sndFile;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
}

function OpenWindow(a,b,c) {
	OpenWin = window.open( a ,'popDialog','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,width=' + b + ',height=' + c );
}


function CheckAll(form, id, range) {
	var chk = form;

	if (form.checkboxAll.checked == true) {
		for (var i=0; i<chk.length;i++) {
			if (chk[i].type == "checkbox" && chk[i].checked == false) {
				chk[i].checked = true;
				hL(chk[i]);
			}
		}
	}
	else {
		for (var i=0; i<chk.length;i++) {
			if (chk[i].type == "checkbox" && chk[i].checked == true) {
				chk[i].checked = false;
				dL(chk[i]);
			}
		}
	}
}

function ChangeList(CB) {
  var TB=TO=0;

  if (CB.checked)
     hL(CB);
  else
     dL(CB);

  for (var i=0;i<CB.length;i++){
      var e = document.MyChannelList.elements[i];
	  if ((e.name != 'allbox') && (e.type=='checkbox')){
	     TB++;
		 if (e.checked)	TO++;
	  }
  }
}

function hL(E) {
  if (IE4) {
     while (E.tagName!="TR") {E=E.parentElement;}
  }	else {
	 while (E.tagName!="TR") {E=E.parentNode;}
  }
  E.className = "H";
}

function dL(E) {
  if (IE4) {
	 while (E.tagName!="TR") {E=E.parentElement;}
  }	else {
	 while (E.tagName!="TR") {E=E.parentNode;}
  }
  E.className = "";
}


function surfto(Form) { 
  var targetLink=Form.GoLink.selectedIndex;

  window.open(Form.GoLink.options[targetLink].value, "", ""); 
  Form.GoLink.selectedIndex = 0; 
}


function OnImageLoad(targetImage,maxWidth,maxHeight) {
  var newimgX, newimgY;
  var newWidth, newHeight;
  var newImage;

  newImage = new Image();
  newImage.src = targetImage.src;
  imgw = newImage.width;
  imgh = newImage.height;

  if (imgw > maxWidth || imgh > maxHeight) {
     if (imgw > imgh) {
        if (imgw > maxWidth)
           newWidth = maxWidth;
        else
           newWidth = imgw;
           newHeight = Math.round((imgh*newWidth)/imgw);
     } else {
        if (imgh > maxHeight)
           newHeight = maxHeight;
        else
           newHeight = imgh;
           newWidth = Math.round((imgw*newHeight)/imgh);
     }
     newimgX = maxWidth/2 - newWidth/2;
     newimgY = maxHeight/2 - newHeight/2;

     targetImage.onload = null;
     targetImage.src = newImage.src;
     targetImage.width = newWidth;
     targetImage.height = newHeight;
  } else {
     newWidth = imgw;
     newHeight = imgh;
     targetImage.width = newWidth;
     targetImage.height = newHeight;
  }
}

function CheckStrLen(obj, MaxLen, FieldName) {
	var i, len=0;
	if (typeof obj == "undefined") {
		return true
	}
	var s = obj.value;



	for(i=0;i < s.length; i++) (s.charCodeAt(i) > 255)? len+=2:len++;



	if (MaxLen < len) {
		if (FieldName != "") alert(FieldName + "Àº(´Â) " + MaxLen + "ÀÚ¸¦ ³ÑÀ» ¼ö ¾ø½À´Ï´Ù(ÇÑ±ÛÀº ±ÛÀÚ´ç 2ÀÚ·Î °è»êµË´Ï´Ù.)");
		obj.value = obj.value.replace(/\r\n$/, "");
		obj.value = assert_msglen(obj.value, MaxLen);
		obj.focus();
		return false;
	}
	return true;
}


  function assert_msglen(message, maximum)

  {
	var inc = 0;
	var nbytes = 0;
	var msg = "";
	var msglen = message.length;

	for (i=0; i<msglen; i++) {
		var ch = message.charAt(i);
		if (escape(ch).length > 4) {
			inc = 2;
		} else if (ch == '\n') {
			if (message.charAt(i-1) != '\r') {
				inc = 1;
			}
		} else if (ch == '<' || ch == '>') {
			inc = 4;
		} else {
			inc = 1;
		}
		if ((nbytes + inc) > maximum) {
			break;
		}
		nbytes += inc;
		msg += ch;
	}
	return msg;
}


function GoPage(no) {
    document.ListForm.Page.value = no;
    document.ListForm.submit();
}

function Search() {
  document.Search.submit();
  return;
}

function Check_ID(input) {
  var err_cnt=0
  for (var i = 0; i < input.length; i++) {
      var val = input.charAt(i);
      if (!((val >= "0" && val <= "9") || (val >= "a" && val <= "z") || (val >= "A" && val <= "Z"))) err_cnt ++;
  }
  if (err_cnt == 0 ) {
     return true;
  } else {
     return false;
  }
}

function CheckEmail(input) {
  var err_cnt=0

  if (input.value.length > 0) {
     if (input.value.indexOf("@") == -1 || input.value.indexOf(".") == -1) err_cnt ++;
     if (err_cnt != 0 ) return false;

	 if ((input.value.indexOf(".@") != -1) || (input.value.indexOf("@.") != -1) ||
	     (input.value.substring(0,1) == ".") || (input.value.substring(0,1) == "@") ||
		 (input.value.substring(input.value.length-1,input.value.length) == ".") ||
		 (input.value.substring(input.value.length-1,input.value.length) == "@")) {
		err_cnt ++;
     }
     if (err_cnt != 0 ) return false;

     for (i=0; i < input.value.length; i++) {
         var val = input.value.charAt(i);
         if (!((input.value.substring(i,i+1) == "@") || (input.value.substring(i,i+1) == ".") ||
               (input.value.substring(i,i+1) == "-") || (input.value.substring(i,i+1) == "_") ||
               (val >= "0" && val <= "9") || (val >= "a" && val <= "z") || (val >= "A" && val <= "Z"))) err_cnt ++;
     }
     if (err_cnt != 0 ) return false;
  } else err_cnt ++;

  if (err_cnt == 0 ) return true;
  else return false;
}

function CheckSpecial(chk_str) {
  var subject = '~!@#$%^=+\|?¡à¡á¡â¡ã¡ä¡Ù¡Ú¡å¡Û¡Ü¡Ý¡Þ¡ß¢·¢¸¢¹¢º¢»¢¼¢½¢¾¢¿¢À¢Á¢Â¢Ã¢Ä¢Å¢Ð¢Ñ¢Í¡Ú¡Ù¢Æ¢Ç¨Û:;'
  var err_cnt=0
  for(i=0; i < chk_str.length;i++) 
     if (subject.indexOf(chk_str.substring(i,i+1)) > 0) err_cnt ++;
  if (err_cnt == 0 ) {
     return true;
  } else {
     return false;
  }
}

function CheckDigit(chk_str) {
  var subject = '0123456789'
  var err_cnt=0
  for(i=0; i < chk_str.length;i++) 
     if (subject.indexOf(chk_str.substring(i,i+1)) > 0) err_cnt ++;
  if (err_cnt == 0 ) {
     return true;
  } else {
     return false;
  }
}

function open_window(url, name, width, height,scrollbar,menubar,resize){
   window.open(url, name, 'width='+width+',height='+height+',scrollbars='+scrollbar+',menubar='+menubar+',resizable='+resize );
}

function allBlur() {
  for (i = 0; i < document.links.length; i++)
      document.links[i].onfocus = document.links[i].blur;
}

//Äü¸Þ´º¹Ù·Î°¡±â
function MM_jumpMenu(targ,selObj,restore) { //v3.0
  if( selObj.selectedIndex > 0 ) {
        window.open(selObj.options[selObj.selectedIndex].value, targ, "");
  	//window.location = selObj.options[selObj.selectedIndex].value;
  }
}

function NvChange() {

	this.version = "0.1";
	this.name = "NvChange";
	this.item = new Array();
	this.itemcount = 0;
	this.itemoffset = 0;
	this.item_i = new Array();
	this.item_icount = 0;
	this.item_ioffset = 0;
	this.currentspeed = 0;
	this.scrollspeed = 50;
	this.pausedelay = 1000;
	this.pausemouseover = false;
	this.stop = 0;
	this.height = 100;
	this.heightGap = 0;
	this.width = 100;
	this.height_i = 100;
	this.width_i = 100;
	this.stopHeight=0;
	this.count=0;
	this.flag=true;
	this.position="absolute";
	this.item_position="absolute";

	this.add = function () {
		var text = arguments[0];
		this.item[this.itemcount] = text;
		this.itemcount = this.itemcount + 1;
	};

	this.addImage = function () {
		var text = arguments[0];
		this.item_i[this.item_icount] = text;
		this.item_icount = this.item_icount + 1;
	};

	this.start = function () {
		this.display();
		this.currentspeed = this.scrollspeed;
		obj = document.getElementById(this.name+'item0').style;
		obj.display='block';
		this.count++;
		setTimeout(this.name+'.scroll()',this.currentspeed);
	};

	this.ready = function () {
		//now = new Date();
                //ran = now % this.item_icount;
		//temp = this.item_i[ran]; this.item_i[ran] = this.item_i[0]; this.item_i[0] = temp;
		this.displayImage();
		obj_i = document.getElementById(this.name+'item_i0').style;
		obj_i.display='block';
	};

	this.display = function () {
		document.write('<div id="'+this.name+'" style="height:'+this.height+';width:'+this.width+';position:'+this.position+';overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">');
		for(var i = 0; i < this.itemcount; i++) {
				document.write('<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+';position:'+this.item_position+'; display:none; ">');
				document.write(this.item[i]);
				document.write('</div>');
		}
		document.write('</div>');
	};

	this.displayImage = function () {
		document.write('<div id="'+this.name+'_i" style="left:0; height:'+this.height_i+';width:'+this.width_i+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">');
		for(var i = 0; i < this.item_icount; i++) {
			document.write('<div id="'+this.name+'item_i'+i+'"style="left:0px; width:'+this.width_i+'; display:none; ">');
			document.write(this.item_i[i]);
			document.write('</div>');
		}
		document.write('</div>');
	};

	this.scroll = function () {
		this.currentspeed = this.scrollspeed;
		if ( !this.stop ) {
			this.imageChange();
		}
		window.setTimeout(this.name+".scroll()",this.currentspeed);
	};


	this.imageChange = function ()
	{
		for (k = 0; k < this.item_icount; k++) {
			obj_i = document.getElementById(this.name+'item_i'+k).style;
			if (this.count % this.item_icount == k) {
				obj_i.display = 'block';
			} else {
				obj_i.display = 'none';
			}
		}
		for (k = 0; k < this.itemcount; k++) {
			obj = document.getElementById(this.name+'item'+k).style;
			if (this.count % this.itemcount == k) {
				obj.display = 'block';
			} else {
				obj.display = 'none';
			}
		}
		this.count++;
	}

	this.onmouseover = function ()
	{
		if ( this.pausemouseover ) {
			this.stop = 1;
		}
	};
		for (k = 0; k < this.item_icount; k++) {
			obj_i = document.getElementById(this.name+'item_i'+k).style;
			if (this.count % this.item_icount == k) {
				obj_i.display = 'block';
			} else {
				obj_i.display = 'none';
			}
		}

	this.onmouseout = function ()
	{
		if ( this.pausemouseover ) {
			this.stop = 0;
		}
	};

	this.up = function ()
	{
		var i;
		this.stop++;

		if ( this.itemcount <= this.itemoffset )
			this.itemoffset = this.itemoffset % this.itemcount;


		for (i = 0; i < this.item_icount; i++) {
			obj_i = document.getElementById(this.name+'item_i'+i).style;
			if ( obj_i.display == "block" ) {this.item_ioffset = i+1;obj_i.display="none";}
		}

		if (this.item_icount > 0) {
			if (this.item_ioffset < this.item_icount) {
				obj_i = document.getElementById(this.name+'item_i'+this.item_ioffset).style;
				obj_i.display = "block";
			} else {
				obj_i = document.getElementById(this.name+'item_i0').style;
				obj_i.display = "block";
			}
		}
		for (i = 0; i < this.itemcount; i++) {
			obj = document.getElementById(this.name+'item'+i).style;
			if ( obj.display == "block" ) {this.itemoffset = i+1;obj.display="none";}
		}
		if (this.itemoffset < this.itemcount) {
			obj = document.getElementById(this.name+'item'+this.itemoffset).style;
			obj.display = "block";
		} else {
			obj = document.getElementById(this.name+'item0').style;
			obj.display = "block";
		}
		window.setTimeout(this.name + ".stop--;",this.pausedelay);
		//this.stop--;
	}

}
/***********************************************
* Pausing up-down scroller- ¨Ï Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+3)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-1+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-1+"px"
setTimeout(function(){scrollerinstance.animateup()}, 100)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}

/* flash ÆÐÄ¡ */
function flash_viewObj(objhtml) { 
    document.write(objhtml); 
}
//-->