/********************************************************************************************************
*
*    /join/step01.asp
*
********************************************************************************************************/
	var orderForm = document.getElementById("orderForm");

	orderForm.onsubmit = function () {
		if (!this.agree.checked) {
			alert("ºñÈ¸¿ø Á¤º¸µ¿ÀÇ ¾à°ü¿¡ µ¿ÀÇ¸¦ ÇÏ¿©ÁÖ¼¼¿ä!      ");
			location.hash = "per01";
			this.agree.focus();
			return false;
		}

		if (this.name.value.length < 2) {
			alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À!      ");
			location.hash = "per02";
			this.name.focus();
			return false;
		}

		if (this.socialNo1.value.length != 6) {
			alert("ÁÖ¹Îµî·Ï ¾ÕÀÚ¸® 6ÀÚ¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À!      ");
			location.hash = "per02";
			this.socialNo1.focus();
			this.socialNo1.select();
			return false;
		}

		if (this.socialNo2.value.length != 7) {
			alert("ÁÖ¹Îµî·Ï µÞÀÚ¸® 7ÀÚ¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À!      ");
			location.hash = "per02";
			this.socialNo2.focus();
			this.socialNo2.select();
			return false;
		}
/*
		Async.send("/common/async/order_guest_agree.asp", function (send_) {
			execScript(send_.responseText);
		}, formQueryString(this));
		return false;
*/
	};

	var openPCCV4 = function () {
		var conf = confirm("14¼¼ ¹Ì¸¸Àº º¸È£ÀÚ ÀÎÁõÈÄ ºñÈ¸¿ø ±¸¸Å°¡ °¡´É ÇÕ´Ï´Ù..      \nº¸È£ÀÚ ÀÎÁõÀ» ¹ÞÀ¸½Ã°Ú½À´Ï±î?");
		if (!conf)
			return;
		var PCCV4_window = window.open("/order/step1_pccv4.asp", "PCCV4Window", "width=410, height=460, resizable=0, scrollbars=no, status=0, titlebar=0, toolbar=0, left=435, top=250" );

		if(PCCV4_window == null){ 
			alert(" ¡Ø À©µµ¿ì XP SP2 ¶Ç´Â ÀÎÅÍ³Ý ÀÍ½ºÇÃ·Î·¯ 7 »ç¿ëÀÚÀÏ °æ¿ì¿¡´Â\nÈ­¸é »ó´Ü¿¡ ÀÖ´Â ÆË¾÷ Â÷´Ü ¾Ë¸²ÁÙÀ» Å¬¸¯ÇÏ¿© ÆË¾÷À» Çã¿ëÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.\n\n¡Ø MSN,¾ßÈÄ,±¸±Û ÆË¾÷ Â÷´Ü Åø¹Ù°¡ ¼³Ä¡µÈ °æ¿ì ÆË¾÷Çã¿ëÀ» ÇØÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.      ");
		}
		PCCV4_window.focus();
	};

	orderForm.agree.onclick = orderForm.agree.onchange = function () {
		if (this.checked) {
			location.hash = "per02";
			this.form.name.focus();
			this.form.name.select();
		} else
			location.hash = "per01";
	};

	orderForm.socialNo1.onkeyup = function () {
		if (this.value.length == this.maxLength)
			this.form.socialNo2.focus();
	};

/*******************************************************************************************************/
