
//=====[¹®ÀÚ¿­ÀÇ ¾Õ,µÚ °ø¹éÀ» Á¦°ÅÇÑ °ªÀ» ¸®ÅÏÇØ ÁØ´Ù.]======================================
function getTrim(str){
	return str.replace(/(^\s+)|(\s+$)/g,'');
}

//=====[¹®ÀÚ¿­ÀÇ ¸ðµç °ø¹éÀ» Á¦°ÅÇÑ °ªÀ» ¸®ÅÏ]
function getSpace(str){
	if(str == "" || str == null || String(str) == "undefined"){
		return "";
	}
	else{
		return str.replace(/ /g,'');
	}
}

//=====[°ªÀÌ null,"","undefined",space ÀÌ¸é true ¾Æ´Ï¸é false ¸¦ ¸®ÅÏ.....]==================
function isNull(value){
	if(value != null && String(value) != "undefined"){
		value = value.replace(/(^\s+)|(\s+$)/g,'');
	}
	if(value == "" || value == null || String(value) == "undefined"){
		return true;
	}
	else{
		return false;
	}
}

//=====[¹®ÀÚ¿­ÀÇ ±æÀÌ¸¦ ¸®ÅÏÇØ ÁØ´Ù.(null,°ø¹é,undefined ÀÌ¸é 0À» ¸®ÅÏ)]=====================
function getLength(str){
	if(str == "" || str == null || String(str) == "undefined"){
		return 0;
	}
	else{
		return str.length;
	}
}

//=====[¹®ÀÚ¿­ÀÇ ±æÀÌ ºñ±³( "=" ÀÌ¸é 0, ">" ÀÌ¸é -1, "<" ÀÌ¸é -2 ¸¦ ¸®ÅÏ,null ÀÎ°æ¿ì -2)]===== 
function valLength(str,int){
	if(str == "" || str == null || String(str) == "undefined"){
		return -2;
	}
	else if(str.length == int){
		return 0;
	}
	else if(str.length > int){
		return -1;
	}
	else{
		return -2;
	}
}

//=====[¹®ÀÚ¿­Áß¿¡ str1 À» str2 ·Î º¯È¯ÇÑ °ªÀ» ¸®ÅÏ]==========================================
function getReplace(str,str1,str2){
	if(str == "" || str == null || String(str) == "undefined"){
		return "";
	}
	else{
		str = eval("str.replace(/"+ str1 + "/g,'" + str2 + "')");
		return str
	}
}

//=====[°ªÀÌ ¼ýÀÚÀÌ¸é true, ¹®ÀÚ ¶Ç´Â null,"",undefined ÀÌ¸é false ¸¦ ¸®ÅÏ]===========
function isNum(value){
	if(value == "" || value == null || String(value) == "undefined"){
		return false;
	}
	else{
		if(isNaN(value)){
			return false;
		}
		else{
			return true;
		}
	}
}
//¼ýÀÚ 3ÀÚ¸®¸¶´Ù ÄÄ¸¶ ºÙÀÌ±â ÇÔ¼ö========================================
function replace_money(value){
  value = String(value);
	mbuho = "" ;
  
	if(value != ""){
		if(value.substr(0,1) == "-"){
			mbuho = "-" ;
			value = value.replace("-","");
		}

	}

	var no_len = value.length ;
	if(no_len%3 != 0){
		for(var i=0; i<(3-(no_len%3)); i++){
			value = "a" + value ;
		}
	}
	var no_len = value.length ;
	money_value = "";
	if(no_len > 3){
		for(var i=0 ; i<no_len-3 ; i += 3){
			money_value = money_value + value.substr(i,3) + "," ;
		}
		money_value = money_value + value.substr(i,3);
	}else{
		money_value = value ;
	}
	money_value = String(money_value).replace(/a/g,'');
	
	return mbuho + money_value ;

}

