<!--

var sendit;

// 소스 복사
function _copy(theField) { 
	var temptxt = eval("document.all."+theField);
	var txt=document.body.createTextRange();
	txt.moveToElementText(temptxt);
	txt.select();
	txt.execCommand("copy");
	document.selection.empty();
}

//=================================================================================================================================
// 데이타 전송중 메세지
//=================================================================================================================================
function connecting(){
	alert("데이타를 전송중 입니다. 잠시만 기다려 주세요");
}

//show, hide 레이어
function showLayer(LayerNM) {
	document.getElementById(LayerNM).style.display='block';
}
function hideLayer(LayerNM) {
	document.getElementById(LayerNM).style.display='none';
}

//서브 인덱스 - 포토갤러리 롤 오버, 롤아웃

function rollover(over){
	document.getElementById(over).style.border='3px solid #74ac0a';
}
function rollout(out){
	document.getElementById(out).style.border='0px solid #000000';
}


//호출할때(탭이름,탭갯수,현재탭)
function tab(tab_name,max,tab_num) {
	for( i = 1; i <= max; i++){
		if (i == tab_num) { document.getElementById(tab_name+i).style.display = 'block'; }
		else { document.getElementById(tab_name+i).style.display = 'none'; }
	}
}

// 사용후기
function tableOverChange(obj,c,undo_c) {

    tableObj = document.getElementById(obj);
    tableObj_td = tableObj.getElementsByTagName('td');
        for(i=0;i<tableObj_td.length;i++) {
        tableObj_td[i].onmouseover = function() {
            this.style.background = c;
        }
        tableObj_td[i].onmouseout = function() {
            this.style.background = undo_c;
        }
    }

}


//FAQ
function faq(layername,max,j) {
	for(i=1;i<=max;i++){ document.getElementById(layername + i).style.display = 'none'; }
	document.getElementById(layername + j).style.display = 'block';
}

//FAQ toggle
function initToggle(tabContainer) {
	triggers = tabContainer.getElementsByTagName("a");

	for(i = 0; i < triggers.length; i++) {
		if (triggers.item(i).href.split("#")[1])
			triggers.item(i).targetEl = document.getElementById(triggers.item(i).href.split("#")[1]);

		if (!triggers.item(i).targetEl)
			continue;

		triggers.item(i).targetEl.style.display = "none";
		triggers.item(i).onclick = function () {
			if (tabContainer.current == this) {
				this.targetEl.style.display = "none";
				tabContainer.current = null;
			} else {
				if (tabContainer.current) {
					tabContainer.current.targetEl.style.display = "none";
				}
				this.targetEl.style.display = "block";
				tabContainer.current = this;
			}
			return false;
		}
	}
}

// 인풋안 이미지
function 
	clrImg(obj){
		obj.style.backgroundImage="";obj.onkeydown=obj.onmousedown=null;
}

//QUICK MENU 
function initMoving(target, position, topLimit, btmLimit) {
	if (!target)
		return false;

	var obj = target;
	obj.initTop = position;
	obj.topLimit = topLimit;
	obj.bottomLimit = document.documentElement.scrollHeight - btmLimit;

	obj.style.position = "absolute";
	obj.top = obj.initTop;
	obj.left = obj.initLeft;

	if (typeof(window.pageYOffset) == "number") {
		obj.getTop = function() {
			return window.pageYOffset;
		}
	} else if (typeof(document.documentElement.scrollTop) == "number") {
		obj.getTop = function() {
			return document.documentElement.scrollTop;
		}
	} else {
		obj.getTop = function() {
			return 0;
		}
	}

	if (self.innerHeight) {
		obj.getHeight = function() {
			return self.innerHeight;
		}
	} else if(document.documentElement.clientHeight) {
		obj.getHeight = function() {
			return document.documentElement.clientHeight;
		}
	} else {
		obj.getHeight = function() {
			return 500;
		}
	}

	obj.move = setInterval(function() {
		if (obj.initTop > 0) {
			pos = obj.getTop() + obj.initTop;
		} else {
			pos = obj.getTop() + obj.getHeight() + obj.initTop;
			//pos = obj.getTop() + obj.getHeight() / 2 - 15;
		}

		if (pos > obj.bottomLimit)
			pos = obj.bottomLimit;
		if (pos < obj.topLimit)
			pos = obj.topLimit;

		interval = obj.top - pos;
		obj.top = obj.top - interval / 3;
		obj.style.top = obj.top + "px";
	}, 30)
}

