스크립트오류가 나는데요 어딜 수정하면 될런지요? 정보
스크립트오류가 나는데요 어딜 수정하면 될런지요?
관련링크
http://www.moto.kr
192회 연결
본문
아래 소스는 견적을 내보는 소스 입니다
숫자를 입력할때마다 스크립트에러가 납니다
몇일 이것저것 해보다가 두손들었습니다^^
=========================================================
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="JavaScript" type="text/JavaScript">
// 개별 단가 계산
function calcOne(text,price,div,courseId) {
cnt = text.value;
form = text.form;
total = form.total.value ;
eval( "prevPricePartTotal = form.pricePartTotal"+courseId+"_"+div+".value;");
pricePart = cnt*price;
total = total - prevPricePartTotal;
total = total + pricePart;
eval( "form.pricePartTotal"+courseId+"_"+div+".value= "+pricePart);
form.total.value = total;
}
// 개별 단가 계산 - 레포츠가격
function calcOneFood(price,cnt,seq,form) {
total = form.total.value ; //현재총계
prevPricePartTotalFood = form.pricePartTotalFood.value; // 현재 레포츠총계
eval( "prevPricePartFoodTotal = form.pricePartFoodTotal"+seq+".value;"); //현재레포츠소계 임시저장
pricePartFood = cnt*price; // 현재 레포츠 소계
total1 = prevPricePartTotalFood - prevPricePartFoodTotal;
total1 = total1 + pricePartFood;
total = total - prevPricePartTotalFood;
total = total + total1;
eval( "form.pricePartFoodTotal"+seq+".value ="+pricePartFood+";"); //현재레포츠소계 임시저장
form.pricePartTotalFood.value= total1; //레포츠총계
form.total.value = total;
}
function CalcStay(form) {
room = form.pricePartRoom.value;
pp = form.pricePartStay.value;
prevStay = form.pricePartTotalStay.value;
total = form.total.value;
total = total - prevStay;
form.pricePartTotalStay.value = room * pp;
form.total.value = total + parseInt(form.pricePartTotalStay.value);
}
// 전체선택 내역 계산
function calcAll(check) {
form = check.form;
var count = form.elements.length;
var total = 0;
for ( i=0 ; i < count ; i++ ) {
if(form.elements[i].checked ) {
total = total + parseInt(form.elements[i].value);
}
}
form.total.value = total;
}
</script>
<style type="text/css">
<!--
.textBarBottomNum {
font-family: "굴림";
font-size: 12px;
line-height: 120%;
text-decoration: none;
color: #FF7676;
border-top: none;
border-right: none;
border-bottom: 1px solid #CCCCCC;
border-left: none;
font-weight: bold;
text-align: right;
}
.textBarBottomNum1 {
font-family: "굴림";
font-size: 12px;
line-height: 120%;
text-decoration: none;
color: #FF7676;
border: 1px ridge #333333;
font-weight: bold;
text-align: right;
}
-->
</style>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<meta name="generator" content="Namo WebEditor">
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div id="cont">
<form name="priceList" id="priceList">
<table width="618px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<table width="614" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-bottom:17px;"><a name="enter"></a> <table width="614" border="0" cellspacing="0" cellpadding="0">
</table></td>
</tr><tr>
<td height="35" colspan="2"><img src="image/search_title.gif"></td></tr>
<tr>
<td style="padding-bottom:17px;"><a name="food"></a> <table width="614" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="image/community_box_top.gif" width="614" height="8"></td>
</tr>
<tr>
<td><table width="614" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1" bgcolor="DFDFDF"></td>
<td style="padding:5 10 5 10;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" valign="top"><img src="image/tourmoney_bullet.gif" width="9" height="9" align="absmiddle">
<strong>20인이상 단체 우대단가 입니다</strong></td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="EAF0F2">
<tr>
<td width="4"><img src="http://tour.cwg.go.kr/module/img/tourmoney_r1.gif" width="4" height="4"></td>
<td><b></b></td>
<td width="3"><b><img src="http://tour.cwg.go.kr/module/img/tourmoney_r3.gif" width="4" height="4"></b></td>
</tr>
<tr>
<td><b></b></td>
<td height="18"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td width="231">레포츠 종류</td>
<td width="114"> 단 가</td>
<td width="124">인 원</td>
<td width="115">소 계</td>
</tr>
</table></td>
<td></td>
</tr>
<tr>
<td><img src="http://tour.cwg.go.kr/module/img/tourmoney_r2.gif" width="4" height="4"></td>
<td></td>
<td><img src="http://tour.cwg.go.kr/module/img/tourmoney_r4.gif" width="4" height="4"></td>
</tr>
</table></td>
</tr>
<tr>
<td style="padding:5 5 5 5;"><table width="100%" cellspacing="0" bordercolordark="white" bordercolorlight="black" style="border-collapse:collapse;">
<tr>
<td height="24" width="66" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"> </td>
<td width="158" height="24" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><span style="font-size:12pt;"><font face="정12b">래 프 팅</font></span></td>
<td style="padding-right:15px; border-width:1; border-color:rgb(204,204,204); border-style:dotted;" align="right" width="92" bordercolor="#CCCCCC">20,000 원</td>
<td align="center" width="115" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><img src="image/tourmoney_x.gif" width="9" height="9">
<input name='pricePartFood228' type='text' class='textBarBottomNum1' id="pricePartFood228" onKeyDown='chkNumeric();' value='' size=4 onKeyUp="calcOneFood(20000,this.value,228,this.form);">
명</td>
<td width="115" align="center" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;">
<input name='pricePartFoodTotal228' type='text' class='textBarBottomNum' id="pricePartFoodTotal228" value='0' size=6 readonly>
원 </td>
</tr>
<tr>
<td height="24" width="66" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"> </td>
<td width="158" height="24" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><span style="font-size:12pt;"><font face="정12b">서바이벌</font></span></td>
<td style="padding-right:15px; border-width:1; border-color:rgb(204,204,204); border-style:dotted;" align="right" width="92" bordercolor="#CCCCCC">20,000 원</td>
<td align="center" width="115" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><img src="image/tourmoney_x.gif" width="9" height="9">
<input name='pricePartFood229' type='text' class='textBarBottomNum1' id="pricePartFood229" onKeyDown='chkNumeric();' value='' size=4 onKeyUp="calcOneFood(20000,this.value,229,this.form);">
명</td>
<td width="115" align="center" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;">
<input name='pricePartFoodTotal229' type='text' class='textBarBottomNum' id="pricePartFoodTotal229" value='0' size=6 readonly>
원 </td>
</tr>
<tr>
<td height="24" width="66" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"> </td>
<td width="158" height="24" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><span style="font-size:12pt;"><font face="정12b">카트 KART</font></span></td>
<td style="padding-right:15px; border-width:1; border-color:rgb(204,204,204); border-style:dotted;" align="right" width="92" bordercolor="#CCCCCC">20,000 원</td>
<td align="center" width="115" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><img src="image/tourmoney_x.gif" width="9" height="9">
<input name='pricePartFood230' type='text' class='textBarBottomNum1' id="pricePartFood230" onKeyDown='chkNumeric();' value='' size=4 onKeyUp="calcOneFood(20000,this.value,230,this.form);">
명</td>
<td width="115" align="center" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;">
<input name='pricePartFoodTotal230' type='text' class='textBarBottomNum' id="pricePartFoodTotal230" value='0' size=6 readonly>
원 </td>
</tr>
<tr>
<td height="24" width="66" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"> </td>
<td width="158" height="24" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><span style="font-size:12pt;"><font face="정12b">페인트볼 사격</font></span></td>
<td style="padding-right:15px; border-width:1; border-color:rgb(204,204,204); border-style:dotted;" align="right" width="92" bordercolor="#CCCCCC">10,000 원</td>
<td align="center" width="115" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><img src="image/tourmoney_x.gif" width="9" height="9">
<input name='pricePartFood231' type='text' class='textBarBottomNum1' id="pricePartFood231" onKeyDown='chkNumeric();' value='' size=4 onKeyUp="calcOneFood(10000,this.value,231,this.form);">
명</td>
<td width="115" align="center" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;">
<input name='pricePartFoodTotal231' type='text' class='textBarBottomNum' id="pricePartFoodTotal231" value='0' size=6 readonly>
원 </td>
</tr>
<tr>
<td height="24" width="66" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"> </td>
<td width="158" height="24" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><span style="font-size:12pt;"><font face="정12b" color="blue">펜션 1인당(최소7명)</font></span></td>
<td style="padding-right:15px; border-width:1; border-color:rgb(204,204,204); border-style:dotted;" align="right" width="92" bordercolor="#CCCCCC">10,000 원</td>
<td align="center" width="115" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><img src="image/tourmoney_x.gif" width="9" height="9">
<input name='pricePartFood232' type='text' class='textBarBottomNum1' id="pricePartFood232" onKeyDown='chkNumeric();' value='' size=4 onKeyUp="calcOneFood(10000,this.value,232,this.form);">
명</td>
<td width="115" align="center" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;">
<input name='pricePartFoodTotal232' type='text' class='textBarBottomNum' id="pricePartFoodTotal232" value='0' size=6 readonly>
원 </td>
</tr>
<tr>
<td height="24" width="66" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"> </td>
<td width="158" height="24" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><span style="font-size:12pt;"><font face="정12b" color="#FF6600">패키지상품 A</font></span></td>
<td style="padding-right:15px; border-width:1; border-color:rgb(204,204,204); border-style:dotted;" align="right" width="92" bordercolor="#CCCCCC">35,000 원</td>
<td align="center" width="115" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><img src="image/tourmoney_x.gif" width="9" height="9">
<input name='pricePartFood233' type='text' class='textBarBottomNum1' id="pricePartFood233" onKeyDown='chkNumeric();' value='' size=4 onKeyUp="calcOneFood(35000,this.value,233,this.form);">
명</td>
<td width="115" align="center" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;">
<input name='pricePartFoodTotal233' type='text' class='textBarBottomNum' id="pricePartFoodTotal233" value='0' size=6 readonly>
원 </td>
</tr>
<tr>
<td height="24" width="66" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"> </td>
<td width="158" height="24" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><span style="font-size:12pt;"><font face="정12b" color="#FF6600">패키지상품 B</font></span></td>
<td style="padding-right:15px; border-width:1; border-color:rgb(204,204,204); border-style:dotted;" align="right" width="92" bordercolor="#CCCCCC">45,000 원</td>
<td align="center" width="115" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><img src="image/tourmoney_x.gif" width="9" height="9">
<input name='pricePartFood234' type='text' class='textBarBottomNum1' id="pricePartFood234" onKeyDown='chkNumeric();' value='' size=4 onKeyUp="calcOneFood(45000,this.value,234,this.form);">
명</td>
<td width="115" align="center" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;">
<input name='pricePartFoodTotal234' type='text' class='textBarBottomNum' id="pricePartFoodTotal234" value='0' size=6 readonly>
원 </td>
</tr>
<tr>
<td height="24" width="66" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"> </td>
<td width="158" height="24" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><span style="font-size:12pt;"><font face="정12b" color="#FF6600">패키지상품 C</font></span></td>
<td style="padding-right:15px; border-width:1; border-color:rgb(204,204,204); border-style:dotted;" align="right" width="92" bordercolor="#CCCCCC">55,000 원</td>
<td align="center" width="115" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><img src="image/tourmoney_x.gif" width="9" height="9">
<input name='pricePartFood235' type='text' class='textBarBottomNum1' id="pricePartFood235" onKeyDown='chkNumeric();' value='' size=4 onKeyUp="calcOneFood(55000,this.value,235,this.form);">
명</td>
<td width="115" align="center" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;">
<input name='pricePartFoodTotal235' type='text' class='textBarBottomNum' id="pricePartFoodTotal235" value='0' size=6 readonly>
원 </td>
</tr>
</table>
<tr>
<td height="30" align="right" bgcolor="EFEFEF" style="padding-right:20px;"><strong>
요금 총계</strong>:
<input name='pricePartTotalFood' type='text' class='textBarBottomNum' id="pricePartTotalFood" value='0' size=6 readonly>
원 </td>
</tr>
</table></td>
<td width="1" bgcolor="DFDFDF"></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="image/community_box_bottom.gif" width="614" height="8"></td>
</tr>
</table></td>
</tr>
<tr>
<td style="padding-bottom:17px;"><a name="stay" id="stay"></a> <table width="614" border="0" cellspacing="0" cellpadding="0">
<table width="614" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="image/box_top.gif" width="614" height="15"></td>
</tr>
<tr>
<td align="center" background="http://tour.cwg.go.kr/module/img/box_bg.gif"><b>총합계 금액은
<font color="#FF6600">
<input type="text" name="total" readonly size='10' value='0' class='textBarBottomNum' style="color:DC2929;">
<font color="DC2929">원</font></font> 입니다.</b> </td>
</tr>
<tr>
<td><img src="image/box_bottom.gif" width="614" height="15"></td>
</tr>
</table></td>
</tr>
</table>
숫자를 입력할때마다 스크립트에러가 납니다
몇일 이것저것 해보다가 두손들었습니다^^
=========================================================
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="JavaScript" type="text/JavaScript">
// 개별 단가 계산
function calcOne(text,price,div,courseId) {
cnt = text.value;
form = text.form;
total = form.total.value ;
eval( "prevPricePartTotal = form.pricePartTotal"+courseId+"_"+div+".value;");
pricePart = cnt*price;
total = total - prevPricePartTotal;
total = total + pricePart;
eval( "form.pricePartTotal"+courseId+"_"+div+".value= "+pricePart);
form.total.value = total;
}
// 개별 단가 계산 - 레포츠가격
function calcOneFood(price,cnt,seq,form) {
total = form.total.value ; //현재총계
prevPricePartTotalFood = form.pricePartTotalFood.value; // 현재 레포츠총계
eval( "prevPricePartFoodTotal = form.pricePartFoodTotal"+seq+".value;"); //현재레포츠소계 임시저장
pricePartFood = cnt*price; // 현재 레포츠 소계
total1 = prevPricePartTotalFood - prevPricePartFoodTotal;
total1 = total1 + pricePartFood;
total = total - prevPricePartTotalFood;
total = total + total1;
eval( "form.pricePartFoodTotal"+seq+".value ="+pricePartFood+";"); //현재레포츠소계 임시저장
form.pricePartTotalFood.value= total1; //레포츠총계
form.total.value = total;
}
function CalcStay(form) {
room = form.pricePartRoom.value;
pp = form.pricePartStay.value;
prevStay = form.pricePartTotalStay.value;
total = form.total.value;
total = total - prevStay;
form.pricePartTotalStay.value = room * pp;
form.total.value = total + parseInt(form.pricePartTotalStay.value);
}
// 전체선택 내역 계산
function calcAll(check) {
form = check.form;
var count = form.elements.length;
var total = 0;
for ( i=0 ; i < count ; i++ ) {
if(form.elements[i].checked ) {
total = total + parseInt(form.elements[i].value);
}
}
form.total.value = total;
}
</script>
<style type="text/css">
<!--
.textBarBottomNum {
font-family: "굴림";
font-size: 12px;
line-height: 120%;
text-decoration: none;
color: #FF7676;
border-top: none;
border-right: none;
border-bottom: 1px solid #CCCCCC;
border-left: none;
font-weight: bold;
text-align: right;
}
.textBarBottomNum1 {
font-family: "굴림";
font-size: 12px;
line-height: 120%;
text-decoration: none;
color: #FF7676;
border: 1px ridge #333333;
font-weight: bold;
text-align: right;
}
-->
</style>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<meta name="generator" content="Namo WebEditor">
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div id="cont">
<form name="priceList" id="priceList">
<table width="618px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<table width="614" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-bottom:17px;"><a name="enter"></a> <table width="614" border="0" cellspacing="0" cellpadding="0">
</table></td>
</tr><tr>
<td height="35" colspan="2"><img src="image/search_title.gif"></td></tr>
<tr>
<td style="padding-bottom:17px;"><a name="food"></a> <table width="614" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="image/community_box_top.gif" width="614" height="8"></td>
</tr>
<tr>
<td><table width="614" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1" bgcolor="DFDFDF"></td>
<td style="padding:5 10 5 10;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" valign="top"><img src="image/tourmoney_bullet.gif" width="9" height="9" align="absmiddle">
<strong>20인이상 단체 우대단가 입니다</strong></td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="EAF0F2">
<tr>
<td width="4"><img src="http://tour.cwg.go.kr/module/img/tourmoney_r1.gif" width="4" height="4"></td>
<td><b></b></td>
<td width="3"><b><img src="http://tour.cwg.go.kr/module/img/tourmoney_r3.gif" width="4" height="4"></b></td>
</tr>
<tr>
<td><b></b></td>
<td height="18"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td width="231">레포츠 종류</td>
<td width="114"> 단 가</td>
<td width="124">인 원</td>
<td width="115">소 계</td>
</tr>
</table></td>
<td></td>
</tr>
<tr>
<td><img src="http://tour.cwg.go.kr/module/img/tourmoney_r2.gif" width="4" height="4"></td>
<td></td>
<td><img src="http://tour.cwg.go.kr/module/img/tourmoney_r4.gif" width="4" height="4"></td>
</tr>
</table></td>
</tr>
<tr>
<td style="padding:5 5 5 5;"><table width="100%" cellspacing="0" bordercolordark="white" bordercolorlight="black" style="border-collapse:collapse;">
<tr>
<td height="24" width="66" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"> </td>
<td width="158" height="24" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><span style="font-size:12pt;"><font face="정12b">래 프 팅</font></span></td>
<td style="padding-right:15px; border-width:1; border-color:rgb(204,204,204); border-style:dotted;" align="right" width="92" bordercolor="#CCCCCC">20,000 원</td>
<td align="center" width="115" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><img src="image/tourmoney_x.gif" width="9" height="9">
<input name='pricePartFood228' type='text' class='textBarBottomNum1' id="pricePartFood228" onKeyDown='chkNumeric();' value='' size=4 onKeyUp="calcOneFood(20000,this.value,228,this.form);">
명</td>
<td width="115" align="center" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;">
<input name='pricePartFoodTotal228' type='text' class='textBarBottomNum' id="pricePartFoodTotal228" value='0' size=6 readonly>
원 </td>
</tr>
<tr>
<td height="24" width="66" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"> </td>
<td width="158" height="24" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><span style="font-size:12pt;"><font face="정12b">서바이벌</font></span></td>
<td style="padding-right:15px; border-width:1; border-color:rgb(204,204,204); border-style:dotted;" align="right" width="92" bordercolor="#CCCCCC">20,000 원</td>
<td align="center" width="115" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><img src="image/tourmoney_x.gif" width="9" height="9">
<input name='pricePartFood229' type='text' class='textBarBottomNum1' id="pricePartFood229" onKeyDown='chkNumeric();' value='' size=4 onKeyUp="calcOneFood(20000,this.value,229,this.form);">
명</td>
<td width="115" align="center" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;">
<input name='pricePartFoodTotal229' type='text' class='textBarBottomNum' id="pricePartFoodTotal229" value='0' size=6 readonly>
원 </td>
</tr>
<tr>
<td height="24" width="66" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"> </td>
<td width="158" height="24" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><span style="font-size:12pt;"><font face="정12b">카트 KART</font></span></td>
<td style="padding-right:15px; border-width:1; border-color:rgb(204,204,204); border-style:dotted;" align="right" width="92" bordercolor="#CCCCCC">20,000 원</td>
<td align="center" width="115" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><img src="image/tourmoney_x.gif" width="9" height="9">
<input name='pricePartFood230' type='text' class='textBarBottomNum1' id="pricePartFood230" onKeyDown='chkNumeric();' value='' size=4 onKeyUp="calcOneFood(20000,this.value,230,this.form);">
명</td>
<td width="115" align="center" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;">
<input name='pricePartFoodTotal230' type='text' class='textBarBottomNum' id="pricePartFoodTotal230" value='0' size=6 readonly>
원 </td>
</tr>
<tr>
<td height="24" width="66" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"> </td>
<td width="158" height="24" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><span style="font-size:12pt;"><font face="정12b">페인트볼 사격</font></span></td>
<td style="padding-right:15px; border-width:1; border-color:rgb(204,204,204); border-style:dotted;" align="right" width="92" bordercolor="#CCCCCC">10,000 원</td>
<td align="center" width="115" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><img src="image/tourmoney_x.gif" width="9" height="9">
<input name='pricePartFood231' type='text' class='textBarBottomNum1' id="pricePartFood231" onKeyDown='chkNumeric();' value='' size=4 onKeyUp="calcOneFood(10000,this.value,231,this.form);">
명</td>
<td width="115" align="center" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;">
<input name='pricePartFoodTotal231' type='text' class='textBarBottomNum' id="pricePartFoodTotal231" value='0' size=6 readonly>
원 </td>
</tr>
<tr>
<td height="24" width="66" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"> </td>
<td width="158" height="24" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><span style="font-size:12pt;"><font face="정12b" color="blue">펜션 1인당(최소7명)</font></span></td>
<td style="padding-right:15px; border-width:1; border-color:rgb(204,204,204); border-style:dotted;" align="right" width="92" bordercolor="#CCCCCC">10,000 원</td>
<td align="center" width="115" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><img src="image/tourmoney_x.gif" width="9" height="9">
<input name='pricePartFood232' type='text' class='textBarBottomNum1' id="pricePartFood232" onKeyDown='chkNumeric();' value='' size=4 onKeyUp="calcOneFood(10000,this.value,232,this.form);">
명</td>
<td width="115" align="center" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;">
<input name='pricePartFoodTotal232' type='text' class='textBarBottomNum' id="pricePartFoodTotal232" value='0' size=6 readonly>
원 </td>
</tr>
<tr>
<td height="24" width="66" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"> </td>
<td width="158" height="24" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><span style="font-size:12pt;"><font face="정12b" color="#FF6600">패키지상품 A</font></span></td>
<td style="padding-right:15px; border-width:1; border-color:rgb(204,204,204); border-style:dotted;" align="right" width="92" bordercolor="#CCCCCC">35,000 원</td>
<td align="center" width="115" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><img src="image/tourmoney_x.gif" width="9" height="9">
<input name='pricePartFood233' type='text' class='textBarBottomNum1' id="pricePartFood233" onKeyDown='chkNumeric();' value='' size=4 onKeyUp="calcOneFood(35000,this.value,233,this.form);">
명</td>
<td width="115" align="center" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;">
<input name='pricePartFoodTotal233' type='text' class='textBarBottomNum' id="pricePartFoodTotal233" value='0' size=6 readonly>
원 </td>
</tr>
<tr>
<td height="24" width="66" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"> </td>
<td width="158" height="24" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><span style="font-size:12pt;"><font face="정12b" color="#FF6600">패키지상품 B</font></span></td>
<td style="padding-right:15px; border-width:1; border-color:rgb(204,204,204); border-style:dotted;" align="right" width="92" bordercolor="#CCCCCC">45,000 원</td>
<td align="center" width="115" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><img src="image/tourmoney_x.gif" width="9" height="9">
<input name='pricePartFood234' type='text' class='textBarBottomNum1' id="pricePartFood234" onKeyDown='chkNumeric();' value='' size=4 onKeyUp="calcOneFood(45000,this.value,234,this.form);">
명</td>
<td width="115" align="center" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;">
<input name='pricePartFoodTotal234' type='text' class='textBarBottomNum' id="pricePartFoodTotal234" value='0' size=6 readonly>
원 </td>
</tr>
<tr>
<td height="24" width="66" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"> </td>
<td width="158" height="24" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><span style="font-size:12pt;"><font face="정12b" color="#FF6600">패키지상품 C</font></span></td>
<td style="padding-right:15px; border-width:1; border-color:rgb(204,204,204); border-style:dotted;" align="right" width="92" bordercolor="#CCCCCC">55,000 원</td>
<td align="center" width="115" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;"><img src="image/tourmoney_x.gif" width="9" height="9">
<input name='pricePartFood235' type='text' class='textBarBottomNum1' id="pricePartFood235" onKeyDown='chkNumeric();' value='' size=4 onKeyUp="calcOneFood(55000,this.value,235,this.form);">
명</td>
<td width="115" align="center" bordercolor="#CCCCCC" style="border-width:1; border-color:rgb(204,204,204); border-style:dotted;">
<input name='pricePartFoodTotal235' type='text' class='textBarBottomNum' id="pricePartFoodTotal235" value='0' size=6 readonly>
원 </td>
</tr>
</table>
<tr>
<td height="30" align="right" bgcolor="EFEFEF" style="padding-right:20px;"><strong>
요금 총계</strong>:
<input name='pricePartTotalFood' type='text' class='textBarBottomNum' id="pricePartTotalFood" value='0' size=6 readonly>
원 </td>
</tr>
</table></td>
<td width="1" bgcolor="DFDFDF"></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="image/community_box_bottom.gif" width="614" height="8"></td>
</tr>
</table></td>
</tr>
<tr>
<td style="padding-bottom:17px;"><a name="stay" id="stay"></a> <table width="614" border="0" cellspacing="0" cellpadding="0">
<table width="614" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="image/box_top.gif" width="614" height="15"></td>
</tr>
<tr>
<td align="center" background="http://tour.cwg.go.kr/module/img/box_bg.gif"><b>총합계 금액은
<font color="#FF6600">
<input type="text" name="total" readonly size='10' value='0' class='textBarBottomNum' style="color:DC2929;">
<font color="DC2929">원</font></font> 입니다.</b> </td>
</tr>
<tr>
<td><img src="image/box_bottom.gif" width="614" height="15"></td>
</tr>
</table></td>
</tr>
</table>
댓글 전체
Error: chkNumeric is not defined
Source file: file:///c:/temp/test.html Line: 1
chkNumeric() 을 사용하는데 정의를 하지 않았군요.
Source file: file:///c:/temp/test.html Line: 1
chkNumeric() 을 사용하는데 정의를 하지 않았군요.
답변 너무 감사 드림니다^^