// ·Îµù½Ã ¹× Ä«Å×°í¸® Ç׸ñ º¯°æ½Ã È£Ãâ function funcSetClass(strClass) { var arrayClass = eval("document.searchdetail.class1"); var arrayClass1 = eval("document.searchdetail.class2"); if(strClass) { arrayClass1.options.length=1; arrayClass1.options[0] = new Option("--Áߺзù--",""); // Áߺзù arrayClass = arrayClass1; } else { arrayClass.options[0] = new Option("--´ëºÐ·ù--",""); // ´ëºÐ·ù arrayClass1.options[0] = new Option("--Áߺзù--",""); // Áߺзù strClass = '0'; } for(cnt=0,scnt=1; cnt < rs_cnt; cnt++) { if(rs_class[cnt][2]==strClass) { arrayClass.options[scnt] = new Option(rs_class[cnt][1],rs_class[cnt][0]); scnt++; } } } // °Ë»öÇ׸ñÀº ÇѰ¡Áö ÀÌ»ó function funcSearchCheck(thisform) { if(thisform.class1.value=="" && thisform.class2.value=="" && thisform.strSearch1.value=="" && thisform.strSearch2.value=="" && thisform.strSearch3.value=="" && thisform.strSearch4.value=="" && thisform.strSearch5.value=="") { alert("ÇѰ¡Áö ÀÌ»óÀÇ °Ë»öÁ¶°ÇÀ» ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù."); // ÇѰ¡Áö ÀÌ»óÀÇ °Ë»öÁ¶°ÇÀ» ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù. return false; } return true; } // »óǰȮ´ëÀ̹ÌÁö ¸®»çÀÌ¡ function resize(x, y) { var tp, lf; tp = screen.height/2 - y/2; lf = screen.width/2 - x/2; if (tp > 100) { tp -= 100; } if (x > screen.width) { x = screen.width; lf = 0; } if (y > screen.height) { y = screen.height; x = parseInt(x) + 30; tp = 0; } resizeTo(x, y); moveTo(lf, tp); } function changeImg(img) { imgwindow.document.all.imgtrg.src = img; } function formatCurrency(num) { num = num.toString().replace(/\$|\,/g,''); if(isNaN(num)) num = "0"; cents = Math.floor((num * 100 + 0.5) % 100); num = Math.floor((num * 100 + 0.5) / 100).toString(); if(cents < 10) cents = "0" + cents; for (var i = 0; i < Math.floor((num.length - (1 + i)) / 3); i++) num = num.substring(0,num.length - (4 * i + 3))+','+num.substring(num.length-(4 * i + 3)); return (num + "¿ø"); } function formatMileage(num) { num = num.toString().replace(/\$|\,/g,''); if(isNaN(num)) num = "0"; cents = Math.floor((num * 100 + 0.5) % 100); num = Math.floor((num * 100 + 0.5) / 100).toString(); if(cents < 10) cents = "0" + cents; for (var i = 0; i < Math.floor((num.length - (1 + i)) / 3); i++) num = num.substring(0,num.length - (4 * i + 3))+','+num.substring(num.length-(4 * i + 3)); return (num + "P"); } function total_price(mem, opt) { if (goods_cnt) { var mv = eval("opt.form."+mem); sv = opt.value.split("|"); mv.value = sv[1]; var hprice = tprice=0; for (i=0; i < parseInt(opt_cnt); i++) { hprice = eval("opt.form.optval"+i+".value"); h = new Number(hprice); if (isNaN(h)) continue; tprice += h; } if (document.price) { document.price.sellprice.value = formatCurrency(tprice + new Number(opt.form.hidden_price.value)); } var ppp = tprice + new Number(opt.form.hidden_price.value); if (document.mileage && mileage_type=="P") { document.mileage.mileage.value = formatMileage((ppp/100) * mileage_rate); } } }