// Tab Content
function initTabMenu(tabContainerID) {
	var tabContainer = document.getElementById(tabContainerID);
	var tabAnchor = tabContainer.getElementsByTagName("a");
	var i = 0;

	for(i=0; i<tabAnchor.length; i++) {
		if (tabAnchor.item(i).className == "tab")
			thismenu = tabAnchor.item(i);
		else
			continue;

		thismenu.container = tabContainer;
		thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]);
		thismenu.targetEl.style.display = "none";
		thismenu.imgEl = thismenu.getElementsByTagName("img").item(0);
		thismenu.onclick = function tabMenuClick() {
			currentmenu = this.container.current;
			if (currentmenu == this)
				return false;

			if (currentmenu) {
				currentmenu.targetEl.style.display = "none";
				if (currentmenu.imgEl) {
					currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_on.gif", ".gif");
				} else {
					currentmenu.className = currentmenu.className.replace(" on", "");
				}
			}
			this.targetEl.style.display = "";
			if (this.imgEl) {
				this.imgEl.src = this.imgEl.src.replace(".gif", "_on.gif");
			} else {
				this.className += " on";
			}
			this.container.current = this;

			return false;
		};

		if (!thismenu.container.first)
			thismenu.container.first = thismenu;
	}
	if (tabContainer.first)
		tabContainer.first.onclick();
}

// 레이어 (셀렉트) 풀다운 메뉴
function selectmenu(index) {
	for (i=1; i<=2; i++) {
		var menu = document.getElementById("menu" + i);
		if (index == i) {
		menu.style.display = "";
		}
		else {
		menu.style.display = "none";
		}
	}
}


// 레이어 (셀렉트) 풀다운 메뉴
function selectmenu2(index) {
	for (i=1; i<=2; i++) {
		var menu = document.getElementById("menu1" + i);
	if (index == i) {
	menu.style.display = "";
	}
	else {
	menu.style.display = "none";
	}
	}
}

 //이미지 셀렉트 박스 처리
function BoxClick(tobj,obj) {
	var menu1 = document.getElementById("menu1");
	var menu2 = document.getElementById("menu2");
	var hid = document.getElementById(tobj);
	var hidtt = document.getElementById("L_Title");
	hidtt.innerHTML = obj.innerHTML;
	hid.value = obj.value;
	menu1.style.display = "";
	menu2.style.display = "none";
}

// 플래시 코드 정의 
// flashWrite(파일경로, 가로, 세로, 아이디, 배경색, 변수, 윈도우모드) 
function GetMPlayer(x,y,fn) {
	EmbedStr = "<OBJECT id='MPlayer' classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' width='" + x + "' height='" + y + "' TYPE='application/x-oleobject' VIEWASTEXT >";
	if(fn)
		EmbedStr += "<param name='FileName' value='" + fn + "'>";
	EmbedStr += "<param name='ShowControls' value='0'>";
	EmbedStr += "<param name='autoStart' value='true'>";
	EmbedStr += "<param name='windowlessVideo' value='false'>";
	EmbedStr += "<param name='uiMode' value='none'>";
	EmbedStr += "<param name='volume' value='100'>";
	EmbedStr += "<param name='stretchToFit' value='true'>";
	EmbedStr += "<param name='autoRewind' value='false'>";
	EmbedStr += "<param name='transparentAtStart' value='true'>";
	EmbedStr += "<param name='enableContextMenu' value='false'>";
	EmbedStr += "</OBJECT>";
	document.write(EmbedStr);
	return;
}