//=====[³â¿ùÀÏÀ» ÀÔ·ÂÇÏ¿© Á¤È®ÇÑ ³¯Â¥ÀÌ¸é true ¾Æ´Ï¸é false ¸®ÅÏ]=================================== 
function isDate(strYear,strMonth,strDay){
	switch (Number(strMonth)){
		case  1:
		case  3:
	    case  5:
		case  7:
		case  8:
		case 10:
		case 12:
			MAXDAY = 31;
			break;
		case  4:
		case  6:
		case  9:
		case 11:
			MAXDAY =30;
			break;
		case  2:
			if(Number(strYear) % 4 == 0){
				if(Number(strYear) % 100 == 0){
					if(Number(strYear) % 400 == 0){
						MAXDAY = 29;
					}
					else{
						MAXDAY =28;
					}
				}
				else{
					MAXDAY = 29;
				}
			}
			else{
				MAXDAY = 28;
			}
			break;
		default:
			return false;
	}
	if(Number(strDay) > 0 && Number(strDay) <= MAXDAY ){
		return true;
	}
	else{
		return false;
	}

}

//=====[¾î¶²Çü½ÄÀÇ ¹®ÀÚ¿­ÀÌµç "2001-01-01" ·Î º¯È¯ÇØ¼­ ¸®ÅÏ]=============================================
function conDate(value){
	var num = 0;
	value = value.replace(/(^\s+)|(\s+$)/g,'');
	value = value.replace(/ /g,'-');
	value = value.replace(/\//g,'-');
	value = value.replace(/\./g,'-');
	value = value.replace(/\,/g,'-');
	value = value.replace(/³â/g,'-');
	value = value.replace(/¿ù/g,'-');
	value = value.replace(/ÀÏ/g,'-');
	for(i=0 ; i < value.length; i++){
		if(value.substring(i,i+1) == "-"){
			num++;
		}
	}
	if(num == 2){
		value = value.split("-");
		
		if(value[0].length == 2){
			value[0] = "20" + value[0];
		}
		if(value[1].length == 1){
			value[1] = "0" + value[1];
		}
		if(value[2].length == 1){
			value[2] = "0" + value[2];
		}
		if(value[0].length == 4 && value[1].length == 2 && value[2].length == 2){
			if(isNaN(value[0]) || isNaN(value[1]) || isNaN(value[2])){
				
				return "";
			}
			else{
				if(isDate(value[0],value[1],value[2])){
					
					return value[0] + "-" + value[1] + "-" + value[2];
				}else{
					return "";
				}
			}
		}
		else{
			
			return "";
		}
	}
	else{
		if(!(isNaN(value)) && (value.length == 8 || value.length == 6)){
			if(value.length ==8){
				if(isDate(value.substring(0,4),value.substring(4,6),value.substring(6,8))){
					
					return value.substring(0,4) + "-" + value.substring(4,6) + "-" + value.substring(6,8);
				}else{
					return "";
				}
			}
			else{
				if(isDate("20" + value.substring(0,2),value.substring(2,4),value.substring(4,6))){
					
					return "20" + value.substring(0,2) + "-" + value.substring(2,4) + "-" + value.substring(4,6);
				}else{
					return "";
				}
			}
		}
		else{
			return "";
		}
	}
}

//=====[³¯Â¥¿¡ ÇØ´çÇÏ´Â ÇÊµåÀÇ °ªÀ» ³¯Â¥Çü½ÄÀ¸·Î ¼¼ÆÃ]================================================ 
function setDateField(objField){
	value = objField.value;
	returnValue = conDate(value);
	objField.value = returnValue ;

}
//=====[³¯Â¥ÇüÀ» ¹Þ¾Æ¼­ "2001-01-01" ÇüÅÂ ¹®ÀÚ·Î º¯È¯ÇØ¼­ ¸®ÅÏ]=============================================
function conDateStr(value){
	y= value.getYear();
	m=value.getMonth()+1;
	if(Number(m) < 10){
		m = "0" + m;
	}
	d=value.getDate();
	if(Number(d) < 10){
		d = "0" + d;
	}
	return  y + "-" + m + "-" + d;
}

//=====["2001-01-01" ÇüÅÂ ¹®ÀÚ¸¦ ¹Þ¾Æ¼­ ³¯Â¥ÇüÀ¸·Î º¯È¯ÇØ¼­ ¸®ÅÏ]=============================================
function conStrDate(str){
	newDate = str.split("-");
		mdate = new Date(newDate[0],Number(newDate[1])-1,newDate[2]);
		return  mdate;
	
}

//=====[µÎ ³¯Â¥ Â÷ÀÌ¸¦ ÀÏ¼ö·Î ¸®ÅÏ]===========================================================================
function getDateDiff(str1,str2){
	if(str1.substr(4,1) == "-" && str1.substr(7,1) == "-" && str2.substr(4,1) == "-" && str2.substr(7,1) == "-"){
		y = Number(str1.substr(0,4));
		m = Number(str1.substr(5,2)) - 1;
		d = Number(str1.substr(8,2));
		date1 = new Date(y,m,d);
		y = Number(str2.substr(0,4));
		m = Number(str2.substr(5,2)) - 1;
		d = Number(str2.substr(8,2));
		date2 = new Date(y,m,d);

		return (Math.floor((date2.getTime() -  date1.getTime()) / (60*60*24*1000))); 
	}
	else{
		return "";
	}
}

//=====[³â,¿ù,ÀÏ ¿¡ °ªÀ» ´õÇÑ ³¯Â¥¸¦ ¸®ÅÏ]=====================================================================
function getDateAdd(value,str,int){
	dateArray = value.split("-");
	if(str == 'Y'){
		dateArray[0] = Number(dateArray[0]) + int;
	}
	if(str == 'M'){
		dateArray[1] = Number(dateArray[1]) + int;
	}
	else{
		dateArray[2] = Number(dateArray[2]) + int;
	}
	
	newDate = new Date(dateArray[0],Number(dateArray[1])-1,dateArray[2]);

	y =newDate.getYear();
	m =newDate.getMonth()+1;
	d =newDate.getDate();
	if(String(m).length == 1){
		m = "0" + m;
	}
	if(String(d).length == 1){
		d = "0" + d;
	}
	return  y + "-" + m + "-" + d ; 
}

//=====['³â-¿ù-ÀÏ' Çü½ÄÀÇ ³¯ÀÚÀÇ ¸¶Áö¸· ´ÞÀÇ ³¯Â¥¸¦ ¸®ÅÏ]========================================================
function getLastDate1(strDate){
	newDate = strDate.split("-");
	strYear = Number(newDate[0]);
	strMonth = Number(newDate[1]);
	returndate = getLastDate2(strYear,strMonth);
	return returndate;
	
}

//=====[³â,¿ù À» ¹Þ¾Æ  ¸¶Áö¸· ´ÞÀÇ ³¯Â¥¸¦ ¸®ÅÏ]============================================================
function getLastDate2(strYear,strMonth){
	strYear = Number(strYear);
	strMonth = Number(strMonth);
	strDay = "";
	switch (Number(strMonth)){
		case  1:
		case  3:
	    case  5:
		case  7:
		case  8:
		case 10:
		case 12:
			strDay = "31";
			break;
		case  4:
		case  6:
		case  9:
		case 11:
			strDay = "30";
			
			break;
		case  2:
			if(Number(strYear) % 4 == 0){
				if(Number(strYear) % 100 == 0){
					if(Number(strYear) % 400 == 0){
						strDay = "29";
					}
					else{
						strDay = "28";
					}
				}
				else{
					strDay = "29";
				}
			}
			else{
				strDay = "28";
			}
			break;
		default:
		return "";
	}
	if(strMonth < 10){
		return strYear + "-0" + strMonth + "-" + strDay;
	}
	else{
		return strYear + "-" + strMonth + "-" + strDay;
	}
}

//=====[ÄíÅ°°ªÀ» ¼¼ÆÃÇÑ´Ù.]=============================================================================
function setCookie(str1,str2){
	document.cookie = str1 + "=" + str2 + ";path=/" ;
}

//=====[ÄíÅ°°ªÀ» ÀÐ¾î ¿Â´Ù]=============================================================================
function getCookie(str){
	var alen = str.length;
	var clen = document.cookie.length;
	var i = 0;

	var m_cook="no";
	if(clen > alen){
		for(i=0;i<clen-alen-1;i++){
			if(document.cookie.substring(i,alen+i)==str){
				m_cook=document.cookie.substring(alen+i+1,clen);
				m_cook=m_cook.split(";");
				m_cook=m_cook[0];
				break;
			}
			
		}
		
		return m_cook;

	}
	else{

		return "";
	}
}


//=====[¸ÞÀÏ Á¤»óÀ¯¹« ¿¡·¯ÄÚµå]===============================================================
function valMail(str){
	space_cnt = 0;
	gol_cnt = 0;
	point_cnt = 0;
	gol_point = 0;
	point_point = 0;
	if(str != "" && str != null && String(str) != "undefined"){
		for(i=0; i < str.length; i++){
			if(str.substr(i,1) == " "){
				space_cnt = space_cnt + 1;
			}
			if(str.substr(i,1) == "@"){
				gol_cnt = gol_cnt + 1;
				gol_point = i;
			}
			if(str.substr(i,1) == "."){
				if(gol_cnt>0){
					point_cnt = point_cnt + 1;
					point_point = i;
				}
			}
		}

		if(space_cnt > 0){
			return -1;
		}
		else if(gol_cnt < 1){
			return -2;
		}
		else if(point_cnt < 1){
			return -3;
		}
		else if(gol_point == 0){
			return -4;
		}
		else if(gol_point+1 == point_point){
			return -5;
		}
		else if(str.length == point_point+1){
			return -6;
		}
		else{
			return 1;
		}
	}
	else{
		return -7;
	}


}

//=====[ÇØ´ç ÇÊµåÀÇ ¾ÕµÚ °ø¹éÁ¦°Å]====================================================================
function setTrimField(objField){
	objField.value = objField.value.replace(/(^\s+)|(\s+$)/g,'');
}


//=====[ÇØ´çÆûÀÇ ¸ðµç °ªµéÀ» Trim ÇÑ´Ù.]=====================================================================
function setTrimForm(formName){
	cnt = eval("document." + formName + ".elements.length");
	for(i=0; i<cnt; i++){
		txt = eval("document."+formName+".elements["+i+"].value");
		txt = txt.replace(/(^\s+)|(\s+$)/g,'');
		eval("document."+formName+".elements["+i+"].value ='" + txt + "'");  
	}
}

//=====[À©µµ¿ì ¿ÀÇÂÇÏ±â]=======================================================================================
function callWin(objWinName,winName,url,vWidth,vHeight,vScroll,vSize,vState,vPoint){
	if(vPoint == 1){
		x = 0;
		y = 0;
	}
	else if(vPoint == 2){
		x = screen.width/2 - vWidth/2 ;
		y = screen.height/2 - vHeight/2; 
	}
	else{
		x = screen.width - vWidth;
		y = 0;
	}
	
	if(vScroll == 1){
		vScroll = "yes";
	}
	else{
		vScroll = "no";
	}
	if(vSize == 1){
		vSize = "yes";
	}
	else{
		vSize = "no";
	}
	if(vState == 1){
		vState = "yes";
	}
	else{
		vState = "no";
	}
	objWinName = window.open(url,winName,"width=" + vWidth + ",height="+vHeight+",top="+y+",left="+x+",status="+vState+",scrollbars="+vScroll+",resizable="+vSize);
	objWinName.focus();
	
}


//=====[ÁÖ¹Î¹øÈ£Ã¼Å©]=======================================================================================
function valJumin(str1,str2){
	
	if(str1.length != 6){
		return -1;
	}
	else if(isNaN(str1) ){
		return -2;
	}
	else if(str2.length != 7){
		return -3;
	}
	else if(isNaN(str2)){
		return -4;
	}
	else if(Number(str2.substr(0,1)) != 1 && Number(str2.substr(0,1)) != 2 && Number(str2.substr(0,1)) != 3){
		return -5;
	}
	else{
		var total=0;
		var namuji=0;
		var key="234567892345";
		num=String(str1)+String(str2);
	 
		for (i=0 ; i<=11 ; i=i+1){
			total=Number(total) + Number(num.charAt(i)) * Number(key.charAt(i))
		}
        namuji=eval(total % 11)
		if (namuji==0) {
			namuji=10;
		}
		 
		if(namuji==1) {
			namuji=11;
		 
		 }
		total=eval(11-namuji);
	     
	 
		if (total!=num.charAt(12)){
			return -6;
		}
		else{
			return 1;
		}
	}
}

//=====[ÀÌ¹ÌÁö ·Ñ¿À¹ö]====================================================================================
function imgRoll(obj,img_url){
	objName=obj.name;
	eval("document.images."+objName+".src='"+img_url+"'");
}

//==========================================================
//===   ¹®ÀÚ°¡ Æ÷ÇÔµÇ¾îÁø ÄÚµå 1¾¿ Áõ°¡ÇØ¼­ ¸®ÅÏÇØÁÖ´Â ÇÔ¼ö
//==========================================================
function StrIncrease(value,nullValue){


  value = String(value).replace(/ /g,"");

  if(value == "" || value == "undefined" || value == null){
	  return nullValue ;
  }else{
	  var strLength = value.length ;
		var maxI = -1 ;
		var strValue = "";
		var intValue = "";
		for(var i=0 ; i< strLength; i++){
			if(isNaN(String(value).substring(i,i+1))){
				maxI = i ;
			}
		}
		strValue = String(value).substring(0,maxI+1);
		intValue = String(value).replace(strValue,"");
		var intValueLen = String(intValue).length ;
		intValue = String(Number(intValue)+1);
		tempValue = intValue ;
		for(var i=0; i< (intValueLen - String(intValue).length) ; i++){
			tempValue = "0" + tempValue ;
		}
		
		return strValue + tempValue ;
  }
}

//Æû¿¡ ¾×¼Ç°ü·Ã ÇÔ¼ö,¾×¼Ç°ª,ÀÎ¼ö¸¦ °¡Áö°í ¸µÅ©¿¡ ¼­ºê¹ÔÇÑ´Ù. ¸µÅ©½Ã Æ÷½ºÆ®¹æ½ÄÀ¸·Î..
//°íÁ¤º¯¼ö SEQ_NO,ÆäÀÌÂ¡
function actionform(actionobject,actionvalue,m_page,SEQ_NO) {
var actionobject;
actionobject = eval(actionobject);
  actionobject.action = actionvalue;
  if (SEQ_NO != '') {actionobject.SEQ_NO.value = SEQ_NO;}
  if (m_page != '') {actionobject.m_page.value = m_page;}
  actionobject.submit();

}

//ÀÔ·Â°ª Ã¼Å©¿Í °Å±â¿¡ µû¸¥ ¸Þ½ÃÁö Ãâ·Â
//folder = document.writeform.phone;;
//if (digit(folder,"ÀüÈ­¹øÈ£(Áý/È¸»ç)´Â ¼ýÀÚ¿Í -±âÈ£¸¸ µé¾î°©´Ï´Ù.",'1234567890-')== false) return;

function digit(str, msg, data)
{
     var ch  = data
     var s = str.value
     for (i=0; i<s.length; i++) {
     if(ch.indexOf(s.substring(i,i+1)) == -1) {
             alert(msg);
             str.focus()
             str.select()
             return false;
         }
     }
     return true;
}


// Ã¼Å©¹Ú½ºÀÇ ³»¿ëÀ» ÀüÃ¼¼±ÅÃ ¼±ÅÃÇØÁ¦ ½ºÅ©¸³Æ®

function totchk(chkstart,formname) {
                formname = eval(formname);
		for(j=chkstart;j<formname.elements.length;j++)
			formname.elements[j].checked=true;
	}

function totoff(chkstart,formname) {
                formname = eval(formname);
		for(j=chkstart;j<formname.elements.length;j++)
			formname.elements[j].checked=false;		
	}

//file¸í ±æÀÌÃ¼Å©
function CheckByte1(selObj)
{
	var sTmpStr;
	var nMaxLen = 90;
	var nOriginLen = 0;

	sTmpStr = new String(selObj.value);

	nOriginLen = sTmpStr.length;

	var tmp = nOriginLen - sTmpStr.lastIndexOf("\\")

	if (tmp>nMaxLen)	{
		return 1;
	}else{
		return 0;
	}
}

//flash
function flash_contents(file,width,height){
document.writeln("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='"+width+"' HEIGHT='"+height+"' id='contents' ALIGN=''>");
document.writeln("<PARAM NAME=movie value='"+file+"' />");
document.writeln("<PARAM NAME=quality VALUE=high>");
document.writeln("<PARAM NAME=bgcolor VALUE=#FFFFFF>");
document.writeln("<PARAM NAME=wmode VALUE=transparent> ");
document.writeln("<embed src='"+file+"' quality='high' bgcolor='#FFFFFF' width='"+width+"' height='"+height+"' name='contents' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
document.writeln("</OBJECT>");
}



//TV_AD_MEDIA___
function tv_adplay(file,w,h,mediaName) {
document.write('<object id="'+mediaName+'" name=id="'+mediaName+'" width='+w+' height='+h+' classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,05,0809" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" VIEWASTEXT>')
document.write('<param name="transparentAtStart" value="True">')
document.write('<param name="transparentAtStop" value="False">')
document.write('<param name="AnimationAtStart" value="0">')
document.write('<param name="Loop" value="true">')
document.write('<param name="AutoStart" value="0">')
document.write('<param name="AutoRewind" value="true">')
document.write('<param name="SendMouseClickEvents" value="True">')
document.write('<param name="DisplaySize" value="0">')
document.write('<param name="AutoSize" value="False">')
document.write('<param name="ShowDisplay" value="False">')
document.write('<param name="ShowControls" value="False">')
document.write('<param name="ShowTracker" value="True">')
document.write('<param name="FileName" value="'+file+'">')
document.write('<param name="Enabled" value="1">')
document.write('<param name="EnableContextMenu" value="1">')
document.write('<param name="EnablePositionControls" value="1">')
document.write('<param name="EnableFullScreenControls" value="1">')
document.write('<param name="ShowPositionControls" value="1">')
document.write('<param name="Mute" value="0">')
document.write('<param name="Rate" value="1">')
document.write('<param name="SAMILang" value="">')
document.write('<param name="SAMIStyle" value="">')
document.write('<param name="SAMIFileName" value="">')
document.write('<param name="ClickToPlay" value="0">')
document.write('<param name="CursorType" value="1">')
document.write('<embed src="'+file+'"   id="'+mediaName+'" Loop=true  quality=high menu="false" bgcolor=#FFFFFF  WIDTH="'+w+'" HEIGHT="'+h+'" autoplay=true controller=true loop=false type="application/x-oleobject"></embed></object>')
} 
//--------------------------------------------------------------






function IgnoreError()
{
    return true;
}

function OnContext()
{
	return false;
}

// Å°º¸µå ÀÔ·ÂÁ¦¾î
function KeyEventHandle() 
{

	
	if( ( event.ctrlKey == true && (event.keyCode == 78 || event.keyCode == 82) )
	|| ( event.keyCode >= 112 && event.keyCode <= 123 ) )
	{
		
		event.cancelBubble = true;
		event.returnValue = false;
			if (event.keyCode == 116)
			{
				top.main.location.reload();
			}
			top.left.focus();


		event.keyCode = 0;
	}

	
}

function MouseDrag(e)
{
	// ½½¶óÀÌµå¹öÆ°À» ¸¶¿ì½º·Î Å¬¸¯ÇÑ »óÅÂ
	if(window.event.button == 1 && bSlide) Slide_Control(GetPointX(),false);
	
	// º¼·ý¹öÆ°À» ¸¶¿ì½º·Î Å¬¸¯ÇÑ »óÅÂ
	if(window.event.button == 1 && bVolume) Volume_Control(GetPointX(),false);

	return false;
}

function MouseUp(e)
{
	bVolume = false;
	
	if(bSlide)
	{
		bSlide = false;
		if(MediaPlayer.PlayState == 2)
		{
			MediaPlayer.CurrentPosition =  parseInt(MediaPlayer.Duration * (GetPointX() - Slide_Min) / (Slide_Max - Slide_Min), 10);
		}
	}
		
	return false;
}

function MouseDown(e)
{
	var elt;
	var eltTN;
	var eltID;
	
	elt = window.event.srcElement;
	eltTN = elt.tagName;
	eltID = elt.id;
	
	// ½½¶óÀÌµå¸¦ ÀÌ¿ëÇØ µ¿¿µ»óÀ» º¸·ÁÇÏ´Â °æ¿ì
	if(eltTN == "IMG" && eltID == "SlideButton")
	{
		Slide_Top = DivSlide.style.pixelTop;
		bSlide = true;
	}
	if((eltTN == "IMG" && eltID == "SlideBar") || (eltTN == "TD" && eltID == "SlideBack"))
	{
		Slide_Control(GetPointX(),false);
	}
	
	// º¼·ý¹Ù¸¦ ÀÌ¿ëÇØ Á¶ÀýÇÏ´Â °æ¿ì
	if(eltTN == "IMG" && eltID == "VolumeButton")
	{
		Vol_Top = DivVol.style.pixelTop;
		bVolume = true;
	}
	// Æ¯Á¤¿µ¿ªÀ» Å¬¸¯ÇÏ¿© º¼·ýÀ» Á¶ÀýÇÏ´Â °æ¿ì
	if((eltTN == "IMG" && eltID == "VolumeBar") || (eltTN == "TD" && eltID == "VolumeBack"))
	{
		Volume_Control(GetPointX(),false);
	}
	return false;
}



//window.onerror			= IgnoreError;
document.onkeydown		= KeyEventHandle;
//document.oncontextmenu	= OnContext;

//document.onmousedown   = MouseDown;
//document.onmousemove   = MouseDrag;
//document.onmouseup     = MouseUp;

document.write("<div id='divfileUpload' name='divfileUpload'  style='position:absolute; left:260; top:150; visibility:hidden; ' ></div>");
function fileUploadCall(){

  document.all("divfileUpload").innerHTML = "<img src='/img/upload.gif'>" ;
  fwy	= window.document.body.offsetHeight - 5;
  fscy	= document.body.scrollTop;
  dd = (fwy/2 + fscy );
  document.all.divfileUpload.style.posTop = dd ;
  document.all.divfileUpload.style.visibility = 'visible' ;
}

//=====[scrptX ÇÁ¸°Æ®ÇÔ¼ö.....]==================
function printWindow()
{
factory.printing.header = ""
factory.printing.footer = ""
factory.printing.portrait = true //false·Î ÇÏ¸é °¡·Î·Î ³ª¿È...
factory.printing.leftMargin = 10.0
factory.printing.topMargin = 25.0
factory.printing.rightMargin = 10.0
factory.printing.bottomMargin = 25.0
factory.printing.Print(true, ifrm);
}

//=====[scrptX ¹Ì¸®º¸±âÇÔ¼ö.....]==================
function previewWindow()
{
factory.printing.header = ""
factory.printing.footer = ""
factory.printing.portrait = true //false·Î ÇÏ¸é °¡·Î·Î ³ª¿È...
factory.printing.leftMargin = 10.0
factory.printing.topMargin = 25.0
factory.printing.rightMargin = 10.0
factory.printing.bottomMargin = 25.0
factory.printing.Preview(ifrm); // ¹Ì¸®º¸±â  »ó¿ë¸¸ ¼±ÅÃframeÀ¸·Î preview °¡´ÉÇÔ

}
