function PostSearch() {
	window.open("/Shop_sambe/PostSearch.asp?FormName=tform&VarName1=Cust_Post1&VarName2=Cust_Post2&VarName3=Cust_Address1&VarName4=Cust_Address2","","scrollbars=no,toolbar=no,location=no,directories=no,status=no,width=500,height=300,resizable=no,menubar=no,top=300,left=300");
}

function isSocialNo(str) {
	var str1, str2, str3, str4, str5, str6, str7, str8, str9, str10, str11, str12, str13;
	var intsum, strchk;
	var rslt = false;

	if (str.length == 13) {
		rslt = true;
		str1 = str.charAt(0);
		str2 = str.charAt(1);
		str3 = str.charAt(2);
		str4 = str.charAt(3);
		str5 = str.charAt(4);
		str6 = str.charAt(5);
		str7 = str.charAt(6);
		str8 = str.charAt(7);
		str9 = str.charAt(8);
		str10 = str.charAt(9);
		str11 = str.charAt(10);
		str12 = str.charAt(11);
		str13 = str.charAt(12);

		intsum = (parseInt(str1) * 2) + (parseInt(str2) * 3) + (parseInt(str3) * 4) + (parseInt(str4) * 5);
		intsum = parseInt(intsum) + (parseInt(str5) * 6) + (parseInt(str6) * 7) + (parseInt(str7) * 8);
		intsum = parseInt(intsum) + (parseInt(str8) * 9) + (parseInt(str9) * 2) + (parseInt(str10) * 3);
		intsum = intsum + (parseInt(str11) * 4) + (parseInt(str12) * 5);

		strchk = intsum % 11;
		strchk = 11 - strchk;

		if (strchk == 11) {
			strchk = 1;
		} else if (strchk == 10) {
			strchk = 0;
		}

		if (str13 != strchk) {
			rslt = false;
		}

	} else {
		rslt = false; 
	}
	return rslt;
}
//ÀÌ¸ÞÀÏÃ¼Å© ------------------------------------------------------------------------------------------------------
function checkEmail(strEmail) {
	var arrMatch = strEmail.match(/^(\".*\"|[A-Za-z0-9_-]([A-Za-z0-9_-]|[\+\.])*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z0-9][A-Za-z0-9_-]*(\.[A-Za-z0-9][A-Za-z0-9_-]*)+)$/);
	if (arrMatch == null) {
		return false;
	}

	var arrIP = arrMatch[2].match(/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/);
		if (arrIP != null) {
			for (var i = 1; i <= 4; i++) {
				if (arrIP[i] > 255) {
					return false;
				}            
			}
		}
	return true;
}

function isNull(str) {
	var chkstr = str;
	var rslt = true;

	if((chkstr == "") || (chkstr == null)) {
		return rslt;
	}

	for(i=0;i<str.length;i++) {
		if (str.substring(i, i+1) != " ") {
			rslt = false;
		}
	}
	return rslt;
}

function onlyNum(form) {
    if (event.keyCode != 13) {
		if((event.keyCode < 48) || (event.keyCode > 57)) {
		alert("¼ýÀÚ¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		form.value = "";
		form.focus();
		event.returnValue = false;
		}
	}
}

function moveFocus(num,fromform,toform) {
    var str = fromform.value.length;
    if(str == num)
       toform.focus();
}



