	window.onload = function() {
		var obj = document.getElementById("memId");
		if(obj != null) {
			obj.focus();
		}
	}
	function chkLogin(frm) {
		if(frm != null) {
		  if(isEmptyForm(frm.memId, "¾ÆÀÌµð¸¦")) { return false; }
			if(isEmptyForm(frm.passwd, "¾ÏÈ£¸¦")) { return false; }
			if((frm.passwd.value.length < 4) || (frm.passwd.value.length > 12)){
				alert("ºñ¹Ð¹øÈ£´Â 4ÀÚ ÀÌ»ó 12ÀÚ ÀÌÇÏ ÀÔ´Ï´Ù");
				frm.passwd.select();
				frm.passwd.focus();
//				return false;
			}
			
			//if (frm.saveId.checked ) { frm.saveId.value = "Y"; }
			//frm.action = "http://www.boryeong.chungnam.kr/ctnt/ptal/ttop/01/ttop.01.001.Ex.jsp";
			//frm.action = "https://www.boryeong.chungnam.kr/ctnt/ppop.ptal/ttop/01/ttop.01.001.Ex.jsp";
// UbintisLab start
//			frm.action = "http://210.104.43.136/ctnt/ppop.ptal/ttop/01/ttop.01.001.Ex.jsp";
//			return false;
	
			var rUrl = "http://www.boryeong.chungnam.kr";
			if(frm.rUrl != null && frm.rUrl.value != "") {
				rUrl = frm.rUrl.value;
			}
			PNI_AUTH_SERVICE(frm.memId.value, frm.passwd.value, rUrl);
// UbintisLab end
		}
	}

	function inputMail()	{
		var frm = document.frmLogin;
		if(frm != null) {
			var mail = frm.mail02[frm.mail02.selectedIndex].value;
			
			if (frm.mail02[frm.mail02.selectedIndex].value == "write") {	
				frm.mail03.value="";
				frm.mail03.style.display="";
				frm.mail02.style.display="none";
				frm.mail03.focus();
			} else {
				frm.mail03.value=frm.mail02[frm.mail02.selectedIndex].value;
				frm.mail02.style.display="";
				frm.mail03.style.display="none";
			}
		}	
	}	
	
	function clearLoginIntro(){
		var frm = document.frmLogin;
		if(frm != null) {
			if(frm.memId.value=="¾ÆÀÌµð") {
				frm.memId.value = "";
				frm.passwd.value=""; 
			} 
		}
	}