function GetFlash(url,x,y,fn) { 
var EmbedStr;
	EmbedStr = "<object id='" + fn + "' name='" + fn + "' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='" + x + "' height='" + y + "'>";
	EmbedStr += "<param name='allowScriptAccess' value='always' />";
	EmbedStr += "<param name='movie' value='" + url + "' />";
	EmbedStr += "<param name='quality' value='high' />";
	EmbedStr += "<param name='bgcolor' value='#ffffff' />";
	EmbedStr += "<param name='menu' value='false' />";
	EmbedStr += "<param name='wmode' value='transparent' />";
	EmbedStr += "<param name='allowFullScreen' value='true' />";
	EmbedStr += "<embed id='" + fn + "' name='" + fn + "' src='" + url + "' quality='high' menu='false' wmode='transparent' bgcolor='#ffffff' width='" + x + "' height='" + y + "' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	EmbedStr += "</object>";
	
	document.write(EmbedStr);
	return;
}

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+"' name='"+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='scaleMode' value='noScale' />"+
	"<param name='showMenu' value='false' />"+
	"<param name='align' value='CT' />"+ 
	"<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+"' id='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+ 
	"</object>"; 
	document.write(flashStr); 
} 


function flashWrite2(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+"' name='"+id+"' align='middle' onblur='clearFocus2()'>"+ 
	"<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='scaleMode' value='noScale' />"+
	"<param name='showMenu' value='false' />"+
	"<param name='align' value='CT' />"+ 
	"<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+"' id='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+ 
	"</object>"; 
	document.write(flashStr); 
} 


function showSelectBox(){
	var selects = document.getElementsByTagName("select");
	for (i = 0; i != selects.length; i++) {
		selects[i].style.visibility = "visible";
	}
}

// ---------------------------------------------------

function hideSelectBox(){
	var selects = document.getElementsByTagName("select");
	for (i = 0; i != selects.length; i++) {
		selects[i].style.visibility = "hidden";
	}
}


function goURL(url)
{
//	alert(url);
	location.href = url;
}


//=================================================================================================================================
// 마우스 위치 조정
//=================================================================================================================================

function getMousePosition(ev, returntype)
{
	ev = ev || window.event;

	if (ev.pageX || ev.pageY){
		if (returntype == "LEFT")
			return ev.pageX;
		else if (returntype == "TOP")
			return ev.pageY;
		else{
			alert('getMousePosition-인자값 입력 오류 : returntype - ' + returntype); return;
		}
	}
		if (returntype == "LEFT"){
		if (window.innerWidth)
		return ev.clientX + window.pageXOffset - document.body.clientLeft + 10;		
		else if (document.documentElement && document.documentElement.clientWidth){
			return ev.clientX + document.documentElement.scrollLeft - document.body.clientLeft + 10;
		}else if(document.body.clientWidth)
			return ev.clientX + document.body.scrollLeft - document.body.clientLeft + 10;
			
	}else if (returntype == "TOP"){

		if (window.innerWidth)
			return ev.clientY + window.pageYOffset - document.body.clientTop;
		else if (document.documentElement && document.documentElement.clientWidth)
			return ev.clientY + document.documentElement.scrollTop - document.body.clientTop;
		else if(document.body.clientWidth)
			return ev.clientY + document.body.scrollTop - document.body.clientTop;
			

	}else{
		alert('getMousePosition-인자값 입력 오류 : returntype - ' + returntype);
	}
}

//=================================================================================================================================
// Lay Display 처리 체크
//=================================================================================================================================

function infoView(obj){
	obj.style.display = "";
}

function infoHidden(obj){
	obj.style.display = "none";
}

function infoshow(obj){
	if(obj.style.display == 'none')
		obj.style.display = "";
	else
		obj.style.display = "none";
}

//=================================================================================================================================
// iFrame 컨텐츠 높이 구하기, 리사이즈
//=================================================================================================================================
function IframeResize(id){
    var ifrm = $(id);
    var the_height = ifrm.contentWindow.document.body.scrollHeight;
	if(the_height < 1)
		time_id = window.setTimeout("IframeResize('"+id+"')",10);
    ifrm.height = the_height+15;
}

