function search_chk(frm) {
	if (frm.sKeyword.value.length < 1) {
		alert('°Ë»ö¾î¸¦ ÇÑ±ÛÀÚ ÀÌ»ó ½áÁÖ¼¼¿ä.');
		frm.sKeyword.focus();
		return false;
	}
	frm.action = '/search/search.asp';
	return true;
}

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) {  //reloads the window if Nav4 resized
  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() { //v3.0
  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 shortmsg() {
	config = 'width=10,height=10,scrollbars=yes,toolbar=no,top=30,left=30';
	window.open('/common/pop_shortmsg.asp','shortmsg',config);
}
function winopen(url,name,scrollbars) {
	config = 'width=10,height=10,scrollbars='+scrollbars+',toolbar=no,top=30,left=30';
	window.open(url,name,config);
}

/*************************************
* ÇÃ·¡½¬ º¯°æ ½ºÅ©¸³Æ®
*************************************/
function WriteEmbed(emb_id) {
	document.write (document.getElementById(emb_id).value);
}

function WriteFlash(id, SrcName, WidSize, HeightSize) {
	document.write('<textarea id='+id+' style="display:none;" cols="0" rows="0">');
	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=' +WidSize+ ' height=' +HeightSize+'>');
	document.write('<param name="movie" value=' +SrcName+ '>');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');

	document.write('<embed src=' +SrcName+ ' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+WidSize+' height='+HeightSize+'></embed>');
	document.write('</object>');
	document.write('</textarea>');
}

function CheckValid(String, space) {
	var retvalue = false;
	for(var k = 0; k < String.length; k++) { // String 0("" ÀÌ³ª null)ÀÌ¸é ¹«Á¶°Ç false
		if (space == true) {
			if (String.charAt(k) == ' ') { //String 0ÀÌ ¾Æ´Ò¶§ space°¡ ÀÖ¾î¾ß¸¸ true(valid)
				retvalue = true;
				break;
			} 
		} else {
			if (String.charAt(k) != ' ') { //stringÀÌ 0ÀÌ ¾Æ´Ò¶§ space°¡ ¾Æ´Ñ ±ÛÀÚ°¡ ÀÖ¾î¾ß¸¸ true(valid)
				retvalue = true;
				break;
			}
		}
	}
	return retvalue;
}

/******************************
*  ±â´É :  Empty ¹× °ø¹é Ã³¸®    *
*  ¼öÁ¤ÀÏ : 2003-09-22              *
*  parameter : field, error_msg  *
*******************************/

function isEmpty(field,error_msg) {
	//error_msg°¡ ""ÀÌ¸é alert¿Í focusginÀ» ÇÏÁö ¾Ê´Â´Ù.
	if (error_msg == "") {
		if(!CheckValid(field.value,false)) {
			return true;
		} else {
			return false;
		}
	} else {
		if(!CheckValid(field.value,false)) {
			alert(error_msg);
			field.focus();
			return true;
		} else {
			return false;
		}
	}
}

function h_check(Objectname) {
	var intErr;
	var strValue = Objectname.value;
	var retCode = 0;

	for (i = 0 ; i < strValue.length; i++) {
		var retCode = strValue.charCodeAt(i);
		var retChar = strValue.substr(i,1).toUpperCase();

		retCode = parseInt(retCode);

		if ((retChar < "0" || retChar > "9") && (retChar < "A" || retChar > "Z") && ((retCode > 255) || (retCode < 0))) {
			intErr = -1;
			break;
		}
	}
	return (intErr);
}

function numberOnly() {
	if(((event.keyCode <48) || (event.keyCode > 57)) && (event.keyCode != 46)) {
		event.returnValue = false;
	}
}

//Áñ°ÜÃ£±â Ãß°¡
function AddFavorite(strURL,strName)
{ 
  window.external.AddFavorite(strURL,strName)
}

// ¼ýÀÚ Ã¼Å©
function isNumber(arg) {
	for (i =0 ; i < arg.length; i++) {
  	alert(arg.charCodeAt(i));
	  	if (arg.charCodeAt(i) < 48 || arg.charCodeAt(i) > 57) {
	  		return false;
	  	}
	}
	return true;
}

//¹®ÀÚ¿­ ¾ÈÀÇ °ø¹é Áö¿ì±â
function deleteSpace(str) { 
	var out = "";

	for (common_i = 0; common_i < str.length; common_i++) { 
		if (str.charAt(common_i) == " ") { 
			continue;
		}
		out += str.charAt(common_i); 
	} 
	return out; 
}

String.prototype.trim = function() {
    return this.replace(/^\s*/,'').replace(/\s*$/, ''); ;
}

//simple AJAX  
function getXmlHttpRequest() {
	var xmlhttp = false
	//Mozila
	if(window.XMLHttpRequest){
	xmlhttp = new XMLHttpRequest()
	} else {
	//IE
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP")
	}
	 
	return xmlhttp;
}

function loadData(valUrl, obj){
	oPostList = document.getElementById(obj);
 	
	var xmlhttp = getXmlHttpRequest();
   
	xmlhttp.open("GET", valUrl, true);
	 	 	 
	xmlhttp.onreadystatechange = function() {
	if (xmlhttp.readyState == 4) {
		if (xmlhttp.status == 200) {

			var resData = (xmlhttp.responseText);
      oPostList.innerHTML = resData;
		}else{
			alert("¿äÃ»ÀÌ ÀÏ½ÃÀûÀ¸·Î Á¤»óÃ³¸®µÇÁö ¸øÇß½À´Ï´Ù.\nÀá½Ã ÈÄ¿¡ ´Ù½Ã ½ÃµµÇØ ÁÖ¼¼¿ä.");
    }
	}
}
  xmlhttp.send(null);
  return false;
}  



// Common
function _getField(oField)
{
	if (typeof(oField.type) == 'undefined' && typeof(oField.length) != 'undefined')
		return oField[0];
	else
		return oField;
}

function _getFieldType(oField)
{
	return _getField(oField).type;
}

function _alertMessage(strMsg)
{
	if (typeof(strMsg) != 'undefined' && strMsg != "")
		alert(strMsg);
}

function _focusField(oField, blnFocus)
{
	if (typeof(blnFocus) != 'undefined' && blnFocus != null && blnFocus == true)
		_getField(oField).focus();
}

// FORM FIELD CHECK 1. NULL CHECK
function _hasValue(oField)
{
	if (oField.value.replace(/(^\s*)|(\s*$)/g, "") == "")
		return false;
	else
		return true;
}

function _hasEditerValue(oField)
{
	if (oField.value.replace(/&nbsp;/g, " ").replace(/(^\s*)|(\s*$)/g, "") == "")
		return false;
	else
		return true;
}

function _isChecked(oField)
{	
	var checked = false;

	if (typeof(oField.length) != 'undefined')
	{
		for (var i=0; i<oField.length; i++)
		{
			if (oField[i].checked)
				return true;
		}
	}
	else
	{
		return oField.checked;
	}
}

function _isNotSelected(oField)
{
	if (oField.selectedIndex == -1)
	{
		return false;
	}
	else
	{
		if (oField.value == -1)
			return false;
		else
			return true;
	}
}

function checkNull(oField, strMsg, blnFocus)
{
	var isNotNull = false;
	
	switch (_getField(oField).type)
	{
		case "text" :
		case "password" :
		case "file" :
			isNotNull = _hasValue(oField);
			break;
		case "textarea" :
			isNotNull = _hasEditerValue(oField);
			break;
		case "checkbox" :
		case "radio" :		
			isNotNull = _isChecked(oField);
			break;		
		case "select-one" :
		case "select-multiple" :
			isNotNull = _isNotSelected(oField);
			break;
	}

	if (!isNotNull)
	{
		_alertMessage(strMsg);
		_focusField(oField, blnFocus);
	}
	
	return isNotNull;
}

// FORM FIELD CHECK 2. LENGTH CHECK
function checkLength(oField, min, max, strMsg, blnFocus)
{
	var isValid = false;
	var lengthValue = oField.value.length;
	
	if (min < 0)
	{
		if (lengthValue < max)
			isValid = true;
	}
	if (max < 0)
	{
		if (lengthValue > min)
			isValid = true;
	}
	if (min >= 0 && max >= 0)
	{
		if (lengthValue >= min && lengthValue <= max)
			isValid = true;
	}
		
	if (!isValid)
	{
		_alertMessage(strMsg);
		_focusField(oField, blnFocus);
	}
	
	return isValid;
}

// FORM FIELD CHECK 3. LENGTH CHECK (INCLUDE KOREAN)
function checkLengthKor(oField, min, max, strMsg, blnFocus)
{
	var isValid = false;
	var lengthValue = oField.value.bytes();
	
	if (min < 0)
	{
		if (lengthValue < max)
			isValid = true;
	}
	if (max < 0)
	{
		if (lengthValue > min)
			isValid = true;
	}
	if (min >= 0 && max >= 0)
	{
		if (lengthValue >= min && lengthValue <= max)
			isValid = true;
	}
		
	if (!isValid)
	{
		_alertMessage(strMsg);
		_focusField(oField, blnFocus);
	}
	
	return isValid;
}

//substring sensitive at Korean 
function substringKor(str,lengths)
{
  var len = 0;
  var newStr = '';
  
  for (var i=0;i<str.length; i++) {
    var n = str.charCodeAt(i);
    var nv = str.charAt(i);
    if ((n>= 0)&&(n<256)) {
      len ++;
    } else {
      len += 2;
	}

	if (len>lengths)
		break;
	else
		newStr = newStr + nv;
  }
  
  return newStr;
}

// FORM FIELD CHECK 4. WRONG CHAR CHECK (Æ¯Á¤¹®ÀÚ°¡ Æ÷ÇÔµÇ¾î ÀÖÀ¸¸é false)
function _hasWrongWord(str, wrongStr)
{
	if(str.indexOf(wrongStr) >= 0) return true;
	else return false;
}

function checkWrongWord(oField, wrongStr, strMsg) // for text and textbox
{
	var isWrong = false;
	var fieldType = null;

	fieldType = _getFieldType(oField);

	switch (fieldType)
	{
		case "text" :
		case "textarea" :
			isWrong = _hasWrongWord(oField.value, wrongStr);
			break;
	}
	
	if (isWrong)
	{
		_alertMessage(strMsg);

		array = _getField(oField).value.split(wrongStr);
		result = '';
		for (i=0; i<array.length; i++) 
		{
			result += array[i];
		}
		_getField(oField).value = result;
		_focusField(oField, true);
	}
	
	return !isWrong;
}

// FORM FIELD CHECK 5. ALPHA NUMERIC CHARACTER CHECK (¿µ¹® ¼Ò¹®ÀÚ¿Í ¼ýÀÚ·Î¸¸ µÇ¾î ÀÖÀ¸¸é true)
function _isLowAlphaNumCheck(value)
{
	if (value.match(/^[a-z0-9]*$/g))
		return true;
	else
		return false;
}

function checkAlphaNum(oField, strMsg, blnFocus) // for text and textbox
{
	var isAlphaNum = false;

	switch (_getField(oField).type)
	{
		case "text" :
		case "textarea" :
			isAlphaNum = _isLowAlphaNumCheck(oField.value);
			break;
	}
	
	if (!isAlphaNum)
	{
		_alertMessage(strMsg);
		_focusField(oField, blnFocus);
	}
	
	return isAlphaNum;
}

// FORM FIELD CHECK 6. SPECIAL CHARACTER CHECK (Æ¯¼ö¹®ÀÚ ÇÏ³ªµµ ¾ø¾î¾ß true)
function _hasNotSpecialChar(id_text)
{
	if (!id_text.match(/[`@#$%&\\|<>;\"]/g))
		return true;
	else
		return false;
}

function checkNotSpecialChar(oField, strMsg, blnFocus) // for text and textbox
{
	var notSpecialChar = false;
	var fieldType = null;
	var mainField;
	
	fieldType = _getField(oField).type;

	switch (fieldType)
	{
		case "text" :
		case "textarea" :
			notSpecialChar = _hasNotSpecialChar(oField.value);
			break;
	}
	
	if (!notSpecialChar)
	{
		_alertMessage(strMsg);
		_focusField(oField, blnFocus);
	}
	
	return notSpecialChar;
}

// Utils

// ¾ËÆÄºª,¼öÀÚ Ã¼Å©
function isAlphaNumCheck(value)
{
	if (value.match(/^[a-zA-Z0-9]*$/g))
		return true;
	else
		return false;
}

// ¼ýÀÚ Ã¼Å©
function isNumber(value) 
{
	if (value.match(/^[0-9]*$/g))
		return true;
	else
		return false;
}
function isNumber2(frm) 
{
	if (frm.value.match(/^[0-9]*$/g))
		return true;
	else
	    alert("¼ýÀÚ¸¸ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	    frm.value = "";
		return false;
}

// ÇÑ±Û·Î¸¸ µÇ¾îÀÖ´ÂÁö Ã¼Å© (ÇÑ±Û¿ÜÀÇ ´Ù¸¥ ±ÛÀÚ°¡ ÀÖÀ¸¸é true, ÇÑ±Û·Î¸¸ µÇ¾î ÀÖ¾î¾ß false)
function isNotOnlyKorean(id_text)
{
	for ( var i=0; i < id_text.length; i++ ) 
	{
		if ( id_text.charCodeAt(i) < 0xAC00 || id_text.charCodeAt(i) > 0xD7A3)
		{
			if (( id_text.charCodeAt(i) < 12593 || id_text.charCodeAt(i) > 12643 ) && ( id_text.charCodeAt(i) != 32)) 
			{
				return true;
			}
		}
	}

	return false;
}

// keydown½Ã¿¡ ¿µ¾î¿Í ¼ýÀÚ¸¸ ¸Ô´Â °Í.
function keydownEngNum() 
{
	if (!(event.keyCode>=48&&event.keyCode<=57)&&!(event.keyCode>=65&&event.keyCode<=90)&&event.keyCode!=9&&event.keyCode!=8&&event.keyCode!=46&&event.keyCode!=37&&event.keyCode!=39&&event.keyCode!=45) 
	{
		event.keyCode = 0;
		event.cancelBubble = true;
		event.returnValue = false;
	}
}

function isImageFile(filename)
{
    if (filename.match(/(.jpg|.jpeg|.gif|.png)$/i))
        return true;
    else
        return false;
}

function isValidFilename(filename)
{
    if (!filename.match(/[\\\/:\*\?\|<>]/))
        return true;
    else
        return false;
}

function getCheckedValue(oField) // for radio button
{
	var value = null;

	for (i=0; i < oField.length; i++) {
		if(oField[i].checked) {
			value = oField[i].value;
			break;
		}
	}

	return value;
}

function radioCheck(oField, paramValue) // for radio button
{
	for (var i=0; i<oField.length; i++) {
		if (oField[i].value == paramValue) {
			oField[i].checked = true;
			break;
		}
	}
}

function getSelectedValue(oField) // for select button
{
	var value = null;

	selectedIndex = oField.selectedIndex;

	value = oField[selectedIndex].value;

	return value;
}

function selectSelect(oField, paramValue) // for select button
{
	for (var i=0; i<oField.length; i++) {
		if (oField[i].value == paramValue) {
			oField[i].selected = true;
			break;
		}
	}
}

function strLenCk(str)
{
  var len = 0;
  for (var i=0;i<str.length; i++) {
    var n = str.charCodeAt(i);
    if ((n>= 0)&&(n<256)) {
      len ++;
    } else {
      len += 2;
	}
  }
  return len;
}

function strLenCnt(str,lengths)	//¹®ÀÚ¿­ÀÇ Æ¯Á¤ ±æÀÌ¸¦ ¹ÝÈ¯ÇÑ´Ù.
{
  var len = 0;
  var newStr = '';
  
  for (var i=0;i<str.length; i++) {
    var n = str.charCodeAt(i);
    var nv = str.charAt(i);
    if ((n>= 0)&&(n<256)) {
      len ++;
    } else {
      len += 2;
	}

	if (len>lengths)
		break;
	else
		newStr = newStr + nv;
  }

  return newStr;
}

function strCutPrint(str,byteLength) //¸î±ÛÀÚ ÀÌ»ó µÇ¸é ..À» ºÙ¿©ÁØ´Ù.
{	 
	var strOld = str;
	str = strLenCnt(str,byteLength);
	if (str!=strOld) {
		str = str+'..';
	}
	return str;
}

function strCutPrintT(obj,byteLength) //¸î±ÛÀÚ ÀÌ»ó µÇ¸é ..À» ºÙ¿©ÁØ´Ù. textarea·ÎºÎÅÍ ºÒ·¯¿À±â
{	 
	var str = '';
	str = obj.value;
	var strOld = str;
	str = strLenCnt(str,byteLength);
	if (str!=strOld) {
		str = str+'..';
	}
	return str;
}



// µû¿ÈÇ¥¿Í ¿ª½½·¡½¬ Ã³¸®
function replaceBackslash(paramStr) 
{
    var str = paramStr;
    if (str.indexOf("\\") >= 0) str = str.replace(/\\/g, "\\\\");
    if (str.indexOf("\"") >= 0) str = str.replace(/\"/g, "\\\"");
    return str;
}

function resizeIfr(obj, minHeight) {
	minHeight = minHeight || 10;

	try {
		var getHeightByElement = function(body) {
			var last = body.lastChild;
			try {
				while (last && last.nodeType != 1 || !last.offsetTop) last = last.previousSibling;
				return last.offsetTop+last.offsetHeight;
			} catch(e) {
				return 0;
			}
			
		}
				
		var doc = obj.contentDocument || obj.contentWindow.document;
		if (doc.location.href == 'about:blank') {
			obj.style.height = minHeight+'px';
			return;
		}
		
		//var h = Math.max(doc.body.scrollHeight,getHeightByElement(doc.body));
		//var h = doc.body.scrollHeight;
		if (/MSIE/.test(navigator.userAgent)) {
			var h = doc.body.scrollHeight;
		} else {
			var s = doc.body.appendChild(document.createElement('DIV'))
			s.style.clear = 'both';

			var h = s.offsetTop;
			s.parentNode.removeChild(s);
		}
		
		//if (/MSIE/.test(navigator.userAgent)) h += doc.body.offsetHeight - doc.body.clientHeight;
		if (h < minHeight) h = minHeight;
	
		obj.style.height = h + 'px';
		if (typeof resizeIfr.check == 'undefined') resizeIfr.check = 0;
		if (typeof obj._check == 'undefined') obj._check = 0;

//		if (obj._check < 5) {
//			obj._check++;
			setTimeout(function(){ resizeIfr(obj,minHeight) }, 200); // check 5 times for IE bug
//		} else {
			//obj._check = 0;
//		}	
	} catch (e) { 
		//alert(e);
	}
	
}

var IE = false ;
if (window.navigator.appName.indexOf("Explorer") !=-1)
{
	IE = true;
}
	
// Iframe ³»¿¡¼­ È£ÃâÇÏ¿© ÆäÀÌÁö ³ôÀÌ¸¦ ¸ÂÃá´Ù.
function reSizeInit()
{
	try 
	{
		var timeArray = new Array(200, 500, 1500, 3500, 7000, 12000, 20000);
		//alert("1_cm_paperInit, timeArray.length="+timeArray.length);
		for(var i=0; i < timeArray.length; i++)
			setTimeout('doreSizeInit()', timeArray[i]);
	
		if(self.name!=null && self.name=="ifrPost")
		{
			top.window.scrollTo(0,0);
		}
	}catch (e) {}
}

 function doreSizeInit()
{
	
	
	try
	{
		if (self.name!=null && self.name!="" && parent!=null && parent.getReSize!=null)
	    {
	        parent.getReSize(self.name);
	    }

		if (parent.name!=null && parent.name!="" && (parent.name=="ifrPost" || parent.name=="ifrMain") && parent.parent!=null && parent.parent.getReSize!=null && parent.parent.reSizeInit!=null)
	    {
	        parent.parent.getReSize(parent.name);
	    }

		if (parent.parent.name!=null && parent.parent.name!="" && (parent.parent.name=="ifrPost" || parent.parent.name=="ifrMain") && parent.parent.parent!=null && parent.parent.parent.getReSize!=null && parent.parent.parent.reSizeInit!=null)
	    {
	        parent.parent.parent.getReSize(parent.parent.name);
	    }
	   
	 
	    
	}catch (e) { }
}

//--------------------------------------------------------------
//ÀÌ¹ÌÁö »çÀÌÁî ÀÚµ¿Á¶Àý
//--------------------------------------------------------------
function ImgSizeConv(maxWidth,resizeWidth){
	if(!maxWidth)maxWidth=600;
	if(!resizeWidth)resizeWidth=600;
	
	var max    = maxWidth;  // ÁöÁ¤ÇÒ Å©±â
	var resize = resizeWidth;	// ¸®»çÀÌÁîÇÒ Å©±â
	var oIMG = document.getElementsByTagName('IMG');
	var resize2 = 0

	for(i=0;i<oIMG.length;i++){		
		if (oIMG[i].offsetWidth > max ) {
			//alert(oIMG[i].offsetWidth);
			resize2 = parseInt(resize * oIMG[i].offsetHeight / oIMG[i].offsetWidth);
			oIMG[i].style.width = resize;
			oIMG[i].style.height = resize2;
		}
	}
}
function moveurl(url) {
	parent.document.location.href = url;
}

function popupchk(url,W,H,schk){

    if (screen.width == W){
        var T = 0;var L = 0;
    }else{
        var L = ((screen.width) - W) / 2;
        var T = ((screen.height) - H) / 2;
    }
    var win = window.open(url+'', '', 'width='+W+',height='+H+',top='+T+',left='+L+',resizable=yes,scrollbars='+schk+'');
 win.focus();
}

function view(what) {
    window.open("/inc/pop_img.asp?what="+what,'WIN','scrollbars=yes,status=no,toolbar=no,resizable=1,location=no,menu=no,width=10,height=10')
}

function setReloadStat(nReloadStat) {
	try {
		parent.setReloadStats(nReloadStat);
	} catch(e) {
	}

}

function list_updw(name,count,val,type) {
var i,k,fullname;
k=0
	if (val=='0')
	{
		for(i=0;i<count;i++)
		{
			fullname=name+"_"+i;
			if(document.getElementById && document.getElementById(fullname)){
				if (document.getElementById(fullname).style.display=="block")
				{
					var div_off=document.getElementById(fullname);
					k=i;
					if(type=="up"){
						if(k<(count-1)){
							k=i+1;	
						}else{
							k=0;
						}
					}else{
						if(k>0){
							k=i-1;
						}else{
							k=count-1;
						}
					}
				}
			}
		}
		fullname=name+"_"+k;
		if(document.getElementById && document.getElementById(fullname)){
			div_off.style.display="none";
			document.getElementById(fullname).style.display="block";
		}

	}else{
		for(i=1;i<=count;i++)
		{
			fullname=name+"_"+i;

			if(val==i)
			{
				document.getElementById(fullname).style.display="block";
			}else{
				document.getElementById(fullname).style.display="none";
			}
		}
	}

}


var tid,cnt=0,main_chk1=0,main_chk2=0;
function init(){
	tid=setInterval("main_center1_count()",1000);
}

function main_center1_count(){
	var i;
	cnt++;
	if(cnt==5){
		for(i=1;i<=4;i++)
		{
			fullname="MainCenter10_"+i;
			if(document.getElementById(fullname).style.display=="block"){
			    main_chk1=i;
			}
		}
		for(i=0;i<2;i++)
		{
			fullname="MainCenter1"+main_chk1+"_"+i;
			if(document.getElementById(fullname).style.display=="block") main_chk2=i;
		}
		if(main_chk2==1){
			if(main_chk1==1){
				fullname="MainCenter10_1";
				document.getElementById(fullname).style.display="none";
				fullname="MainCenter10_2";
				document.getElementById(fullname).style.display="block";
				fullname="MainCenter10_3";
				document.getElementById(fullname).style.display="none";
				fullname="MainCenter10_4";
				document.getElementById(fullname).style.display="none";
				document.getElementById("MainCenter11_0").style.display="block";
				document.getElementById("MainCenter11_1").style.display="none";
			}else if(main_chk1==2){
				fullname="MainCenter10_1";
				document.getElementById(fullname).style.display="none";
				fullname="MainCenter10_2";
				document.getElementById(fullname).style.display="none";
				fullname="MainCenter10_3";
				document.getElementById(fullname).style.display="block";
				fullname="MainCenter10_4";
				document.getElementById(fullname).style.display="none";
				document.getElementById("MainCenter12_0").style.display="block";
				document.getElementById("MainCenter12_1").style.display="none";
			}else if(main_chk1==3){
				fullname="MainCenter10_1";
				document.getElementById(fullname).style.display="none";
				fullname="MainCenter10_2";
				document.getElementById(fullname).style.display="none";
				fullname="MainCenter10_3";
				document.getElementById(fullname).style.display="none";
				fullname="MainCenter10_4";
				document.getElementById(fullname).style.display="block";
				document.getElementById("MainCenter13_0").style.display="block";
				document.getElementById("MainCenter13_1").style.display="none";
			}else if(main_chk1==4){
				fullname="MainCenter10_1";
				document.getElementById(fullname).style.display="block";
				fullname="MainCenter10_2";
				document.getElementById(fullname).style.display="none";
				fullname="MainCenter10_3";
				document.getElementById(fullname).style.display="none";
				fullname="MainCenter10_4";
				document.getElementById(fullname).style.display="none";
				document.getElementById("MainCenter14_0").style.display="block";
				document.getElementById("MainCenter14_1").style.display="none";
			}
		}else{
			fullname="MainCenter1"+main_chk1+"_0";
			document.getElementById(fullname).style.display="none";
			fullname="MainCenter1"+main_chk1+"_1";
			document.getElementById(fullname).style.display="block";
		}
		cnt=0;
	}
}

function main_mouse_over(){
	clearInterval(tid);
}

function main_mouse_out(){
	init();
}

<!--ÇÃ·¡½Ã Å×µÎ¸®Á¦°Å-->
function flash(id, width, height){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+width+'" height="'+height+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id=ShockwaveFlash1>'
+'<param name="movie" value="'+id+'">'
+'<param name="quality" value="high">'
+'<param name="wmode" value="transparent">'
+'<embed src="'+id+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" width="'+width+'" height="'+height+'"type="application/x-shockwave-flash"></embed>'
+'</object>');
}
<!-- ³¡-->
<!--¸¶¿ì½º¿À¹ö½Ã ¾ËÆÄ°ªÁ¶Àý-->
function bt(id,after) 
{ 
eval(id+'.filters.blendTrans.stop();');
eval(id+'.src="'+after+'";'); 
eval(id+'.filters.blendTrans.Play();'); 
} 

function bt(id,after) 
{ 
eval(id+'.filters.blendTrans.stop();'); 
eval(id+'.filters.blendTrans.Apply();'); 
eval(id+'.src="'+after+'";'); 
eval(id+'.filters.blendTrans.Play();'); 
}
<!--³¡-->

/*
function NameUI() {
	this.nameUILayer;
	this.nameUIEvent;
	this.nameUIPosX;
	this.nameUIPosY;
	this.nameUIDirection;

	this.xmlHttp;
	this.masterId;
	this.userId;
	this.userName;
	this.memberType;
	
	this.windowOption;
	this.arrMainMenuLayer = [ 
		'liMenuBlog',
		'liMemo',
		'liInvite'
	];

	this.arrDisableMenu;
	this.bumoCommon;
}

NameUI.prototype = {
	initNameUI : 
		function () {
			var divNameUI;
			this.nameUILayer = document.createElement("DIV");
			this.nameUILayer.id = "divNameUI";
			this.nameUILayer.style.zIndex = 9999;
			this.nameUILayer.style.position = "absolute";
			this.nameUILayer.style.left = this.nameUILayer.style.top = "0px";
			this.nameUILayer.innerHTML = this.getNameUIHTML();
			document.body.insertBefore(this.nameUILayer,document.body.firstChild);
			this.bumoCommon = new bumoCommon();
		},
	getNameUIHTML:
		function () {
			return ('<div id="NameUIDefault" class="NameUI">\n'+
			'<ul>\n' +
			' <li id="liMenuBlog" onmouseover="nameUIMOver(this);" onmouseout="nameUIMOut(this);"><a id="lblMenuBlog" href="#ºí·Î±×" class="single" onclick="nameUIExec(\'OPEN_BLOG\');">ºí·Î±×</a></li>\n'+
			'		<li id="liMemo" onmouseover="nameUIMOver(this);" onmouseout="nameUIMOut(this);"><a href="#ÂÊÁöº¸³»±â" class="single" onclick="nameUIExec(\'SEND_MEMO\');return false;">ÂÊÁöº¸³»±â</a></li>\n' +
			'		<li id="liInvite" onmouseover="nameUIMOver(this);" onmouseout="nameUIMOut(this);"><a href="#°ü½ÉÀÎµî·Ï" class="single" onclick="nameUIExec(\'INVITE\');return false;">°ü½ÉÀÎµî·Ï</a></li>\n' +
			'</div>'
			);
		},

		setScrollHeight: //{{{
			function (xPos, yPos, direction) {
				if(isIE) {
					this.nameUIPosX = xPos;
					this.nameUIPosY = yPos - (direction == 'U' ? 135 : 0);
				} else {
					this.nameUIPosX = xPos;
					this.nameUIPosY = yPos - (direction == 'U' ? 122 : 0);
				}
				this.nameUIDirection = direction;
			}, // }}}

			mouseOver: //{{{ 
			function (objElement) {
				var status = this.subMenuStatus;
				if (objElement.className == "blink") return;
				if (this.isMainMenu(objElement)) {
				}

			}, //}}}

		mouseOut: //{{{  // 
			function (objElement) {
				var status = this.subMenuStatus;
				if (objElement.className == "blink") return;
				if (objElement.id=='NameUIOneDegree') status.oneDegree = "0";
				if (objElement.id=='NameUIInvite') status.invite = "0";
				if (objElement.id=='NameUIGift') status.gift = "0";
			}, //}}}
}
*/

/*
ÀÓ½Ã »ç¿ë ¼Ò½º
*/
function huu(){
	window.close();
}

function cs_lecture() {
	config = 'toolbar=yes,menubar=yes,status=yes,fullscreen=yes,resizable=yes,scrollbars=yes,left=0 top=0';
	window.open('/customer/customer_info.asp?gbn=Lect','cs_lecture',config);
}

function cs_lecture01() {
	config = 'toolbar=yes,menubar=yes,status=yes,fullscreen=yes,resizable=yes,scrollbars=yes,left=0 top=0';
	window.open('/customer/customer_info.asp?gbn=Lect','cs_lecture01',config);
}
function cs_lecture02() {
	config = 'toolbar=yes,menubar=yes,status=yes,fullscreen=yes,resizable=yes,scrollbars=yes,left=0 top=0';
	window.open('/customer/customer_info.asp?gbn=Lect','cs_lecture02',config);
}
function movie_view01() {
	config = 'toolbar=no,menubar=no,status=no,resizable=yes,scrollbars=yes,left=100,top=0,width=617, height=700';
	window.open('/lecture/lecture_popup01.html','movie_view01',config);
}
function movie_view02() {
	config = 'toolbar=no,menubar=no,status=no,resizable=yes,scrollbars=yes,left=100,top=0,width=617, height=450';
	window.open('/lecture/lecture_popup02.html','movie_view02',config);
}
function map_open() {
	config = 'toolbar=yes,menubar=yes,status=yes,width=1000,height=800,resizable=yes,scrollbars=yes,left=0 top=0';
	window.open('/customer/new_location.asp','map_open',config);
}
function map_open() {
	config = 'toolbar=yes,menubar=yes,status=yes,width=1000,height=800,resizable=yes,scrollbars=yes,left=0 top=0';
	window.open('/customer/new_location.asp','map_open',config);
}
function book_select(obj1, obj2) {
	config = 'toolbar=no,menubar=no,status=no,width=637,height=800,resizable=no,scrollbars=yes,left=0 top=0';
	window.open('/customer/application_popup.asp?BookCode='+eval("document.forms.BookCode_"+obj1).value+'&TeamNum='+obj1+'&ExperienceSeq='+obj2,'application_popup',config);
}
function station_pop() {
	config = 'toolbar=no,menubar=no,status=no,width=695,height=400,resizable=no,scrollbars=yes,left=0 top=0';
	window.open('/bookstore/station.asp','station_pop',config);
}

function addservice_view(Seq, VType) {
	config = 'toolbar=no,menubar=no,status=no,width=718,height=600,resizable=no,scrollbars=yes,left=0 top=0';
	window.open('/club/addservice_view.asp?Seq='+Seq+'&VType='+VType,'addservice_view',config);
}

function preview(obj) {
	config = 'toolbar=no,menubar=no,status=no,width=953,height=800,resizable=no,scrollbars=yes,left=0 top=0';
	window.open('/bookstore/preview.asp?bookcode=' + obj,'preview',config);
}
function preview2(obj) {
	config = 'toolbar=no,menubar=no,status=no,width=953,height=800,resizable=no,scrollbars=yes,left=0 top=0';
	window.open('http://www.bumo2.com/bookstore/preview.asp?bookcode=' + obj,'preview',config);
}
function repair_popup() {
	//config = 'toolbar=no,menubar=no,status=no,width=364,height=365,resizable=no,scrollbars=no,left=200 top=200';
	//window.open('/main/repair_popup.html','repair_popup',config);
	location.href='/bookstore/gongbu_exchange.asp'
}
function reple_writer(BookCode) {
	config = 'width=620,height=620,scrollbars=yes,toolbar=no,top=30,left=30';
	window.open('/bookstore/reple_writer.asp?BookCode='+BookCode,'shortmsg',config);
}



//ÄÁÅÙÃ÷ ÀÌµ¿ ¸µÅ©
function contentmovement(Types, Seq, UserId, target_) {
	if (Types == 15){
		if (confirm("ÀÌ±ÛÀº °ü¸®ÀÚ¿¡ ÀÇÇØ Áö½ÄÀ¸·Î ÀÌµ¿µÇ¾ú½À´Ï´Ù.\n±ÛÀ» È®ÀÎÇÏ½Ã°Ú½À´Ï±î?")) {
			if (target_ == ""){
				location.href = '/know/know_read.asp?no='+Seq;
			} else{
				top.location.href = '/know/know_read.asp?no='+Seq;
			}
		}
	}
	if (Types == 16){
		if (confirm("ÀÌ±ÛÀº °ü¸®ÀÚ¿¡ ÀÇÇØ ÀÚÀ¯°ø°¨À¸·Î ÀÌµ¿µÇ¾ú½À´Ï´Ù.\n±ÛÀ» È®ÀÎÇÏ½Ã°Ú½À´Ï±î?")) {
			location.href = '/free/free_read.asp?seq='+Seq;
		}
	}
	if (Types == 17){
		if (confirm("ÀÌ±ÛÀº °ü¸®ÀÚ¿¡ ÀÇÇØ ºí·Î±×·Î ÀÌµ¿µÇ¾ú½À´Ï´Ù.\n±ÛÀ» È®ÀÎÇÏ½Ã°Ú½À´Ï±î?")) {
			location.href = '/blog/'+UserId+'/'+Seq;
		}
	}
}

var chk_val = false

function ChkAll(obj, obj2){
    if (!chk_val){
        if (eval("document."+obj2+"."+obj) != null ){
            if (eval("document."+obj2+"."+obj).length != null ){
                for (i = 0; i < eval("document."+obj2+"."+obj).length; i++ ){
                    eval("document."+obj2+"."+obj)[i].checked = true;
                }
            }else {
                eval("document."+obj2+"."+obj).checked = true;
            }
        }
        chk_val = true;
    }else {
        if (eval("document."+obj2+"."+obj) != null ){
            if (eval("document."+obj2+"."+obj).length != null ){
                for (i = 0; i < eval("document."+obj2+"."+obj).length; i++ ){
                    eval("document."+obj2+"."+obj)[i].checked = false;
                }
            }else {
                eval("document."+obj2+"."+obj).checked = false;
            }
        }
        chk_val = false;
    }
}

//Å¬¸¯½Ã ÀÌ¹ÌÁö±³Ã¼
function changeImage(filename) 
{ 
	mainimage.src = filename;
	document.all.mainimage3.style.display = "";
	mainimage2.src = filename;
	if(mainimage2.width > 600){
	    mainimage.width = 600;
	} else{
	    mainimage.width = mainimage2.width;
	}
	document.all.mainimage3.style.display = "none";
}

//ÁÜ ¼Ò½º

	zoom_mode = "normal";
	
function GoZoom() {
		if (zoom_mode == 'normal') {
			mainimage.width= 600;
			mainimage.height = 780;
			zoom_mode = "zoom";
		} else {
			mainimage.width= 400;
			mainimage.height = 509;
			zoom_mode = "normal";
		}
	}
//¸ÞÀÎ ·¹ÀÌ¾îÀüÈ¯
function changeT(t)
{
    if(t == ''){
        t = book_new.value;
        t = t - 1 + 2;
        if(t == 4){
            t = 0;
        }
    }
	for (i = 0; i < 4; i++)
	{
		df = eval('document.all.new_book'+ i);
		df.style.display = 'none';
		di = eval('document.all.new_book_img'+ i);
		di.src = '/images/bookstore/new_book_bt0' + (i-1+2) + '.jpg';
	}
	tf = eval('document.all.new_book'+ t)
	tf.style.display = 'block';
	ti = eval('new_book_img'+ t);
	ti.src = '/images/bookstore/new_book_bt0' + (t-1+2) + '_on.jpg';
	book_new.value = t;
}

//¿¬¶ôÃ³ ¿¬¼Ó¼ýÀÚ Ã¼Å© obj = ÇÊµåÀÌ¸§, obj2 Æû³×ÀÓ
function phoneCheck(obj, obj2){
    var fildname = eval("document."+obj2+"."+obj);
    var xx = true;
    for (i=0;i<10;i++) {
        aa = fildname.value;
        for (t=0;t<fildname.value.length;t++) {
            aa = aa.replace(i, "");
        }
        
        if(aa.length < 1){
            xx = false;
            break;
        }
    }
    return xx;
}

//¹æÈ­º® Â÷´Ü¹®ÀÚ º¯È¯
function firewallCheck(xx){
    //xx = xx.toLowerCase();
    xx = xx.split("?").join("&#63;");
    xx = xx.split("@").join("&#64;");
    //xx = xx.split("nchar").join("¢¹n¡Øcha¡Ør¢·");
    //xx = xx.split("varchar").join("¢¹v¡Øarcha¡Ør¢·");
    //xx = xx.split("char(").join("¢¹n¡Øhar¡Ør(¢·");
    //xx = xx.split("alter").join("¢¹a¡Ølte¡Ør¢·");
    //xx = xx.split("exec").join("¢¹e¡Øxe¡Øc¢·");
    //xx = xx.split("declare").join("¢¹d¡Øeclar¡Øe¢·");
    //xx = xx.split("cast").join("¢¹c¡Øas¡Øt¢·");
    //xx = xx.split("update").join("¢¹u¡Øpdat¡Øe¢·");
    //xx = xx.split("%20and%20").join("¢¹%20¡Øa¡Ønd¡Ø%20¢·");
    return xx;
}
//¹æÈ­º® Â÷´Ü¹®ÀÚ º¯È¯
function firewallCheck3(xx){
    //xx = xx.toLowerCase();
    xx = xx.split("@").join("&#64;");
    return xx;
}

function AltOpen(str){
   var txt;
   document.getElementById('DivAlt').style.pixelTop=event.y + document.body.scrollTop-40;
   document.getElementById('DivAlt').style.pixelLeft=event.x + document.body.scrollLeft-5;
    txt = "<table width='250' height='40' border='0' cellpadding='5' bgcolor='#FFFFCC' style='border:1 solid #FFCC99'><tr><td>"+str+"</td></tr></table>";
   document.getElementById('DivAlt').innerHTML = txt ;
   document.getElementById('DivAlt').style.visibility = 'visible';
}
function AltClose()
{
    document.getElementById('DivAlt').style.visibility = 'hidden';
}


//¹æÈ­º® Â÷´Ü¹®ÀÚ Â÷´Ü
function firewallCheck2(xx){
    var msg = "";
    xx = xx.toLowerCase();
    if(xx.length != xx.split("xp_cmdshell").join("").length){
        msg = "xp_cmdshell";
    }
    if(xx.length != xx.split("sysobjects").join("").length){
        msg = "sysobjects";
    }
    if(xx.length != xx.split("syscolumns").join("").length){
        msg = "syscolumns";
    }
    if(xx.length != xx.split("sys.user_objects").join("").length){
        msg = "SYS.USER_OBJECTS";
    }
    if(xx.length != xx.split("nchar").join("").length){
        msg = "nchar";
    }
    if(xx.length != xx.split("varchar").join("").length){
        msg = "varchar";
    }
    if(xx.length != xx.split("char(").join("").length){
        msg = "char(";
    }
    if(xx.length != xx.split("char").join("").length){
        msg = "char";
    }
    if(xx.length != xx.split("alter").join("").length){
        msg = "alter";
    }
    if(xx.length != xx.split("exec").join("").length){
        msg = "exec";
    }
    if(xx.length != xx.split("declare").join("").length){
        msg = "declare";
    }
    if(xx.length != xx.split("cast").join("").length){
        msg = "cast";
    }
    if(xx.length != xx.split("update").join("").length){
        msg = "update";
    }
    if(xx.length != xx.split("%20and%20").join("").length){
        msg = "%20and%20";
    }

    return msg;
}
function firewallCheck4(xx){
    //xx = xx.toLowerCase();
    xx = xx.split("?").join("&#63;");
    xx = xx.split("@").join("&#64;");
    xx = xx.split("nchar").join("¢¹n¡Øcha¡Ør¢·");
    xx = xx.split("varchar").join("¢¹v¡Øarcha¡Ør¢·");
    xx = xx.split("char").join("¢¹c¡Øhar¡Ør¢·");
    xx = xx.split("char(").join("¢¹c¡Øhar¡Ør(¢·");
    xx = xx.split("alter").join("¢¹a¡Ølte¡Ør¢·");
    xx = xx.split("exec").join("¢¹e¡Øxe¡Øc¢·");
    xx = xx.split("declare").join("¢¹d¡Øeclar¡Øe¢·");
    xx = xx.split("cast").join("¢¹c¡Øas¡Øt¢·");
    xx = xx.split("update").join("¢¹u¡Øpdat¡Øe¢·");
    xx = xx.split("%20and%20").join("¢¹%20¡Øa¡Ønd¡Ø%20¢·");
    return xx;
}
function ToggleDiv(Objid) 
{ 
var Obj = document.getElementById(Objid); 
if (Obj.style.display == "none") { 
Obj.style.display = ""; 
} else { 
Obj.style.display = "none"; 
} 
} 
//ÀÌ¹ÌÁö Å¬¸¯½Ã ·¹ÀÌ¾î°¡ º¸¿©Áö´Â ¼Ò½º

function ToggleDiv(Objid, Objid2, Objid3, Objid4) 
{ 
var Obj = document.getElementById(Objid); 
if (Obj.style.display == "none") { 
  Obj.style.display = ""; 
  if (Objid2 != ""){
  Objid2.src = Objid3;
  }
} else { 
  Obj.style.display = "none"; 
  if (Objid2 != ""){
  Objid2.src = Objid4;
  }
} 
} 



/*  
 * SNS ¸µÅ© ¿¬°á  
 * »ç¿ë¹æ¹ý goSns(msg,url,mode)  
 * msg  : °Ô½Ã¹° Á¦¸ñ  
 * url  : ÇöÀç ÆäÀÌÁö Full URL  
 * mode : twitter, facebook, me2day, yozm Áß ¼­ºñ½ºÇÏ´Â SNS ¿µ¹®¸í  
 */
var SNS_SHORT_URL = ''; 
function goSns(msg,url,mode){ 
    if(SNS_SHORT_URL == ''){ 
        $.post("/ajax/get_short_url", { url:url }, 
            function(data){ 
                if(data.result == 'true') 
                { 
                    SNS_SHORT_URL = data.url; 
                    social_type(msg,SNS_SHORT_URL,mode); 
                } 
                else
                { 
                    alert(data.message); 
                } 
            }, "json"); 
    }else{ 
        social_type(msg,SNS_SHORT_URL,mode); 
    } 
}  
// Á¾·ùº° ºÐ±â 
function social_type(msg,url,mode){ 
    // Æ®À§ÅÍ 
    if(mode == 'twitter'){ 
        goTwitter(msg,url); 
    } 
    // ÆäÀÌ½ººÏ 
    else if(mode == 'facebook'){ 
        goFaceBook(msg,url); 
    } 
    // ¹ÌÅõµ¥ÀÌ 
    else if(mode == 'me2day'){ 
        goMe2Day(msg,url, '»çÀÌÆ® ÀÌ¸§'); 
    } 
    // ¿äÁò 
    else if(mode == 'yozm'){ 
        goYozmDaum(url,msg,msg); 
    } 
} 
// Æ®À§ÅÍ 
function goTwitter(msg,url) { 
    var href = "http://twitter.com/home?status=" + encodeURIComponent(msg) + " " + encodeURIComponent(url); 
    var a = window.open(href, 'twitter', ''); 
    if ( a ) { 
        a.focus(); 
    } 
} 
// ¹ÌÅõµ¥ÀÌ 
function goMe2Day(msg,url,tag) { 
    url = '"'+url+'":'+url 
    var href = "http://me2day.net/posts/new?new_post[body]=" + encodeURIComponent(msg) + " " + encodeURIComponent(url) + "&new_post[tags]=" + encodeURIComponent(tag); 
    var a = window.open(href, 'me2Day', ''); 
    if ( a ) { 
        a.focus(); 
    } 
} 
// ÆäÀÌ½ººÏ 
function goFaceBook(msg,url) { 
    var href = "http://www.facebook.com/sharer.php?u=" + url + "&t=" + encodeURIComponent(msg); 
    var a = window.open(href, 'facebook', ''); 
    if ( a ) { 
        a.focus(); 
    } 
} 
// ¿äÁò 
function goYozmDaum(link,prefix,parameter) { 
    var href = "http://yozm.daum.net/api/popup/prePost?sourceid=54&link=" + encodeURIComponent(link) + "&prefix=" + encodeURIComponent(prefix) + "&parameter=" + encodeURIComponent(parameter); 
    var a = window.open(href, 'yozmSend', 'width=466, height=356'); 
    if ( a ) { 
        a.focus(); 
    } 
} 


// *************************************************************
// urlÀÇ ÇÁ·Î±×·¥ ½ÇÇà°á°ú¸¦ ºñµ¿±â½ÄÀ¸·Î ¸®ÅÏÇÑ´Ù.
// *************************************************************
function getAjax(url){
	var xmlhttp;
	if(xmlhttp && xmlhttp.readyState!=0){
		xmlhttp.abort();
	}try{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}catch(e){
		try{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}catch(e){
			xmlhttp = false;
		}
	}
	if(!xmlhttp && typeof XMLHttpRequest!=UD) _req = new XMLHttpRequest();
	if(xmlhttp){
		xmlhttp.open("GET", url, false);
		xmlhttp.send(null);
	}
	return result = xmlhttp.readyState == 4 ? xmlhttp.responseText : "";
}

