<!--
// 스크랩하기
order = function(kind){
	this.docXML;				// XML데이터 return 값
	this.callback = null;		// XML결과 return함수
	this.httpRequest = null;	// httpRequest객체
	this.form = document.orderForm;	// 폼
	this.fileCount = 1;			// 초기 파일수
	this.fileSel = null;		// 마지막 생성 파일
	this.kind = kind;			// 작업구분


	// httpRequest 객체 생성 함수
	order.prototype.getXMLHttpRequest = function() {
		if (window.ActiveXObject) {
			try {
				return new ActiveXObject("Msxml2.XMLHTTP");
			} catch(e) {
				try {
					return new ActiveXObject("Microsoft.XMLHTTP");
				} catch(e1) { return null; }
			}
		} else if (window.XMLHttpRequest) {
			return new XMLHttpRequest();
		} else {
			return null;
		}
	}	//	end getXMLHttpRequest function
	
	// httpRequest send 함수
	order.prototype.sendRequest = function(url, params, callback, method) {
		this.callback = callback;

		this.httpRequest = this.getXMLHttpRequest();
		var httpMethod = method ? method : 'GET';
		if (httpMethod != 'GET' && httpMethod != 'POST') {
			httpMethod = 'GET';
		}
		var httpParams = (params == null || params == '') ? null : params;
		var httpUrl = url;
		if (httpMethod == 'GET' && httpParams != null) {
			httpUrl = httpUrl + "?" + httpParams;
		}
		this.httpRequest.open(httpMethod, httpUrl, true);
		this.httpRequest.setRequestHeader(
			'Content-Type', 'application/x-www-form-urlencoded');
		
		var request = this;
		this.httpRequest.onreadystatechange = function() {
			request.onStateChange.call(request);
		}
		this.httpRequest.send(httpMethod == 'POST' ? httpParams : null);	
	}	// end sendRequest function

	// httpRequest return 함수
	order.prototype.onStateChange = function() {
		this.callback(this.httpRequest);
	}	// end onStateChange end


	// 결과 계산
	order.prototype.orderPrice = function(){
		// 표지계산
		switch (this.kind){
			case 'cover':

				// 형식에 따른 내용
				if(this.form.proType[0].checked == true){	// 칼라인쇄 및 표지 모두
					document.getElementById('colorArea').style.display = "block";
					document.getElementById('coverArea').style.display = "block";
					document.getElementById('bindFd1').style.display = "block";
					document.getElementById('bindFd2').style.display = "block";

				}else if(this.form.proType[1].checked == true){	// 칼라인쇄만
					document.getElementById('colorArea').style.display = "block";
					document.getElementById('coverArea').style.display = "none";
					document.getElementById('bindFd1').style.display = "none";
					document.getElementById('bindFd2').style.display = "none";

				}else{	// 표지주문만
					document.getElementById('colorArea').style.display = "none";
					document.getElementById('coverArea').style.display = "block";
					document.getElementById('bindFd1').style.display = "none";
					document.getElementById('bindFd2').style.display = "none";
				}

				// 작업구분
				proType = "";
				for(i = 0; i < this.form.proType.length; i++){
					if(this.form.proType[i].checked == true){
						proType = this.form.proType[i].value;
					}
				}

				// 작업구분
				bindChk = "";
				for(i = 0; i < this.form.bindChk.length; i++){
					if(this.form.bindChk[i].checked == true){
						bindChk = this.form.bindChk[i].value;
					}
				}

				coPage = this.form.coPage.value;		// 칼라인쇄페이지수
				coAmount = this.form.coAmount.value;	// 칼라인쇄부수
				coPaperSize = this.form.coPaperSize.value;	// 칼라인쇄규격
				coPaperType = this.form.coPaperType.value;	// 칼라종이종류


				// 디자인코드값
				designCode = "";
				if(this.form.desginType[0].checked == true){

				}else if(this.form.desginType[1].checked == true){
					if(this.form.design1.checked == true){
						designCode = this.form.design1.value;
					}else{
						designCode = "";
					}
				}else{
					designCode = "";
					for(i = 0; i < this.form.design2.length; i++){
						if(this.form.design2[i].checked == true){
							designCode = this.form.design2[i].value;
						}
					}
				}

				// 코팅
				coating = "";
				for(i = 0; i < this.form.coating.length; i++){
					if(this.form.coating[i].checked == true){
						coating = this.form.coating[i].value;
					}
				}
				paperSize = this.form.paperSize.value;	// 인쇄규격
				paperType = this.form.paperType.value;	// 인쇄규격
				amount = this.form.amount.value;	// 수량

				code = proType+"_"+coPage+"_"+coAmount+"_"+coPaperSize+"_"+coPaperType+"_"+bindChk+"_"+designCode+"_"+coating+"_"+paperSize+"_"+paperType+"_"+amount;
				// 작업구분_칼라페이지수_부수_칼라인쇄규격_칼라종이종류_제본유무_디자인_코팅_종이규격_종이종류_수량

				this.orderRequest(code);
				break;

			// 교재주문
			case 'book':

				// 디지털 인쇄의 경우 코팅은 유광만됨
				if(this.form.printType[2].checked == true){
					this.form.coating[1].checked = true;
					this.form.coating[0].disabled = true;
					this.form.coating[2].disabled = true;
				}else{
					this.form.coating[0].disabled = false;
					this.form.coating[2].disabled = false;
				}

				// 옵셋인쇄의 내용 변경
				if(this.form.printType[3].checked == true){
					document.getElementById('pntTypeTxt').innerHTML = "페이지수";
					document.getElementById('pntTypeOd').style.display = "none";
					document.getElementById('pntTypeOs').style.display = "block";
					document.getElementById('pntTypeCv').style.display = "block";
				}else{
					document.getElementById('pntTypeTxt').innerHTML = "흑백페이지";
					document.getElementById('pntTypeOs').style.display = "none";
					document.getElementById('pntTypeOd').style.display = "block";
					document.getElementById('pntTypeCv').style.display = "none";
				}



				// 표지코드 ----------------
				designCode = "";
				if(this.form.desginType[0].checked == true){
					if(this.form.design1.checked == true){
						designCode = this.form.design1.value;
					}else{
						designCode = "";
					}
				}else{
					designCode = "";
					for(i = 0; i < this.form.design2.length; i++){
						if(this.form.design2[i].checked == true){
							designCode = this.form.design2[i].value;
						}
					}
				}

				// 코팅
				coating = "";
				for(i = 0; i < this.form.coating.length; i++){
					if(this.form.coating[i].checked == true){
						coating = this.form.coating[i].value;
					}
				}
				paperSize = this.form.paperSize.value;	// 인쇄규격
				paperType = this.form.paperType.value;	// 인쇄규격

				// 내지인쇄정보 ----------------
				printType = "";
				for(i = 0; i < this.form.printType.length; i++){
					if(this.form.printType[i].checked == true){
						printType = this.form.printType[i].value;
					}
				}
				amount = this.form.amount.value;	// 부수
				gPage = this.form.gPage.value;	// 흑백페이지수
				gPaperSize = this.form.gPaperSize.value;	// 흑백 규격
				gPaperWeight = this.form.gPaperWeight.value;	// 흑백 종류
				cPage = this.form.cPage.value;	// 칼라페이지수
				dosu = this.form.dosu.value;	// 옵셋인쇄의 경우 도수
				cvType = this.form.cvType.value;	// 옵셋인쇄의 경우 표지인쇄방법

				code = designCode+"_"+coating+"_"+paperSize+"_"+paperType+"_"+printType+"_"+amount+"_"+gPage+"_"+gPaperSize+"_"+gPaperWeight+"_"+cPage+"_"+dosu+"_"+cvType;	// 디자인_코팅_종이규격_종이종류_인쇄방법_부수_흑백페이지_흑백규격_흑백종류_칼라페이지_도수_표지양단면

				this.orderRequest(code);
				break;


			// 전단지
			case 'etc1':
				
				paperType = this.form.paperType.value;	// 종이선택
				paperSize = this.form.paperSize.value;	// 규격
				printType = this.form.printType.value;	// 인쇄방법
				amount = this.form.amount.value;		// 수량

				code = paperType+"_"+paperSize+"_"+printType+"_"+amount;	// 종이선택_규격_인쇄방법_수량

				this.orderRequest(code);
				break;


			// 문어발
			case 'etc2':
				
				paperType = this.form.paperType.value;	// 종이선택
				amount = this.form.amount.value;		// 수량
				design = "";
				for(i = 0; i < this.form.design.length; i++){
					if(this.form.design[i].checked == true){
						design = this.form.design[i].value;
					}
				}

				code = paperType+"_"+amount+"_"+design;	// 종이선택_규격_인쇄방법_수량

				this.orderRequest(code);
				break;


			// 봉투
			case 'etc3':
				
				proType = this.form.proType.value;	// 종이선택
				paperType = this.form.paperType.value;	// 종이선택
				amount = this.form.amount.value;		// 수량

				code = proType+"_"+paperType+"_"+amount;	// 봉투종류_용지종류_수량


				this.orderRequest(code);
				break;


			// 노트
			case 'etc4':

				// 디자인코드값
				designCode = "";
				if(this.form.desginType[0].checked == true){
					if(this.form.design1.checked == true){
						designCode = this.form.design1.value;
					}else{
						designCode = "";
					}
				}else{
					designCode = "";
					for(i = 0; i < this.form.design2.length; i++){
						if(this.form.design2[i].checked == true){
							designCode = this.form.design2[i].value;
						}
					}
				}
				
				paperSize = this.form.paperSize.value;		// 종이크기
				paperWeight = this.form.paperWeight.value;	// 종이종류
				amount = this.form.amount.value;			// 부수
				pageCount = this.form.pageCount.value;		// 페이지수
				coating = this.form.coating.value;			// 코팅방법
				bindType = this.form.bindType.value;		// 제본방법
				cvType = this.form.cvType.value;			// 표지인쇄

				code = designCode+"_"+paperSize+"_"+paperWeight+"_"+amount+"_"+pageCount+"_"+coating+"_"+bindType+"_"+cvType;	// 디자인코드_종이크기_종이종류_부수_페이지수_코팅방법_제본방법_표지인쇄


				this.orderRequest(code);
				break;

			default:
				alert("결과코드 없음");
				break;
		}
	}	// end orderRequest function	


	// 결과 계산
	order.prototype.orderRequest = function(code){
		params  = "kind="+encodeURIComponent(this.kind);
		params += "&code="+encodeURIComponent(code);

		this.sendRequest("/core/xml/order.xml.html", params, this.orderResult, "POST");
	}	// end orderRequest function	


	// XML결과
	order.prototype.orderResult = function(){
		if(this.httpRequest.readyState == 4){
			if(this.httpRequest.status == 200){		
				
				//alert(this.httpRequest.responseText);

				this.docXML = this.httpRequest.responseXML;
				code = this.docXML.getElementsByTagName("code").item(0).firstChild.nodeValue;	// 결과코드

				// 결과 실행
				switch (code){
					case 'ErrorMsg':
						message = this.docXML.getElementsByTagName("message").item(0).firstChild.nodeValue;	// 리턴메시지
						alert(message);
						break;

					case 'coverAccount':
						colorAccount = this.docXML.getElementsByTagName("colorAccount").item(0).firstChild.nodeValue;	// 칼라인쇄가격
						coverAccount = this.docXML.getElementsByTagName("coverAccount").item(0).firstChild.nodeValue;	// 표지가격
						account = this.docXML.getElementsByTagName("account").item(0).firstChild.nodeValue;	// 전체가격
						colorAccount = parseInt(colorAccount);
						coverAccount = parseInt(coverAccount);
						account = parseInt(account);
						taxAccount = account / 10;
						totalAccount = account + taxAccount;

						this.form.colorAccount.value = numberFormat(colorAccount);
						this.form.coverAccount.value = numberFormat(coverAccount);
						this.form.svcAccount.value = numberFormat(account);
						this.form.taxAccount.value = numberFormat(taxAccount);
						this.form.account.value = numberFormat(totalAccount);

						break;

					case 'bookAccount':
						account = this.docXML.getElementsByTagName("account").item(0).firstChild.nodeValue;	// 전체가격
						coverAccount = this.docXML.getElementsByTagName("coverAccount").item(0).firstChild.nodeValue;	// 표지가격
						printAccount = this.docXML.getElementsByTagName("printAccount").item(0).firstChild.nodeValue;	// 인쇄가격
						account = parseInt(account);
						coverAccount = parseInt(coverAccount);
						printAccount = parseInt(printAccount);
						taxAccount = account / 10;
						totalAccount = account + taxAccount;

						//alert(this.httpRequest.responseText);



						this.form.coverAccount.value = numberFormat(coverAccount);
						this.form.printAccount.value = numberFormat(printAccount);
						this.form.svcAccount.value = numberFormat(account);
						this.form.taxAccount.value = numberFormat2(taxAccount);
						this.form.account.value = numberFormat2(totalAccount);
						break;


					case 'etc1Account':
						//alert(this.httpRequest.responseTEXT);
						account = this.docXML.getElementsByTagName("account").item(0).firstChild.nodeValue;	// 전체가격
						designAccount = this.docXML.getElementsByTagName("designAccount").item(0).firstChild.nodeValue;	// 표지가격
						printAccount = this.docXML.getElementsByTagName("printAccount").item(0).firstChild.nodeValue;	// 인쇄가격
						account = parseInt(account);
						designAccount = parseInt(designAccount);
						printAccount = parseInt(printAccount);
						taxAccount = account / 10;
						totalAccount = account + taxAccount;

						this.form.designAccount.value = numberFormat(designAccount);
						this.form.printAccount.value = numberFormat(printAccount);
						this.form.svcAccount.value = numberFormat(account);
						this.form.taxAccount.value = numberFormat(taxAccount);
						this.form.account.value = numberFormat(totalAccount);
						break;

					default:
						alert("결과코드 없음");
						break;
				}
			}
		}
	}	// end orderResult function


	// 디자인 형식
	order.prototype.designType = function(val){
		if(val == 1){
			for(i = 0; i < this.form.design2.length; i++){
				this.form.design2[i].checked = false;
				this.form.design2[i].disabled = true;
			}
			this.form.design1.disabled = false;
		}else{
			for(i = 0; i < this.form.design2.length; i++){
				this.form.design2[i].disabled = false;
			}
			this.form.design1.disabled = true;
		}
		this.orderPrice('cover');
	}	// end designType function
	

	// 교재
	order.prototype.bookValue = function(){

		// 학원명 체크
		if(trim(this.form.comName.value) == ""){
			alert("\n상호를 입력하세요.");
			this.form.comName.focus();
			return false;
		}

		// 담당자
		if(trim(this.form.name.value) == ""){
			alert("\n이름을 입력하세요.");
			this.form.name.focus();
			return false;
		}

		// 전화번호
		if(trim(this.form.phone2.value) == "" || trim(this.form.phone2.value) == ""){
			alert("\n전화번호를 입력하세요.");
			this.form.phone2.focus();
			return false;
		}

		// 핸드폰번호
		if(trim(this.form.hphone2.value) == "" || trim(this.form.hphone2.value) == ""){
			alert("\n휴대전화번호를 입력하세요.");
			this.form.hphone2.focus();
			return false;
		}

		// 이메일
		if(!emailCheck(this.form.email.value)){
			alert("\n이메일 주소를 입력하세요.");
			this.form.email.focus();
			return false;
		}
		
		// 인쇄방법 선택
		if(this.form.printType[0].checked == false && this.form.printType[1].checked == false && this.form.printType[2].checked == false && this.form.printType[3].checked == false){
			alert("\인쇄방법을 선택하세요.");
			return false;
		}

		// 부수
		if(trim(this.form.amount.value) == ""){
			alert("\n부수를 입력하세요.");
			this.form.amount.focus();
			return false;
		}

		// 인쇄규격
		if(trim(this.form.gPaperSize.value) == ""){
			alert("\n인쇄규격을 입력하세요.");
			this.form.gPaperSize.focus();
			return false;
		}

		// 종이종류
		if(trim(this.form.gPaperWeight.value) == ""){
			alert("\n종이종류를 입력하세요.");
			this.form.gPaperWeight.focus();
			return false;
		}

		// 페이지수
		if(trim(this.form.gPage.value) == "" && trim(this.form.cPage.value) == ""){
			alert("\n페이지수를 입력하세요.");
			this.form.gPage.focus();
			return false;
		}

		// 옵셋인쇄의 경우
		if(this.form.printType[3].checked == true){
			if(trim(this.form.dosu.value) == ""){
				alert("\n인쇄도수를 입력하세요.");
				this.form.dosu.focus();
				return false;
			}
		}

		// 인쇄규격
		if(this.form.paperSize.value == ""){
			alert("\n인쇄규격을 입력하세요.");
			this.form.paperSize.focus();
			return false;
		}
		// 인쇄종류
		if(this.form.paperType.value == ""){
			alert("\n표지종이종류를 입력하세요.");
			this.form.paperType.focus();
			return false;
		}

		// 옵셋인쇄의 경우
		if(this.form.printType[3].checked == true){
			if(trim(this.form.cvType.value) == ""){
				alert("\n인쇄방법을 입력하세요.");
				this.form.cvType.focus();
				return false;
			}
		}

		// 기성표지체크
		if(this.form.desginType[0].checked == true){
			//if(this.form.coverCode.value == ""){
			//	alert("\기성표지를 선택하세요.");
			//	return false;
			//}
		}else{
			// 디자인표지 선택
			if(this.form.design2[0].checked == false && this.form.design2[1].checked == false){
				alert("\저작권 포함/미포함 의뢰 내용을 선택하세요.");
				return false;
			}
		}
		

		// 가격체크
		if(trim(this.form.account.value) == "" || trim(this.form.account.value) == "0"){
			alert("\n정상적으로 입력되지 않았습니다..");
			return false;
		}

		this.form.target = "_blank";
		this.form.action = "../mypage/estimate.html?kind="+this.kind;
		this.form.submit();
	}	// end coverValue function



	// 표지주문 체크
	order.prototype.coverValue = function(){

		// 학원명 체크
		if(trim(this.form.comName.value) == ""){
			alert("\n상호를 입력하세요.");
			this.form.comName.focus();
			return false;
		}

		// 담당자
		if(trim(this.form.name.value) == ""){
			alert("\n이름을 입력하세요.");
			this.form.name.focus();
			return false;
		}

		// 전화번호
		if(trim(this.form.phone2.value) == "" || trim(this.form.phone2.value) == ""){
			alert("\n전화번호를 입력하세요.");
			this.form.phone2.focus();
			return false;
		}

		// 핸드폰번호
		if(trim(this.form.hphone2.value) == "" || trim(this.form.hphone2.value) == ""){
			alert("\n휴대전화번호를 입력하세요.");
			this.form.hphone2.focus();
			return false;
		}

		// 이메일
		if(!emailCheck(this.form.email.value)){
			alert("\n이메일 주소를 입력하세요.");
			this.form.email.focus();
			return false;
		}

		// 칼라인쇄 체크
		if(this.form.proType[0].checked == true || this.form.proType[1].checked == true){
			// 인쇄규격
			if(this.form.coPage.value == ""){
				alert("\n칼라 페이지수를 입력하세요.");
				this.form.coPage.focus();
				return false;
			}
			// 인쇄규격
			if(this.form.coAmount.value == ""){
				alert("\n부수를 입력하세요.");
				this.form.coAmount.focus();
				return false;
			}
			// 인쇄규격
			if(this.form.coPaperSize.value == ""){
				alert("\n칼라규격을 선택하세요.");
				this.form.coPaperSize.focus();
				return false;
			}
			// 인쇄규격
			if(this.form.coPaperType.value == ""){
				alert("\n칼라종이종류를 선택하세요.");
				this.form.coPaperType.focus();
				return false;
			}
		}


		// 표지 체크
		if(this.form.proType[0].checked == true || this.form.proType[2].checked == true){
			// 인쇄규격
			if(this.form.paperSize.value == ""){
				alert("\n표지인쇄규격을 입력하세요.");
				this.form.paperSize.focus();
				return false;
			}
			// 인쇄종류
			if(this.form.paperType.value == ""){
				alert("\n표지인쇄종류를 입력하세요.");
				this.form.paperType.focus();
				return false;
			}

			// 기성표지체크
			if(this.form.desginType[1].checked == true){
				//if(this.form.coverCode.value == ""){
				//	alert("\기성표지를 선택하세요.");
				//	return false;
				//}
			}else if(this.form.desginType[2].checked == true){
				// 디자인표지 선택
				if(this.form.design2[0].checked == false && this.form.design2[1].checked == false){
					alert("\저작권 포함/미포함 의뢰 내용을 선택하세요.");
					return false;
				}
			}else{
			}
			// 수량
			if(trim(this.form.amount.value) == ""){
				alert("\n수량을 입력하세요.");
				this.form.amount.focus();
				return false;
			}
		}		

		// 가격체크
		if(trim(this.form.account.value) == "" || trim(this.form.account.value) == "0"){
			alert("\n정상적으로 입력되지 않았습니다..");
			return false;
		}

		if(this.form.printType[2].checked){
			if(this.form.amount.value%2 == 1 ){
				alert("디지털 인쇄는 짝수로 입력하셔야 합니다.");
				this.form.amount.value = "";
				this.form.amount.focus();
			}
		}

		this.form.target = "_blank";
		this.form.action = "../mypage/estimate.html?kind="+this.kind;
		this.form.submit();
	}	// end coverValue function

	// 디지털인쇄시 인쇄부수 짝수 체크
	order.prototype.chkAmount = function(){
		if(this.form.printType[2].checked){
			if(this.form.amount.value%2 == 1 ){
				alert("디지털 인쇄는 짝수로 입력하셔야 합니다.");
				this.form.amount.value = "";
				this.form.amount.focus();
			}
		}
	}

	// 기타체크
	order.prototype.etcValue = function(){

		// 학원명 체크
		if(trim(this.form.comName.value) == ""){
			alert("\n상호를 입력하세요.");
			this.form.comName.focus();
			return false;
		}

		// 담당자
		if(trim(this.form.name.value) == ""){
			alert("\n이름을 입력하세요.");
			this.form.name.focus();
			return false;
		}

		// 전화번호
		if(trim(this.form.phone2.value) == "" || trim(this.form.phone2.value) == ""){
			alert("\n전화번호를 입력하세요.");
			this.form.phone2.focus();
			return false;
		}

		// 핸드폰번호
		if(trim(this.form.hphone2.value) == "" || trim(this.form.hphone2.value) == ""){
			alert("\n휴대전화번호를 입력하세요.");
			this.form.hphone2.focus();
			return false;
		}

		// 이메일
		if(!emailCheck(this.form.email.value)){
			alert("\n이메일 주소를 입력하세요.");
			this.form.email.focus();
			return false;
		}

		// 전단지 체크
		if(this.kind == "etc1"){
			// 종이선택
			if(this.form.paperType.value == ""){
				alert("\n종이를 선택하세요.");
				this.form.paperType.focus();
				return false;
			}
			// 규격(크기)
			if(this.form.paperSize.value == ""){
				alert("\n규격을 입력하세요.");
				this.form.paperSize.focus();
				return false;
			}
			// 인쇄방법
			if(this.form.printType.value == ""){
				alert("\n인쇄방법을 입력하세요.");
				this.form.printType.focus();
				return false;
			}
			// 수량
			if(this.form.amount.value == ""){
				alert("\n수량을 입력하세요.");
				this.form.amount.focus();
				return false;
			}			
		}

		// 문어발체크
		if(this.kind == "etc2"){
			// 종이선택
			if(this.form.paperType.value == ""){
				alert("\n종이를 선택하세요.");
				this.form.paperType.focus();
				return false;
			}
			// 수량
			if(this.form.amount.value == ""){
				alert("\n수량을 입력하세요.");
				this.form.amount.focus();
				return false;
			}
		}


		// 봉투제작
		if(this.kind == "etc3"){
			// 종이선택
			if(this.form.proType.value == ""){
				alert("\n종이를 선택하세요.");
				this.form.proType.focus();
				return false;
			}
			// 종이선택
			if(this.form.paperType.value == ""){
				alert("\n종이를 선택하세요.");
				this.form.paperType.focus();
				return false;
			}
			// 수량
			if(this.form.amount.value == ""){
				alert("\n수량을 입력하세요.");
				this.form.amount.focus();
				return false;
			}
		}


		// 노트제작
		if(this.kind == "etc4"){
			// 종이선택
			if(this.form.paperSize.value == ""){
				alert("\n종이크기를 선택하세요.");
				this.form.paperSize.focus();
				return false;
			}
			// 종이종류
			if(this.form.paperWeight.value == ""){
				alert("\n종이종류를 선택하세요.");
				this.form.paperWeight.focus();
				return false;
			}
			// 부수
			if(this.form.amount.value == ""){
				alert("\n부수를 입력하세요.");
				this.form.amount.focus();
				return false;
			}
			// 페이지수
			if(this.form.pageCount.value == ""){
				alert("\n페이지수를 입력하세요.");
				this.form.pageCount.focus();
				return false;
			}
			// 코팅방법
			if(this.form.coating.value == ""){
				alert("\n코팅 방법을 선택하세요.");
				this.form.coating.focus();
				return false;
			}
			// 제본방법
			if(this.form.bindType.value == ""){
				alert("\n제본방법을 선택하세요.");
				this.form.bindType.focus();
				return false;
			}
			// 표지인쇄
			if(this.form.cvType.value == ""){
				alert("\n표지인쇄방법을 선택하세요.");
				this.form.cvType.focus();
				return false;
			}
		}
		

		this.form.target = "_blank";
		this.form.action = "../mypage/estimate.html?kind="+this.kind;
		this.form.submit();
	}	// end coverValue function




	

}	// end order Class

//-->