function soFrameSize(id){
    var ifrm = $(id);
    var the_height = ifrm.contentWindow.document.body.scrollHeight;
	if(the_height < 1)
		time_id = window.setTimeout("soFrameSize('"+id+"')",10);
    ifrm.height = the_height+15;
	if(ifrm.height < 500)
		ifrm.height = 500;
}

function iframe_autoresize(arg){
	arg.height = eval(arg.name+".document.body.scrollHeight");
}


//=================================================================================================================================
// 이미지 Resize
//=================================================================================================================================

function imgResize(obj,maxWidth)
{
	var w = obj.width;
	var h = obj.height;
	if (w<=0) 
		window.setTimeout("imgResize('" + obj + "'," + maxWidth + ")",100);
	else 
	{
		if (w > maxWidth)
			obj.width = maxWidth;
	}
}

//=================================================================================================================================
// 팝업 가운데 띄우기
//=================================================================================================================================
	var win = null;
	function NewWindow(mypage,myname,w,h,scroll){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	win = window.open(mypage,myname,settings);
	win.focus();
	} 

//=================================================================================================================================
// Ajax Layer 띄우기
//=================================================================================================================================
	var MiniTagActive = false;
	function viewAjaxLayer(targetObjId, responsePage, param, ajaxlr, ev)
	{
		pars = param;
		if(responsePage == "/include/MiniNameTag.asp" || responsePage == "/include/MiniNameTagGLT.asp")
			MiniTagActive = true;
		new Ajax.Updater(
			targetObjId,
			responsePage,
			{
				parameters : pars
			}
		);
		
		targetObj = $(targetObjId)
		targetObj.style.display = "none";
		
		if (ajaxlr == 'right') {
			targetObj.style.top = getMousePosition(ev, "TOP") - 30;
			targetObj.style.left = getMousePosition(ev, "LEFT") - 420;
		} else {
			targetObj.style.top = getMousePosition(ev, "TOP") - 30;
			targetObj.style.left = getMousePosition(ev, "LEFT") + 10;
		}

		targetObj.style.display = "block";
		targetObj.style.zIndex = 100;
	
	}

	function miniTagCheck()
	{
		if(MiniTagActive)
		{
			$("ajaxLayer").update("");
		}
	}

//=================================================================================================================================
// Ajax Layer 띄우기 위치 고정
//=================================================================================================================================
	function viewAjaxLayer2(targetObjId, responsePage, param, ev)
	{
		pars = param;
		
		new Ajax.Updater(
			targetObjId,
			responsePage,
			{
				parameters : pars
			}
		);
		
		targetObj = $(targetObjId)
	
		targetObj.style.display = "none";
		targetObj.style.top = 70;
		targetObj.style.left = 0;
		targetObj.style.display = "block";
	
	}
// -->
 
function urNameTag(usid){
	var succ=function(o){
		var ur=Ext.get('urnametagL');
		ur.zIndex = 1000;
		ur.update(o.responseText);
		ur.show();
		ur.alignTo(document.body, 'b-c');
		afterAddFriend();
	}
	Ext.Ajax.request({
		url:'/nametex/nametex_you.asp?usid='+usid, success:succ
	});
}

function urNameTagMain(usid){
	hiddenfrm.location.href='/include/ajaxNameTagupdater.asp?usr_id=' + usid;

	var succ=function(o){
		var ur=Ext.get('urnametagL');
		ur.zIndex = 1000;
		ur.update(o.responseText);
		ur.show();
		ur.alignTo(document.body, 'b-c');
		afterAddFriend();
	}
	Ext.Ajax.request({
		url:'/nametex/nametex_you.asp?usid='+usid, success:succ
	});
}

var MiniNameTagOver = 0;

function miniNameTagClose ()
{
	if(MiniNameTagOver > 1)
	{
		hs.close();
		MiniNameTagOver = 0;
	}
	else
	{
		MiniNameTagOver++;
	}

}


//=================================================================================================================================
// 로그인 체크
//=================================================================================================================================
function loginCheck()
{
	if(!confirm("로그인 후 이용 가능합니다\n\n로그인 페이지로 이동 하시겠습니까?"))
		return false;
	document.footerLoginForm.submit();
}



