﻿<!--	function checkValue(obj, compType, msg, fs)	{		//값의 초기화 여부(true면 초기화 시킴)		var init = true;		if(!obj || !compType)			return;		var bool = true;		if(compType == "null")		{			if(obj.value.replace(/\s/gi, "").length == 0)			{				if(msg != "")					alert(msg);				if(fs)					obj.focus();				bool = false;			}		}		else if(compType == "isnum")		{			if(isNaN(obj.value))			{				if(msg != "")					alert(msg);				if(fs)					obj.focus();				if(init)					obj.value = "";				bool = false;			}		}		//하나만 체크하는 경우		else if(compType == "check")		{			//객체가 배열이면			if(!isNaN(obj.length))			{				var cnt = 0;				for(var i = 0; i < obj.length; i++)				{					if(obj[i].checked) cnt++;				}				if(cnt == 0)				{					if(msg != "")						alert(msg);					if(fs)						obj[0].focus();					bool = false;				}			}			else			{				if(!obj.checked)				{					if(msg != "")						alert(msg);					if(fs)						obj.focus();					bool = false;				}			}		}		else if(compType == "checkseveral")		{		}		return bool;	}	//포커스 자동으로 넘기기	//id값으로 이동함(인자값은 id명으로)	function autoFocus(obj1, obj2, limit)	{		var o1 = eval("document.getElementById('" + obj1 + "');");		var o2 = eval("document.getElementById('" + obj2 + "');");		/*o1.setAttribute("autocomplete", "off", 0);		o2.setAttribute("autocomplete", "off", 0);*/				//select box에서 다음으로 이동시(limit = 0)		if(limit == 0)		{			o2.focus();			return;		}		if(o1.value.length >= limit)		{			o2.focus();			return;		}	}		//input type text 이외의 객체는 border값을 없앤다.	/*window.onload = function ()	{		for(var i = 0; i < document.body.elements.length; i++)		{			if(document.body.elements[i].type.indexOf("check") || document.body.elements[i].type.indexOf("radio"))				document.body.elements[i].style.border = "none";		}	}*/		function isEmailList(obj1, obj2, obj3)	{		var o1 = eval("document.getElementById('" + obj1 + "');");		var o2 = eval("document.getElementById('" + obj2 + "');");		var o3 = eval("document.getElementById('" + obj3 + "');");				//'이메일 선택'을 선택했을 경우		if(o1.selectedIndex == 0)		{			o3.value = "";			o3.readOnly = true;		}		//'직접 입력'을 선택했을 경우		else if(o1.selectedIndex == (o1.options.length - 1))		{			o3.value = "";			o3.readOnly = false;			o3.focus();		}		else		{			o3.value = o1.options[o1.selectedIndex].value;			if(!o3.readOnly)				o3.readOnly = true;		}	}		//id안의 이미지 사이즈가 지정된 크기보다 클 경우 임의로 줄인다.	//팝업 이미지뷰어 이벤트 추가	function initImgSize(obj, w)	{		var o = eval("document.getElementById('" + obj + "');");				if(o)		{			var img = o.getElementsByTagName("img");			for(i = 0; i < img.length; i++)			{				if(img[i].width > w)				{					//가로:세로 비율					img[i].height = (w * img[i].height) / img[i].width;					img[i].width = w;										img[i].style.cursor = "pointer";					//img[i].addEventListener("click", test, true);				}			}		}	}		//로그인 이동	function goLogin()	{		//메세지가 있다면		if(arguments[1])		{			if(confirm(arguments[1]))				document.location.href = arguments[0];			else				return;		}		else			return;	}		//폼초기화	function resetForm(f)	{		var obj = document.forms[f];		obj.reset();	}		//창 띄우기	function openWin(url, winName, env)	{		var w = window.open(url, winName, env);				if(!w)		{			alert("팝업이 차단되었습니다.");			return;		}	}//-->