﻿// javascript

function trim(str) {
	return str.replace(/\s*/, "");
}

function validate_member_login() {
    var textID = getElement("txbId");
    var textPwd = getElement("txbPwd");
    
    if (textID == null || textPwd == null) {
		return;
	}
	
	var id = textID.value;
	var pwd = textPwd.value;
	
	if (trim(id) == "") {
		alert("아이디를 입력해 주세요.");
		textID.focus();
		
		return;
	}
	
	if (trim(pwd) == "") {
		alert("패스워드를 입력해 주세요.");
		textPwd.focus();
		
		return;
	}
	
	__doPostBack(lbtnMemberLogin, '');
}


function getElement(id) {
	return document.getElementById(id);
}

function setFocus(obj)
{
    obj.focus();
}

function setValue(obj,tempstr)
{
    obj.value = tempstr;
}
