function gotoHome() {
	var serverUrl = 'http://www.magicinterbiz.com';
	document.location.replace(serverUrl);
}

function gotoUrl(url) {
	document.location.replace(url);
}

function check_login(frm) {
	if(frm.ID.value == '') {
		alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä.');
		frm.ID.focus();
		return;
	}
	if(frm.PW.value == '') {
		alert('ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇÏ¼¼¿ä.');
		frm.PW.focus();
		return;
	}
	frm.submit();
}

function member_clause(frm) {
	if(frm.ID.value == '') {
		alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä.');
		frm.ID.focus();
		return;
	}
	if(frm.PW.value == '') {
		alert('ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇÏ¼¼¿ä.');
		frm.PW.focus();
		return;
	}
	frm.submit();
}

function pageGo(URL) {
	opener.location.href=URL;
	self.close();
	opener.focus();
}

function win_login(return_URL,A_UID,W_UID,S_UID,C_UID,B_NAME,B_UID) { //·Î±×ÀÎ(¸ÞÀÎ)
    var wint = (screen.height - 200) / 2;
    var winl = (screen.width -300) / 2;
	var features = 'menubar=0,toolbar=0,scrollbars=0,location=0,history=0,width=400,height=387,top='+wint+',left='+winl;
	var url = '/member/member_lgn_pop.php';
	window.open(url, 'winLogin', features);
}

function win_login_s2(return_URL,A_UID,W_UID,S_UID,C_UID,B_NAME,B_UID) { //·Î±×ÀÎ(°Ô½ÃÆÇ)
    var wint = (screen.height - 200) / 2;
    var winl = (screen.width -300) / 2;
	var features = 'menubar=0,toolbar=0,scrollbars=0,location=0,history=0,width=400,height=387,top='+wint+',left='+winl;
	var url = '../../member/member_lgn_pop.php';
	window.open(url, 'winLogin', features);
}

function win_logout(return_URL,A_UID,W_UID,S_UID,C_UID,B_NAME,B_UID) { //·Î±×¾Æ¿ô(¸ÞÀÎ)
//    var wint = (screen.height - 200) / 2;
//    var winl = (screen.width -300) / 2;
//	var features = 'menubar=0,toolbar=0,scrollbars=0,location=0,history=0,width=400,height=387,top='+wint+',left='+winl;
	var url = '/member/member_loginAct.php?mode=logout';
//	window.open(url, 'winLogout', features);
//	document.location.replace('url');
	window.location.href =url;
}

function win_logout_s2(return_URL,A_UID,W_UID,S_UID,C_UID,B_NAME,B_UID) { //·Î±×¾Æ¿ô(¸ÞÀÎ)
//    var wint = (screen.height - 200) / 2;
//    var winl = (screen.width -300) / 2;
//	var features = 'menubar=0,toolbar=0,scrollbars=0,location=0,history=0,width=400,height=387,top='+wint+',left='+winl;
	var url = '../../member/member_loginAct.php?mode=logout';
//	window.open(url, 'winLogout', features);
	window.location.href =url;
}

function win_getid(return_URL,A_UID,W_UID,S_UID,C_UID,B_NAME,B_UID) { //·Î±×ÀÎ(¸ÞÀÎ)
    var wint = (screen.height - 200) / 2;
    var winl = (screen.width -300) / 2;
	var features = 'menubar=0,toolbar=0,scrollbars=0,location=0,history=0,width=400,height=387,top='+wint+',left='+winl;
	var url = '../member/member_getid_pop.php';
	window.open(url, 'getid', features);
}

function win_getpass(return_URL,A_UID,W_UID,S_UID,C_UID,B_NAME,B_UID) { //·Î±×ÀÎ(¸ÞÀÎ)
    var wint = (screen.height - 200) / 2;
    var winl = (screen.width -300) / 2;
	var features = 'menubar=0,toolbar=0,scrollbars=0,location=0,history=0,width=400,height=387,top='+wint+',left='+winl;
	var url = '../member/member_getpass_pop.php';
	window.open(url, 'getpass', features);
}

