browserName	= navigator.appName;browserVer	= parseInt(navigator.appVersion);browserInit	= (browserName=='Netscape' && browserVer>=3) ? 'net' : 'ie' ;/**************************************************************** GET method value */function xURL_String(param) {	var se = document.location.search.substr(1);	var qa = {}; // query array        se.replace(/([^=]+)=([^&]*)(&|$)/g, function(){		qa[arguments[1]] = arguments[2];		return arguments[0];	});	return (param) ? qa[param] : qa;}/**************************************************************** this URL */function xURL_return(param) {	var dl = document.location;	return dl.pathname+''+dl.search;}/**************************************************************** image slide show*/var slideShowLoopNum = 0;var slideShowSpeed = 0;var crossFadeDuration = 0;var slidePreLoadImage = new Array();var slidePicList = new Array();var slideImageID = FUNC_randomID();function FUNC_runSlideshow(slideShowID) {	var slideShowID	= document.getElementById(slideShowID);	if(slideShowID) {		slideShowID.style.filter	= 'blendTrans(duration='+crossFadeDuration+')';		slideShowID.filters.blendTrans.Apply();		slideShowID.src			= slidePreLoadImage[slideShowLoopNum].src;		slideShowID.filters.blendTrans.Play();		slideShowLoopNum = slideShowLoopNum + 1;		if( slideShowLoopNum > (slidePicList.length-1) ) { slideShowLoopNum = 0; }		setTimeout('FUNC_runSlideshow("'+slideShowID.id+'")',slideShowSpeed);	}}function FUNC_rotationSlideshow() {	if(!slidePicList[0]) {return false; }	for (i = 0; i < slidePicList.length; i++) {		slidePreLoadImage[i] = new Image();		slidePreLoadImage[i].src = slidePicList[i];	}	if(slideImageID) { FUNC_runSlideshow(slideImageID); }}function FUNC_printSlideshow(objSpeed,objCross,img0,img1,img2,img3,img4,img5,img6,img7,img8,img9) {	var j = 0;	for(var i=0; i<10; i++) {		if(eval('img'+i)) {			slidePicList[j] = eval('img'+i);			j=j+1;		}	}	objSpeed	= objSpeed ? objSpeed : 1;	objCross	= objCross ? objCross : 0;	slideShowSpeed	= Number(objSpeed+'000');	crossFadeDuration = Number(objCross);	if(slidePicList[0]) {		document.write("<img src='"+slidePicList[0]+"' id='"+slideImageID+"' border='0'>");		document.onload=FUNC_rotationSlideshow();	}}/**************************************************************** make id */function FUNC_randomID(idVal) {	if(!idVal) idVal = 'xID'+Math.round(Math.random()*1000);	if(!document.getElementById(idVal)) return idVal;	else FUNC_randomID();	return true;}/**************************************************************** make IFRAME (obj) *//* IFRAME을 ELEMENT에 생성함 (나타낼 ELEMENT.id, URL, PARAMET) */function FUNC_iframeCreateObject(obj,url,para) {	var objID		= document.getElementById(obj);	if(objID) {		if(objID.hasChildNodes()!=false) { return false; }		var createID	= FUNC_randomID();		var param	= 'xEleID='+createID;		if(para) {			for(var i=0; i < para.length; i++) {				var paraVal =	para[i].split('=');				if(paraVal[1])	param += '&'+para[i];			}		}		var createFRM		= document.createElement('iframe');		createFRM.id		= createID;		createFRM.src		= url+"?"+param;		createFRM.width		= '100%';		createFRM.height	= 0;		createFRM.frameBorder	= 0;		createFRM.marginHeight	= 0;		createFRM.marginWidth	= 0;		createFRM.scrolling	='no';		createFRM.allowTransparency='true';		objID.appendChild(createFRM);	}	return createID;}/**************************************************************** make IFRAME (document) *//* IFRAME을 document에 생성함 (URL, PARAMET) */function FUNC_iframeCreateDocument(url,para) { 	var createID	= FUNC_randomID();	var param	= 'xEleID='+createID;	if(para) {		for(var i=0; i < para.length; i++) {			var paraVal =	para[i].split('=');			if(paraVal[1])	param += '&'+para[i];		}	}	document.write("<iframe id='"+createID+"' src='"+url+"?"+param+"' width='100%' height='0' frameBorder='0' scrolling='no' marginHeight='0' marginWidth='0' allowTransparency='true'></iframe>");	return true;}/**************************************************************** print FALSH */function FUNC_printFlash(objUrl, objWidth, objHeight, objMode, objParam, objBgcolor){ 	var createID	= FUNC_randomID();	if(!objUrl) { document.write('object URL check!'); return false; }	if(!objWidth) { document.write('object width size check!'); return false; }	if(!objHeight) { document.write('object height size check!'); return false; }	var flashParam	=	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+objWidth+"' height='"+objHeight+"' id='"+createID+"' align='absmiddle'>"+				"<param name='allowScriptAccess' value='always' /><param name='menu' value='false' /><param name='quality' value='high' /><param name='swliveconnect' value='true'>";	var flashStr	=	"<embed src='"+objUrl+"' name='"+createID+"' "+				" width='"+objWidth+"' height='"+objHeight+"' ";	flashParam	+=	"<param name='movie' value='"+objUrl+"' />";	if(objParam) {		flashStr	+= " FlashVars='"+objParam+"' ";		flashParam	+= "<param name='FlashVars' value='"+objParam+"' />";	}	if(objBgcolor) {		flashStr	+= " bgcolor='"+objBgcolor+"' ";		flashParam	+= "<param name='bgcolor' value='"+objBgcolor+"' />";	}	if(objMode) {		flashStr	+= " wmode='"+objMode+"' ";		flashParam	+= "<param name='wmode' value='"+objMode+"' />";	}	flashStr	+=	" swliveconnect='true' menu='false' quality='high' align='absmiddle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+				"</object>";	document.write(flashParam+''+flashStr);	return createID;}/**************************************************************** make roundbox *//* 라운드박스 만들기 (엘리먼트ID, 박스크기, 라인크기, 라운드색상,라인색상,안쪽배경색) */function FUNC_makeRoundBox(boxID,boxWidth,boxBorder,colorRound,colorLine,colorBG){	var boxID	= document.getElementById(boxID);	if(!boxID) { return false; }	var boxContent	= boxID.innerHTML;	boxID.innerHTML = '';	var boxWidth = (boxWidth>=100) ? boxWidth+'px': '100%';	var boxWidthIn = (boxWidth>=100) ? (boxWidth-6)+'px': '100%';	var boxBorder = (!boxBorder) ? '3px' : boxBorder+'px';	var colorRound = (!colorRound) ? '#EEEEEE' : colorRound;	var colorLine = (!colorLine) ? '#CCCCCC' : colorLine;	var colorBG = (!colorBG) ? '#FFFFFF' : colorBG;	var colorRound = (colorRound.substr(0,1)!='#') ? '#'+colorRound : colorRound;	var colorLine = (colorLine.substr(0,1)!='#') ? '#'+colorLine : colorLine;	var colorBG = (colorBG.substr(0,1)!='#') ? '#'+colorBG : colorBG;	newElem	= document.createElement("<div style='width:"+boxWidth+";padding:0px; border:"+boxBorder+" solid "+colorRound+";'>");	newElem.innerHTML = "<div style='width:"+boxWidthIn+";padding:0px; border:1px solid "+colorLine+";  background-color:"+colorBG+"; padding:10px;'>"+boxContent+"</div>";	boxID.appendChild(newElem);}/**************************************************************** make BackgroundBOX *//* 화면전체를 검은배경으로 채운다. */function FUNC_makeBackgroundBOX() {	var bodyID		= document.body;	var bodyWidth		= (document.body.scrollWidth>document.body.offsetWidth) ? document.body.scrollWidth : document.body.offsetWidth-20;	var bodyHeight		= (document.body.scrollHeight>document.body.offsetHeight) ? document.body.scrollHeight : document.body.offsetHeight-5;	var createDIV		= document.createElement("<DIV style='filter:Alpha(opacity=60); opacity:0.6; -moz-opacity:0.6;'>");	createDIV.id		= 'blackBackgroundBOX';	createDIV.style.left	= '0px';	createDIV.style.top	= '0px';	createDIV.style.position= 'absolute';	createDIV.style.zIndex	= 9995;	createDIV.style.width	= bodyWidth+'px';	createDIV.style.height	= bodyHeight+'px';	createDIV.style.backgroundColor= 'black';	bodyID.appendChild(createDIV);	FUNC_hiddenSELECT(0);	var prevOnScroll = window.onscroll;	window.onscroll = function () {		if(prevOnScroll != undefined) prevOnScroll();		createDIV.style.width	= bodyWidth+'px';		createDIV.style.height	= bodyHeight+'px';	}	var prevOnResize = window.onresize;	window.onresize = function () {		if(prevOnResize != undefined) prevOnResize();		createDIV.style.width	= document.body.offsetWidth+'px';		createDIV.style.height	= document.body.offsetHeight+'px';	}	return true;}/**************************************************************** make BackgroundBOX *//* 화면전체의 검은배경을 취소한다. */function FUNC_hideBackgroundBOX() {	document.getElementById('blackBackgroundBOX').removeNode(true);	FUNC_hiddenSELECT(1);	return true;}/**************************************************************** make BackgroundBOX *//* 페이지내의 select box 를 숨긴다. */function FUNC_hiddenSELECT(hide) {	var windows = window.frames.length;	var selects = document.getElementsByTagName('SELECT');	for (i=0;i < selects.length ;i++ ) {		selects[i].style.visibility = (!hide) ? 'hidden' :'visible';	}	if (windows > 0) {		for(i=0; i < windows; i++) {			try {				var selects = window.frames[i].document.getElementsByTagName('SELECT');				for (j=0;j<selects.length ;j++ ) {					selects[j].style.visibility = (!hide) ? 'hidden' :'visible';				}			} catch (e) { }		}	}	return true;}/**************************************************************** make BackgroundBOX *//* obj를 화면의 가운데로 이동시킨다. *//* obj를 중앙에 정렬시킨다. */function FUNC_moveCenter(obj) {	var moveWidth	= window.innerWidth || self.innerWidth || document.body.clientWidth;	var moveHeight	= window.innerHeight || self.innerHeight || document.body.clientHeight;	var moveLeft	= (document.body.scrollLeft + ((moveWidth-(obj.width||parseInt(obj.style.width)||obj.offsetWidth))/2));	var moveTop	= (document.body.scrollTop + ((moveHeight-(obj.height||parseInt(obj.style.height)||obj.offsetHeight))/2));	if((obj.width||parseInt(obj.style.width)||obj.offsetWidth) >= moveHeight) moveLeft = 0;	if((obj.height||parseInt(obj.style.height)||obj.offsetHeight) >= moveHeight ) moveTop = document.body.scrollTop;	obj.style.left = moveLeft + 'px';	obj.style.top = moveTop + 'px';	obj.style.position	= 'absolute';	obj.style.zIndex	= 9997;	return true;}/*  popup */function popup(getUrl,getWidth,getHeight,popName) {	var winWidth	= window.screen.width;	var winHeight	= window.screen.height;	var imgWidth = (winWidth > getWidth)?getWidth:winWidth-200;	var imgHeight = (winHeight > getHeight)?getHeight:winHeight-200;	var winLeft = (getWidth)?(winWidth-imgWidth)/2:10;	var winTop = (getHeight)?(winHeight-imgHeight)/2:10;	if(!popName) var popName = 'xeonPOP';	var winObj = window.open(getUrl,popName,'width='+imgWidth+',height='+imgHeight+',left='+winLeft+',top='+winTop+',status=no,scrollbars=auto').focus();	return;}var openPreview = 0function FUNC_imagePOPUP(url,w,h) {	if(openPreview) openPreview.close();	var innerhtmlSource="<html><head><title>freeview</title><body topmargin=0 leftmargin=0>";	var popWidth=(w>0)?w:800;	var popHeight=(h>0)?h:500;	var winWidth	= window.screen.width;	var winHeight	= window.screen.height;	var imgWidth	= (winWidth > w)?w:winWidth-200;	var imgHeight	= (winHeight > h)?h:winHeight-200;	var winLeft	= (w)?(winWidth-imgWidth)/2:10;	var winTop	= (h)?(winHeight-imgHeight)/2:10;	if(url) {		innerhtmlSource+="<table border=0 cellpadding=0 cellspacing=0 width=100% height=100% onclick='window.close();' style='cursor:pointer;'>";		innerhtmlSource+="<tr><td align=center valign=middle><img src="+url+" ></td></tr>";		innerhtmlSource+="</table>";	}	openPreview=window.open('','imagePreview','width='+popWidth+',height='+popHeight+',left='+winLeft+',top='+winTop+',status=no,scrollbars=auto');	try { openPreview.document.write(innerhtmlSource); }	catch(e){ }	openPreview.focus();	return true;}function xCostComma(n){	return Number(String(n).replace(/\..*|[^\d]/g,"")).toLocaleString().slice(0,-3);}function xFieldChecking(obj,val) {        if(obj=='email') {                var regExp = /[a-z0-9]{2,}@[a-z0-9-]{2,}\.[a-z0-9]{2,}/i;                return (regExp.test(val))?true:false;        } else        if(obj=='korean') {                for(i=0;i<val.length;i++) {                        c = val.charAt(i);                        if(!((c<'0'||c>'9')&&(c<'a'||c>'z')&&(c<'A'||c>'Z'))) return false;                }       return true;        } else        if(obj=='engnum') {		for(var i = 0; i < val.length; i++) {			var chk = val.substring(i,i+1);			if(!chk.match(/[0-9]|[a-z]|[A-Z]/)) {				if(chk!='_' && chk!='-') return false;			}		}	return true;	} else        if(obj=='jumin') {                var chk =0;                var jumin = val.split('-');                var yy = jumin[0].substring(0,2);                var mm = jumin[0].substring(2,4);                var dd = jumin[0].substring(4,6);                var sex = jumin[1].substring(0,1);                if ((jumin[0].length!=6)||(yy <25||mm <1||mm>12||dd<1)){ return false;}                if ((sex != 1 && sex !=2 )||(jumin[1].length != 7 )) { return false; }                for (var i=0;i<=5;i++){ chk = chk + ((i%8+2) * parseInt(jumin[0].substring(i,i+1))) }                for (var i=6;i<=11;i++){ chk = chk + ((i%8+2) * parseInt(jumin[1].substring(i-6,i-5))) }                chk = 11 - (chk %11);           chk = chk % 10;                if (chk != jumin[1].substring(6,7)) { return false; }                if (yy <25||mm <1||mm>12||dd<1) { return false; }                return true;        } else        if(obj=='mobile') {                var tel = val.split('-');                var tempNum=tel.join('');                if(tel[0].length<3 && tel[1].length<3 && tel[2].length<4) {  return false; }                else if(tel[0]!='010' && tel[0]!='011' && tel[0]!='016' && tel[0]!='017' && tel[0]!='018' && tel[0]!='019') {  return false; }                else if(tempNum.match(/\s/g)) {  return false; }                for(var i=0; i<tempNum.length; i++) {                        var chkNum = tempNum.substring(i,i+1);                        if(!chkNum.match(/[0-9]/)) {  return false; }                }                return true;        }        return false;}/**************************************************************** show memu */var define_mainID;var mainDipID, subDipID;function FUNC_menuDispID(objID) {	if(mainDipID) {		if(mainDipID==objID) return false;		overImage(document.getElementById(mainDipID),1);	}	mainDipID	= objID;	overImage(document.getElementById(objID),0);	if(subDipID) { if(document.getElementById(subDipID)) document.getElementById(subDipID).style.display='none'; }	subDipID = objID+'-';	if(subDipID) {		if(document.getElementById(subDipID)) {			document.getElementById(subDipID).style.display='inline';			document.getElementById(subDipID).onmouseleave = function(event){				document.getElementById(subDipID).style.display='none';				overImage(document.getElementById(mainDipID),1);				mainDipID='';	subDipID='';				if(define_mainID)				{ FUNC_defineDispID(define_mainID); }			}		}	}	return true;}function FUNC_defineDispID(objID) {	if(document.getElementById(objID)) {		define_mainID = objID;		FUNC_menuDispID(objID);	}}/*  파일명에 하이픈(-)이 붙도록 변경 */function overImage(obj,notOver) {	var objSrc = (obj.imgSrc == null) ? obj.src : obj.imgSrc;	if(objSrc==null) return false;	var Ext = objSrc.split('.');	var fileName = '';	for(var i=0; i < Ext.length-1; i++) {		if(i>0) fileName = fileName+'.';		fileName = fileName+''+Ext[i];	}	obj.style.cursor='pointer';	if(obj.rollOver == true) {		var fileName2 = '';		for(var j=0; j < fileName.length-1; j++) {			fileName2 = fileName2+''+fileName.charAt(j);		}		obj.src = fileName2+'.'+Ext[i];		obj.rollOver = false;	} else if(!notOver){		obj.src = fileName+'-.'+Ext[i];		obj.rollOver = true;	}	return true;}/*  파일명에 하이픈(-)을 붙여서 반환 */function FUNC_overImageExt(fileName,overType) {	if(!fileName) return false;	var Ext = fileName.split('.');	var createName = '';	for(var i=0; i < Ext.length-1; i++) {		if(i>0) createName = createName+'.';		createName = createName+''+Ext[i];	}	if(overType) {		var createName2 = '';		for(var j=0; j < createName.length-1; j++) {			createName2 = createName2+''+createName.charAt(j);		}		return createName2+'.'+Ext[i];	} else {		return createName+'-.'+Ext[i];	}	return true;}/*  체크박스를 확인한다. act값이 check면 반전, cancel이면 전체해제, allchk면 전체체크하고 없으면 체크상황을 리턴한다. */function FUNC_chkboxCHK(field,act) {        var chked = 0;        var FieldName   = document.getElementsByName(field+'[]');        if(FieldName) {                for(var i=0; i < FieldName.length; i++) {                        if(FieldName[i].type=='checkbox' && FieldName[i].disabled==false) {				if(act=='check') {					FieldName[i].checked = (FieldName[i].checked==true) ? false : true ;				} else if(act=='allchk') {					FieldName[i].checked = true;				} else if(act=='cancel') {					FieldName[i].checked = false;				} else if(FieldName[i].checked==true) {					return true;				}                        }                }        }        return false;}function copyClipboard(objVal) {	clipboardData.setData('Text',objVal);	alert('클립보드에 저장되었습니다.\nCtrl+V (붙여넣기) 하십시요. ');	return;}function textareaSizeID(fldID,hSize) {	if(document.getElementById(fldID)) {		if(hSize=='UP') {			if(document.getElementById(fldID).rows-3 > 0) document.getElementById(fldID).rows -= 3;		} else if(hSize=='DOWN') {			document.getElementById(fldID).rows += 3;		} else	document.getElementById(fldID).rows = 3;	}}function layerDelImg(f0,f1,f2){	var objF	= eval('document.'+f0+'.'+f1);	var objL1	= eval(f1+'_Layer1');	var objL2	= eval(f1+'_Layer2');	objF.value 	= f2;	if(f2=='Y') 	{		objL1.style.display	= 'none';		objL2.style.display	= '';	} else {		objL1.style.display	= '';		objL2.style.display	= 'none';	}}function divDisp(objId, act) {	if (document.getElementById(objId)) {		document.getElementById(objId).style.display = act;	}}/*  확장자리턴 */function getExtension(fileName) {	var name = fileName.split('.').shift();	return fileName.split('.').length>1?fileName.split('.').pop():false;}function imagesSizeCheck(resizeWidth){	if(!resizeWidth) {		var campusWidth = eval(document.campusWidth);		if(campusWidth) {			var resizeWidth = campusWidth.width;		}	}	var imageCHECK = eval(document.imageResize);	if(imageCHECK) var imageResizeNum = imageCHECK.length;	for(i=0;i<imageResizeNum;i++){		if(imageCHECK[i].width > resizeWidth) {			imageCHECK[i].onclick = function(){ imageRealView(this) };			imageCHECK[i].style.cursor ="pointer";			imageCHECK[i].width = resizeWidth;		}	}}function chkboxChecking(field) {        var chked = 0;        var FieldName   = document.getElementsByName(field+'[]');        if(FieldName) {                for(var i=0; i < FieldName.length; i++) {                        if(FieldName[i].type=='checkbox' && FieldName[i].disabled==false) {                                if(FieldName[i].checked==true)  return true;                        }                }        }        return false;}function setSelect(obj,val){	if(val && document.getElementById(obj)) {		document.getElementById(obj).value = val;	}}var NSnav=(navigator.appName=='Netscape')?1:0;document.write( "<div id=obj_xT style='position:absolute;top:-100px;z-index:3;display:none' onmouseover=\"overdiv=1;\" onmouseout=\"overdiv=0; setTimeout('cT()',200);\"><\/div>" );var nShow = false;var overdiv = 0;var timeid = "";var bmove = 0;function xT( contents, e, userstyle, w) {	if ( contents == "" ) return;	if (timeid) clearTimeout(timeid);	var objxT = document.getElementById("obj_xT");	objxT.style.left = -999	objxT.style.top = -999	if (!w) {		w = "400";	}	if ( !userstyle ) {		var tablewidth = ""		if ( contents.length > 40 ) tablewidth="width=" + w;		var div_string = "<div style='width:"+tablewidth+"px;padding:4px 5px 1px 7px;border:1px solid #999966;background-color:#FFFFE1;' class='fonts11-1'>"+contents+"<\/div>" ;	} else {		div_string = contents ;	}	objxT.innerHTML = div_string ;	objxT.style.display  = "block";	Pos(e);	overdiv = 0;	nmove = 0;	nShow = true;	return;}function cT(){	if(!overdiv) {		document.getElementById("obj_xT").style.display  = "none";		nShow = false;	}	return;}function sT(e) {	if ( !nShow ) return;	Pos(e);++bmove;	document.getElementById("obj_xT").style.display  = "block";	nShow = true;	return;}function Pos(e) {	var BodyWidth = document.body.scrollWidth - 200;	var BodyLeft = document.body.scrollLeft;	var BodyHeight = document.body.clientHeight;	var BodyTop = document.body.scrollTop;	var DivWidth = document.getElementById("obj_xT").scrollWidth;	var DivHeight = document.getElementById("obj_xT").scrollHeight;	xpos = e.clientX + BodyLeft + 11;	ypos = e.clientY + BodyTop + 11;	//limit right edge	if ( xpos + DivWidth > BodyWidth ) xpos = BodyWidth - DivWidth;	//limit left edge	if (BodyLeft > xpos) xpos = BodyLeft + 10;	//limit bottom edge	if (ypos + DivHeight > BodyTop + BodyHeight) ypos = ypos - DivHeight - 10;	//limit top edge	if ( ypos < BodyTop ) ypos = BodyTop + 10;	document.getElementById("obj_xT").style.left = xpos	document.getElementById("obj_xT").style.top = ypos}function divDisplay(objId, act) {	if (document.getElementById(objId)) {		document.getElementById(objId).style.display = act;	}}/* fieldArr의 이름을 가진 체크박스를 input으로 구성하여 리턴한다. */function FUNC_makeArrayField(fieldArr) {	var makeField;	var FieldName   = document.getElementsByName(fieldArr+'[]');	if(FieldName) {		for(var i=0; i < FieldName.length; i++) {			if(FieldName[i].type=='checkbox' && FieldName[i].disabled==false) {				if(FieldName[i].checked==true) {					makeField += "<input type='hidden' name='"+fieldArr+"[]' value='"+FieldName[i].value+"'>";				}			}		}	}	return makeField;}/* fieldArr의 이름을 가진 체크박스중 val과 같은 값을 가진 엘리먼트만 check한다. */function FUNC_makeArrayVal(fieldArr,val) {	var FieldName   = document.getElementsByName(fieldArr+'[]');	if(FieldName) {		for(var i=0; i < FieldName.length; i++) {			if(FieldName[i].type=='checkbox' && FieldName[i].disabled==false && FieldName[i].value==val) {				FieldName[i].checked = true;			}		}	}	return true;}/* iframe내의 문서의 사이즈를 계산하여 창의 크기를 조절한다. */function FUNC_resizeDocument() {	self.resizeTo(document.body.scrollWidth,document.body.scrollHeight);	return true;}// 절대 높이 계산function getAbsoluteTop(oNode){	var oCurrentNode=oNode;	var iTop=0;	while(oCurrentNode.tagName!="BODY"){		iTop+=oCurrentNode.offsetTop;		oCurrentNode=oCurrentNode.offsetParent;	}	return iTop;}// 절대 좌측 계산function getAbsoluteLeft(oNode){	var oCurrentNode=oNode;	var iLeft=0;	while(oCurrentNode.tagName!="BODY"){		iLeft+=oCurrentNode.offsetLeft;		oCurrentNode=oCurrentNode.offsetParent;	}	return iLeft;}/* radio 버튼을 체크시킨다. */function FUNC_radioCHK(fld,val) {	var fieldName   = document.getElementsByName(fld);	for(var i=0; i<fieldName.length; i++) {		if(fieldName[i].value==val) {			fieldName[i].checked=true;			break;		}	}	return true;}function getLength(str) {	var i = 0;	for ( var i=0; i < str.length; i++ ) {		if( str.charCodeAt(i) < 127 )	i++;		else				i = i + 2;	}	return i;}function check_nonChar(id_text) {	var nonchar = '`@#$%&\|<>;"';	var i ;	for ( i=0; i < id_text.length; i++ )  {		if( nonchar.indexOf(id_text.substring(i,i+1)) > 0) { break ; }	}	if ( i != id_text.length ) { return false ; }	else {	return true ; }	return false;}function trim(s) {	while ((s.substring(0,1) == ' ') || (s.substring(0,1) == '\n') || (s.substring(0,1) == '\r')) {		s = s.substring(1,s.length);	}	while ((s.substring(s.length-1,s.length) == ' ') || (s.substring(s.length-1,s.length) == '\n') || (s.substring(s.length-1,s.length) == '\r'))  {		s = s.substring(0,s.length-1);	}	return s;}/* 절대위치 */function getRealOffsetTop(o) { return o ? o.offsetTop + getRealOffsetTop(o.offsetParent) : 0; }function getRealOffsetLeft(o) { return o ? o.offsetLeft + getRealOffsetLeft(o.offsetParent) : 0; }//배열 내부 존재여부function in_array(ins_array,ins_int){                                //조건 비교시	for(i=0,max=ins_array.length;i<max;i++){		if(ins_array[i]==ins_int) return true;	}	return false;}// flashWrite(파일경로, 가로, 세로, 아이디, 배경색, 변수, 윈도우모드)function flashWrite(url,w,h,id,bg,vars,win){	// 플래시 코드 정의	var flashStr=	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+	"<param name='allowScriptAccess' value='always' />"+	"<param name='movie' value='"+url+"' />"+	"<param name='FlashVars' value='"+vars+"' />"+	"<param name='wmode' value='"+win+"' />"+	"<param name='menu' value='false' />"+	"<param name='quality' value='high' />"+	"<param name='bgcolor' value='"+bg+"' />"+	"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+	"</object>";	// 플래시 코드 출력	document.write(flashStr);}