function FormChecker(f)
{

	var fu = new FormUtil(f);
	if(!fu.success())
		return false;
	else
		return true;
}

function chkNull(obj) {
	//try{
  switch (obj.type) {
    // text, password, file, textarea
    case "text" :
    case "password" :
    case "file" :
    case "textarea" :
    case "hidden" :

      if (isBlank(obj.value)) {
          return false;
      } else {
        return true;
      }
      break;
    // checkbox
    case "checkbox" :
      if (!obj.checked) {
          return false;
      } else {
        return true;
      }
      break;
    // radiobutton
    case "radio" :
      var obj_len = obj.length;

      for (i=0; i < obj_len; i++) {
        if (obj[i].checked == true)
          return false;
      }

      if (i == obj_len) {
        return true;
      }
      break;
  }

     // select list
  if (obj.type.indexOf("select") != -1) {
    if (obj.options[obj.selectedIndex].value == 0 || obj.options[obj.selectedIndex].value == ""){
      return false;
    }else{
      return true;
    }
  }

  return true;
    //}
    //catch(e)
    //{
    //    err_handle(e);
    //}
}

function isBlank(val) {
  if (val.split(" ").join("") == "") {
    return true;
  } else {
    return false;
  }
}

//=================================================================================================================================
// 에디터 입력값 체크
//=================================================================================================================================
function editCheck(obj)
{
	var oEditor;
	oEditor = FCKeditorAPI.GetInstance(obj) ;
	var div = document.createElement("DIV");
	div.innerHTML = oEditor.GetXHTML();
	checkstr = div.innerHTML.toString();
	checkstr = checkstr.replace("&nbsp;", " ");
	if(isNull( div.innerHTML ) || checkstr.trim() == "")
	{
		return false;
		div.innerHTML = "";
	}
	else
		return true;
}

function isNull( s ) 
{
	if( s == null ) return true; 
	var result = s.replace(/(^\s*)|(\s*$)/g, ""); 
	if(result == "<BR>") result = "";
	if( result )
		return false; 
	else 
		return true; 
}

//=================================================================================================================================
// 필드값으로 숫자만 입력받기
// Number Key Only
//=================================================================================================================================
function NKO(obj) {
	if($F(obj))
	{ 
		if(!$F(obj).isNum())
		{
			alert("숫자만 입력 가능 합니다.");
			$(obj).value = "";
			return false;
		}
	}
}

//=================================================================================================================================
// 텍스트의 바이트수 자동체크
//=================================================================================================================================
function byte_check(obj,length_limit){
	var length = calculate_msglen(obj.value);
	if (length > length_limit) {
		alert("최대 " + length_limit + "자 이므로 초과된 글자수는 자동으로 삭제됩니다.");
		obj.value = obj.value.replace(/\r\n$/, "");
		obj.value = assert_msglen(obj.value, length_limit);
		if($("viewcount"))
			$("viewcount").update(calculate_msglen(obj.value));

		obj.focus();
	}
}

function calculate_msglen(message){
	var nbytes = 0;
	for (i=0; i<message.length; i++) {
		var ch = message.charAt(i);
		if(escape(ch).length > 4) {
			nbytes += 2;
		} else if (ch == '\n') {
			if (message.charAt(i-1) != '\r') {
				nbytes += 1;
			}
		} else if (ch == '<' || ch == '>') {
			nbytes += 4;
		} else {
			nbytes += 1;
		}
	}
	if($("viewcount"))
		$("viewcount").update(nbytes);
	return nbytes;
}

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 isdigit(str) 
{
    if (str.search(/[^0-9]/g)==-1) return true;
    else return false;
}

//  * 클립보드에 복사
//익스플로어만 지원
function CopyPath_1() {
	if(navigator.appName == "Netscape") {
		alert("익스플로러에서만 작동됩니다.");
		return;
	}

	var inputPath = "<%=DomainName & GetThisUrl()%>";
	window.clipboardData.setData('Text',inputPath);
	alert("경로를 복사했습니다.");
}