function lost_id_search() { //¾ÆÀÌµð Ã£±â(¸ÞÀÎ)
    var wint = (screen.height - 200) / 2;
    var winl = (screen.width -300) / 2;
	var features = 'menubar=0,toolbar=0,scrollbars=0,location=0,history=0,width=300,height=180,top='+wint+',left='+winl;
	var url = 'member/member_id_search.php';
	window.open(url, 'winLost', features);
}

function lost_id_search_s() { //¾ÆÀÌµð Ã£±â(¼­ºê)
    var wint = (screen.height - 200) / 2;
    var winl = (screen.width -300) / 2;
	var features = 'menubar=0,toolbar=0,scrollbars=0,location=0,history=0,width=300,height=180,top='+wint+',left='+winl;
	var url = '../member/member_id_search.php';
	window.open(url, 'winLost', features);
}

function lost_id_search_s2() { //¾ÆÀÌµð Ã£±â(°Ô½ÃÆÇ)
    var wint = (screen.height - 200) / 2;
    var winl = (screen.width -300) / 2;
	var features = 'menubar=0,toolbar=0,scrollbars=0,location=0,history=0,width=300,height=180,top='+wint+',left='+winl;
	var url = '../../member/member_id_search.php';
	window.open(url, 'winLost', features);
}

function member_out() { //È¸¿øÅ»Åð(¸ÞÀÎ)
    var wint = (screen.height - 200) / 2;
    var winl = (screen.width -300) / 2;
	var features = 'menubar=0,toolbar=0,scrollbars=0,location=0,history=0,width=300,height=180,top='+wint+',left='+winl;
	var url = 'member/member_out.php';
	window.open(url, 'wimmemout', features);
}

function member_out_s() { //È¸¿øÅ»Åð(¼­ºê)
    var wint = (screen.height - 200) / 2;
    var winl = (screen.width -300) / 2;
	var features = 'menubar=0,toolbar=0,scrollbars=0,location=0,history=0,width=300,height=180,top='+wint+',left='+winl;
	var url = '../member/member_out.php';
	window.open(url, 'wimmemout', features);
}

function member_out_s2() { //È¸¿øÅ»Åð(°Ô½ÃÆÇ)
    var wint = (screen.height - 200) / 2;
    var winl = (screen.width -300) / 2;
	var features = 'menubar=0,toolbar=0,scrollbars=0,location=0,history=0,width=300,height=180,top='+wint+',left='+winl;
	var url = '../../member/member_out.php';
	window.open(url, 'wimmemout', features);
}

function open_schedule(S_Date) { //½ºÄ³ÁÙÀÔ·Â/¼öÁ¤
    var wint = (screen.height - 200) / 2;
    var winl = (screen.width -300) / 2;
	var features ='menubar=0,toolbar=0,scrollbars=0,location=0,history=0,width=300,height=180,top='+wint+',left='+winl;
	url = 'member_s_write.php?'+S_Date 
	window.open(url, 'SCHEDULE', features);
	return;
}

function memo() { //ÂÊÁöº¸±â
	alert('ÁØºñÁßÀÔ´Ï´Ù.');
	return;
}
function login() { //·Î±×ÀÎÀü
	alert('È¸¿øÀü¿ë¸Þ´ºÀÔ´Ï´Ù. ·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ¼¼¿ä.');
	return;
}

function hidestatus() {
	window.status = '';
	return true;
}

function clearField(field){
	if (field.value == field.defaultValue) {
		field.value = "";
	}
}
function checkField(field){
	if (!field.value) {
		field.value = field.defaultValue;
	}
}
function search_check(form) {
	if (sform.A_B_Court.value == '0') {
		return do_error('A_B_Court', '°üÇÒ¹ý¿øÀ» ¼±ÅÃÇÏ¼¼¿ä')
	}
	
	var chec=document.sform;
	if ( chec.A_B_CourtNum.value == '»ç°Ç¹øÈ£ÀÔ·Â' ) {
	alert('»ç°Ç¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
	chec.A_B_CourtNum.focus();
	return false;
	}
	sform.submit();
}
function do_error(name, msg) {
	alert(msg);
	eval('document.sform.' + name + '.focus();');
	return;
}


//if (document.layers)
//	document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover = hidestatus
document.onmouseout = hidestatus