	//이전단계
	function goPrevStep2() {
		var f = document.forms[0];
		document.location.href = "step1.php?no="+f.no.value;
	}

	function selectPrice() {
		var f = document.forms[0];
		var obj = new Object;
		var objPrice = new Object;
		var totalPrice = 0;
		var allLevel = getLevelAll(f);

		for(var i=0;i<allLevel.length;i++) {
			if( allLevel[i] ) {
				obj = eval("f.selectSeatCount"+allLevel[i]);
				objPrice = eval("f.seatPrice"+allLevel[i]);

				if( typeof(obj) == "object" ) {
					totalPrice += calcPrice(obj, parseFloat(objPrice.value));
				}
			}
		}
		
		if( totalPrice == 0) {
			f.totalPrice.value = 0;
			disabledNext();
		} else {
			f.totalPrice.value = addComma(totalPrice);
			enabledNext();
		}
	}

	function calcPrice( obj, price ) {
		objCount = parseInt(obj.options[obj.selectedIndex].value);
		if( objCount > 0 ) {
			return objCount * price;
		}
		return 0;
	}

	function getLevelAll( f ) {
		 return (f.levelAll.value).split(",");
	}

	//좌석선택후 결제하기
	function goNext() {
		var f = document.forms[0];
		var isSelect = false;
		var allLevel = getLevelAll(f);

		//좌석후 선택여부를 확인한다.
		for(var i=0;i<allLevel.length;i++) {
			if( allLevel[i] ) {
				obj = eval("f.selectSeatCount"+allLevel[i]);
				if( typeof(obj) == "object" ) {
					if( obj.selectedIndex > 0 ) {
						isSelect = true;
						break;
					}
				}
			}
		}
		if( isSelect ) {
			return true;
		} else {
			alert(artMessage({msg:"예매좌석수선택안내"}));
			return false;
		}
	}