/***************************************************************************************'
'프로그램명		:  로그인 페이지 -JavaScript
'작성자			:  김성문
'작성일			:  2006-08-07
'기능			:  
'--------------------------------------------------------------------------------------'
'변경사항		: 
'변경자			:  
'변경일			: 
'***************************************************************************************/
function FormChk(){
	var Frm=document.Login 
	if (NullChk(Frm.CorpID.value) == false){
		alert('Domain Check!');return;
	}
	if (NullChk(Frm.UserID.value) == false){
		alert('UserID Check!');
		Frm.UserID.focus();return
	}

	try { blockUICallDirect(); } catch(err){}

	Frm.action='/LoginOK.asp'
	Frm.target="proc_log";
	Frm.submit();
}

function NullChk(str) {
	//alert(str);
	for (var i=0;i<str.length;i++) {
		if (str.charAt(i)!=' ')
		break
	}
	if (i==str.length)
	return false
}

function EnterKey(obj) {
	if (event.keyCode == 13)
		obj.focus()
}
function EnterKeySubmit() {
	if(event.keyCode == 13)
		FormChk()
}
function setFocus() {
	var userID = document.Login.UserID.value;
	if (userID != ""){
		document.Login.UserPass.focus();
	}else{
		document.Login.UserID.focus();
	}
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

