function DoSignIn( frm ) {
	var intLengthCheck = 0;

	intLengthCheck = frm.user_id.value.Trim().length;
	if(intLengthCheck == 0) {
		alert("회원님의 아이디를 입력해 주세요.\t\n");
		frm.user_id.focus();
		return false;
	}

	intLengthCheck = frm.passwd.value.Trim().length;
	if(intLengthCheck == 0) {
		alert("회원님의 비밀번호를 입력해 주세요.\t\n");
		frm.passwd.focus();
		return false;
	}

	frm.action = "https://secure.bidbuy.co.kr/sign/authenticate.asp";
	frm.proc.value = 1;
	return true;
}

function DoSignOut(frm) {
	frm.action = "/sign/exit/";
	frm.proc.value = 1;
	frm.submit();
}

function DoPopSign() {
	var url			=	'/sign/pop_signin.asp?rtndir=' + escape(document.location.href);
	var width		=	350;
	var height	=	293;
	var wleft		=	(screen.width - width) / 2;
	var wtop		=	(screen.height - height) / 2;

	OpenWindow(url,'popSignin','no','no','no','no',width,height,wleft,wtop);
}

function DoPopSign_Top() {
	top.location.replace('/sign/?rtndir=' + escape(top.document.location.href));
}

function DoFindID() {
	var url			=	'/sign/pop_find_id.asp';
	var width		=	404;
	var height	=	254;
	var wleft		=	(screen.width - width) / 2;
	var wtop		=	(screen.height - height) / 2;

	OpenWindow(url,'popFindid','no','no','no','no',width,height,wleft,wtop);
}

function DoFindPW() {
	var url			=	'/sign/pop_find_pw.asp';
	var width		=	404;
	var height	=	290;
	var wleft		=	(screen.width - width) / 2;
	var wtop		=	(screen.height - height) / 2;

	OpenWindow(url,'popFindpw','no','no','no','no',width,height,wleft,wtop);
}