//  * Form Element를 자동으로 체크한다.
function FrmAutoChk(){
		this.TableObj		= null;
		this.FormAction		= "";
		this.FormTarget		= "";
		this.CheckIsNon		= true;					// AddNoneItem을 체크 or 미체크
		this.AutoSubmit		= true;					// 자동 Submit 여부
		this.contents		= new Array();			// Form에서 제외할 아이템 셋팅시 배열 아이템 
		this.AddNoneItem	= AddNoneItem;			//contents 아이템 추가 _멤버함수
		this.CheckExec		= CheckExec;			//최종 Form Elements를 체크한다 _멤버함수
		this.ArrayChk		= ArrayChk;				//배열Elements아이템 체크 _멤버함수
		this.TitleChk		= TitleChk;				//단일Elements아이템 체크 _멤버함수
		this.NoneField		= NoneField;			//contents로 제외된 아이템 확인 _멤버함수
		this.FSubmit		= FSubmit;				//폼 Submit _멤버함수

		function AddNoneItem(obnm)					
		{
			this.contents[this.contents.length] = obnm;
		}

		function FSubmit()					
		{
			this.TableObj.submit();
		}

		function NoneField(ob)		
		{
			var RtnB;
			(this.CheckIsNon) ? RtnB = true : RtnB = false;
			if (this.contents.length >= 0)
			{
				for (ni=0; ni < this.contents.length; ni++)
				{	
					if (this.contents[ni] == ob){
						(this.CheckIsNon) ? RtnB = false : RtnB = true;
					}
				}
			}
			return RtnB;
		}

		function CheckExec(){
			var Frm = this.TableObj;
			var rObj;
			var cObj;
			var RtnB = true;
			if (Frm){
				for (ci=0; ci<Frm.elements.length; ci++){
					if (this.NoneField(Frm.elements[ci].name)){ // 불포함 필드가 있는지 여부
						if (Frm.elements[ci].type == "text"){
							RtnB = this.TitleChk(Frm.elements[ci],true,"입력");
						} else if (Frm.elements[ci].type == "select-one"){
							RtnB = this.TitleChk(Frm.elements[ci],true,"선택");
						} else if (Frm.elements[ci].type == "radio"){
							rObj = document.getElementsByName(Frm.elements[ci].name);
							RtnB = this.ArrayChk(rObj,true,"체크");
						} else if (Frm.elements[ci].type == "checkbox"){
							cObj = document.getElementsByName(Frm.elements[ci].name);
							RtnB = this.ArrayChk(cObj,true,"체크");
						} else if (Frm.elements[ci].type == "hidden"){
							RtnB = this.TitleChk(Frm.elements[ci],false,"입력");
						} else if (Frm.elements[ci].type == "textarea"){
							RtnB = this.TitleChk(Frm.elements[ci],true,"입력");
						}
						if (RtnB == false){break;return;}
					}
				}
			}
			if (RtnB) {
				if (this.FormAction != ""){Frm.action = this.FormAction;}
				if (this.FormTarget != ""){Frm.target = this.FormTarget;}
				if (this.AutoSubmit){Frm.submit();} //AutoSubmit이 true인경우만 Submit
			}
		}

		function ArrayChk(e,fc,t){
			var RtnB = true; 
			var Chk_i = 0;
			if (e){
				for (ai=0; ai<e.length; ai++){
					if (e[ai].checked == true){
						RtnB = false;
						break;
						Chk_i++;
					}
				}
			}
			if (RtnB) {
				if (e[Chk_i].alt){
					alert(e[Chk_i].alt + "(을)를 "+t+"해 주세요.")
				} else {
					alert(""+t+"해 주세요.")
				}
				if (fc){
					if (e[Chk_i].readOnly == false){
					e[Chk_i].focus();
					}
				}
				RtnB = false;
			} else {
				RtnB = true; 
			}
			return RtnB;
		}

		function TitleChk(e,fc,t){
			var RtnB = true; 
			if (e.value==""){
				if (e.alt){
					alert(e.alt + " (을)를 "+t+"해 주세요.")
				} else {
					alert(""+t+"해 주세요.")
				}
				if (fc){
					if (e.readOnly == false){
					e.focus();
					}
				}
				RtnB = false;
			}
			return RtnB;
		}
	}
