
/*--------------------------------------------
見積もりJS
Estimateオブジェクト
2008.8
----------------------------------------------*/




// カート内の商品情報
// name: このオブジェクトのインスタンス名
// data: カート内商品データ
// total: 合計金額
var estimate = function() {};
estimate.prototype = {
    'name':'',
    'baseID':'',
    'data_0':[
        {name:'カシ', length:'2m', num:'1本', lprice:2000, hprice:3000},
        {name:'カシ', length:'2m', num:'2本', lprice:4000, hprice:6000},
        {name:'カシ', length:'2m', num:'3本', lprice:6000, hprice:9000},
        {name:'カシ', length:'2m', num:'4本', lprice:8000, hprice:12000},
        {name:'カシ', length:'2m', num:'5本', lprice:10000, hprice:15000},
        {name:'カシ', length:'3m', num:'1本', lprice:2000, hprice:4000},
        {name:'カシ', length:'3m', num:'2本', lprice:4000, hprice:8000},
        {name:'カシ', length:'3m', num:'3本', lprice:6000, hprice:12000},
        {name:'カシ', length:'3m', num:'4本', lprice:8000, hprice:16000},
        {name:'カシ', length:'3m', num:'5本', lprice:10000, hprice:20000},
        {name:'カシ', length:'4m', num:'1本', lprice:3000, hprice:6000},
        {name:'カシ', length:'4m', num:'2本', lprice:6000, hprice:12000},
        {name:'カシ', length:'4m', num:'3本', lprice:9000, hprice:18000},
        {name:'カシ', length:'4m', num:'4本', lprice:12000, hprice:24000},
        {name:'カシ', length:'4m', num:'5本', lprice:15000, hprice:30000},
        {name:'カシ', length:'5m', num:'1本', lprice:5000, hprice:8000},
        {name:'カシ', length:'5m', num:'2本', lprice:10000, hprice:16000},
        {name:'カシ', length:'5m', num:'3本', lprice:15000, hprice:24000},
        {name:'カシ', length:'5m', num:'4本', lprice:20000, hprice:32000},
        {name:'カシ', length:'5m', num:'5本', lprice:25000, hprice:40000},
        {name:'コニファ（刈込み）', length:'2m', num:'1本', lprice:1000, hprice:2000},
        {name:'コニファ（刈込み）', length:'2m', num:'2本', lprice:2000, hprice:4000},
        {name:'コニファ（刈込み）', length:'2m', num:'3本', lprice:3000, hprice:6000},
        {name:'コニファ（刈込み）', length:'2m', num:'4本', lprice:4000, hprice:8000},
        {name:'コニファ（刈込み）', length:'2m', num:'5本', lprice:5000, hprice:10000},
        {name:'コニファ（刈込み）', length:'3m', num:'1本', lprice:2000, hprice:4000},
        {name:'コニファ（刈込み）', length:'3m', num:'2本', lprice:4000, hprice:8000},
        {name:'コニファ（刈込み）', length:'3m', num:'3本', lprice:6000, hprice:12000},
        {name:'コニファ（刈込み）', length:'3m', num:'4本', lprice:8000, hprice:16000},
        {name:'コニファ（刈込み）', length:'3m', num:'5本', lprice:10000, hprice:20000},
        {name:'コニファ（刈込み）', length:'4m', num:'1本', lprice:3000, hprice:6000},
        {name:'コニファ（刈込み）', length:'4m', num:'2本', lprice:6000, hprice:12000},
        {name:'コニファ（刈込み）', length:'4m', num:'3本', lprice:9000, hprice:18000},
        {name:'コニファ（刈込み）', length:'4m', num:'4本', lprice:12000, hprice:24000},
        {name:'コニファ（刈込み）', length:'4m', num:'5本', lprice:15000, hprice:30000},
        {name:'コニファ（刈込み）', length:'5m', num:'1本', lprice:5000, hprice:10000},
        {name:'コニファ（刈込み）', length:'5m', num:'2本', lprice:10000, hprice:20000},
        {name:'コニファ（刈込み）', length:'5m', num:'3本', lprice:15000, hprice:30000},
        {name:'コニファ（刈込み）', length:'5m', num:'4本', lprice:20000, hprice:40000},
        {name:'コニファ（刈込み）', length:'5m', num:'5本', lprice:25000, hprice:50000},
        {name:'シマトネリコ', length:'2m', num:'1本', lprice:1500, hprice:2000},
        {name:'シマトネリコ', length:'2m', num:'2本', lprice:3000, hprice:4000},
        {name:'シマトネリコ', length:'2m', num:'3本', lprice:4500, hprice:6000},
        {name:'シマトネリコ', length:'2m', num:'4本', lprice:6000, hprice:8000},
        {name:'シマトネリコ', length:'2m', num:'5本', lprice:7500, hprice:10000},
        {name:'シマトネリコ', length:'3m', num:'1本', lprice:2000, hprice:4000},
        {name:'シマトネリコ', length:'3m', num:'2本', lprice:4000, hprice:8000},
        {name:'シマトネリコ', length:'3m', num:'3本', lprice:6000, hprice:12000},
        {name:'シマトネリコ', length:'3m', num:'4本', lprice:8000, hprice:16000},
        {name:'シマトネリコ', length:'3m', num:'5本', lprice:10000, hprice:20000},
        {name:'シマトネリコ', length:'4m', num:'1本', lprice:3000, hprice:5000},
        {name:'シマトネリコ', length:'4m', num:'2本', lprice:6000, hprice:10000},
        {name:'シマトネリコ', length:'4m', num:'3本', lprice:9000, hprice:15000},
        {name:'シマトネリコ', length:'4m', num:'4本', lprice:12000, hprice:20000},
        {name:'シマトネリコ', length:'4m', num:'5本', lprice:15000, hprice:25000},
        {name:'シマトネリコ', length:'5m', num:'1本', lprice:4000, hprice:8000},
        {name:'シマトネリコ', length:'5m', num:'2本', lprice:8000, hprice:16000},
        {name:'シマトネリコ', length:'5m', num:'3本', lprice:12000, hprice:24000},
        {name:'シマトネリコ', length:'5m', num:'4本', lprice:16000, hprice:32000},
        {name:'シマトネリコ', length:'5m', num:'5本', lprice:20000, hprice:40000},
        {name:'キンモクセイ', length:'2m', num:'1本', lprice:1500, hprice:2000},
        {name:'キンモクセイ', length:'2m', num:'2本', lprice:3000, hprice:4000},
        {name:'キンモクセイ', length:'2m', num:'3本', lprice:4500, hprice:6000},
        {name:'キンモクセイ', length:'2m', num:'4本', lprice:6000, hprice:8000},
        {name:'キンモクセイ', length:'2m', num:'5本', lprice:7500, hprice:10000},
        {name:'キンモクセイ', length:'3m', num:'1本', lprice:2500, hprice:4000},
        {name:'キンモクセイ', length:'3m', num:'2本', lprice:5000, hprice:8000},
        {name:'キンモクセイ', length:'3m', num:'3本', lprice:7500, hprice:12000},
        {name:'キンモクセイ', length:'3m', num:'4本', lprice:10000, hprice:16000},
        {name:'キンモクセイ', length:'3m', num:'5本', lprice:12500, hprice:20000},
        {name:'キンモクセイ', length:'4m', num:'1本', lprice:3000, hprice:8000},
        {name:'キンモクセイ', length:'4m', num:'2本', lprice:6000, hprice:16000},
        {name:'キンモクセイ', length:'4m', num:'3本', lprice:9000, hprice:24000},
        {name:'キンモクセイ', length:'4m', num:'4本', lprice:12000, hprice:32000},
        {name:'キンモクセイ', length:'4m', num:'5本', lprice:15000, hprice:40000},
        {name:'キンモクセイ', length:'5m', num:'1本', lprice:4000, hprice:9000},
        {name:'キンモクセイ', length:'5m', num:'2本', lprice:8000, hprice:18000},
        {name:'キンモクセイ', length:'5m', num:'3本', lprice:12000, hprice:27000},
        {name:'キンモクセイ', length:'5m', num:'4本', lprice:16000, hprice:36000},
        {name:'キンモクセイ', length:'5m', num:'5本', lprice:20000, hprice:45000},		
        {name:'ツバキ・サザンカ', length:'2m', num:'1本', lprice:1000, hprice:2000},
        {name:'ツバキ・サザンカ', length:'2m', num:'2本', lprice:2000, hprice:4000},
        {name:'ツバキ・サザンカ', length:'2m', num:'3本', lprice:3000, hprice:6000},
        {name:'ツバキ・サザンカ', length:'2m', num:'4本', lprice:4000, hprice:8000},
        {name:'ツバキ・サザンカ', length:'2m', num:'5本', lprice:5000, hprice:10000},
        {name:'ツバキ・サザンカ', length:'3m', num:'1本', lprice:2000, hprice:3000},
        {name:'ツバキ・サザンカ', length:'3m', num:'2本', lprice:4000, hprice:6000},
        {name:'ツバキ・サザンカ', length:'3m', num:'3本', lprice:6000, hprice:9000},
        {name:'ツバキ・サザンカ', length:'3m', num:'4本', lprice:8000, hprice:12000},
        {name:'ツバキ・サザンカ', length:'3m', num:'5本', lprice:10000, hprice:15000},
        {name:'ツバキ・サザンカ', length:'4m', num:'1本', lprice:3000, hprice:6000},
        {name:'ツバキ・サザンカ', length:'4m', num:'2本', lprice:6000, hprice:12000},
        {name:'ツバキ・サザンカ', length:'4m', num:'3本', lprice:9000, hprice:18000},
        {name:'ツバキ・サザンカ', length:'4m', num:'4本', lprice:12000, hprice:24000},
        {name:'ツバキ・サザンカ', length:'4m', num:'5本', lprice:15000, hprice:30000},
        {name:'ツバキ・サザンカ', length:'5m', num:'1本', lprice:4000, hprice:7000},
        {name:'ツバキ・サザンカ', length:'5m', num:'2本', lprice:8000, hprice:14000},
        {name:'ツバキ・サザンカ', length:'5m', num:'3本', lprice:12000, hprice:21000},
        {name:'ツバキ・サザンカ', length:'5m', num:'4本', lprice:16000, hprice:28000},
        {name:'ツバキ・サザンカ', length:'5m', num:'5本', lprice:20000, hprice:35000},
        {name:'マキ', length:'2m', num:'1本', lprice:2000, hprice:4000},
        {name:'マキ', length:'2m', num:'2本', lprice:4000, hprice:8000},
        {name:'マキ', length:'2m', num:'3本', lprice:6000, hprice:12000},
        {name:'マキ', length:'2m', num:'4本', lprice:8000, hprice:16000},
        {name:'マキ', length:'2m', num:'5本', lprice:10000, hprice:20000},
        {name:'マキ', length:'3m', num:'1本', lprice:3000, hprice:8000},
        {name:'マキ', length:'3m', num:'2本', lprice:6000, hprice:16000},
        {name:'マキ', length:'3m', num:'3本', lprice:9000, hprice:24000},
        {name:'マキ', length:'3m', num:'4本', lprice:12000, hprice:32000},
        {name:'マキ', length:'3m', num:'5本', lprice:15000, hprice:40000},
        {name:'マキ', length:'4m', num:'1本', lprice:4000, hprice:10000},
        {name:'マキ', length:'4m', num:'2本', lprice:8000, hprice:20000},
        {name:'マキ', length:'4m', num:'3本', lprice:12000, hprice:30000},
        {name:'マキ', length:'4m', num:'4本', lprice:16000, hprice:40000},
        {name:'マキ', length:'4m', num:'5本', lprice:20000, hprice:50000},
        {name:'マキ', length:'5m', num:'1本', lprice:5000, hprice:20000},
        {name:'マキ', length:'5m', num:'2本', lprice:10000, hprice:40000},
        {name:'マキ', length:'5m', num:'3本', lprice:15000, hprice:60000},
        {name:'マキ', length:'5m', num:'4本', lprice:20000, hprice:80000},
        {name:'マキ', length:'5m', num:'5本', lprice:25000, hprice:100000},
        {name:'マツ', length:'2m', num:'1本', lprice:4000, hprice:8000},
        {name:'マツ', length:'2m', num:'2本', lprice:8000, hprice:16000},
        {name:'マツ', length:'2m', num:'3本', lprice:12000, hprice:24000},
        {name:'マツ', length:'2m', num:'4本', lprice:16000, hprice:32000},
        {name:'マツ', length:'2m', num:'5本', lprice:20000, hprice:40000},
        {name:'マツ', length:'3m', num:'1本', lprice:5000, hprice:12000},
        {name:'マツ', length:'3m', num:'2本', lprice:10000, hprice:24000},
        {name:'マツ', length:'3m', num:'3本', lprice:15000, hprice:36000},
        {name:'マツ', length:'3m', num:'4本', lprice:20000, hprice:48000},
        {name:'マツ', length:'3m', num:'5本', lprice:25000, hprice:60000},
        {name:'マツ', length:'4m', num:'1本', lprice:8000, hprice:20000},
        {name:'マツ', length:'4m', num:'2本', lprice:16000, hprice:40000},
        {name:'マツ', length:'4m', num:'3本', lprice:24000, hprice:60000},
        {name:'マツ', length:'4m', num:'4本', lprice:32000, hprice:80000},
        {name:'マツ', length:'4m', num:'5本', lprice:40000, hprice:100000},
        {name:'マツ', length:'5m', num:'1本', lprice:12000, hprice:30000},
        {name:'マツ', length:'5m', num:'2本', lprice:24000, hprice:60000},
        {name:'マツ', length:'5m', num:'3本', lprice:36000, hprice:90000},
        {name:'マツ', length:'5m', num:'4本', lprice:48000, hprice:120000},
        {name:'マツ', length:'5m', num:'5本', lprice:60000, hprice:150000},
        {name:'ハナミズキ・ヤマボウシ', length:'2m', num:'1本', lprice:1000, hprice:2000},
        {name:'ハナミズキ・ヤマボウシ', length:'2m', num:'2本', lprice:2000, hprice:4000},
        {name:'ハナミズキ・ヤマボウシ', length:'2m', num:'3本', lprice:3000, hprice:6000},
        {name:'ハナミズキ・ヤマボウシ', length:'2m', num:'4本', lprice:4000, hprice:8000},
        {name:'ハナミズキ・ヤマボウシ', length:'2m', num:'5本', lprice:5000, hprice:10000},
        {name:'ハナミズキ・ヤマボウシ', length:'3m', num:'1本', lprice:2000, hprice:3500},
        {name:'ハナミズキ・ヤマボウシ', length:'3m', num:'2本', lprice:4000, hprice:7000},
        {name:'ハナミズキ・ヤマボウシ', length:'3m', num:'3本', lprice:6000, hprice:10500},
        {name:'ハナミズキ・ヤマボウシ', length:'3m', num:'4本', lprice:8000, hprice:14000},
        {name:'ハナミズキ・ヤマボウシ', length:'3m', num:'5本', lprice:10000, hprice:17500},
        {name:'ハナミズキ・ヤマボウシ', length:'4m', num:'1本', lprice:3000, hprice:5000},
        {name:'ハナミズキ・ヤマボウシ', length:'4m', num:'2本', lprice:6000, hprice:10000},
        {name:'ハナミズキ・ヤマボウシ', length:'4m', num:'3本', lprice:9000, hprice:15000},
        {name:'ハナミズキ・ヤマボウシ', length:'4m', num:'4本', lprice:12000, hprice:20000},
        {name:'ハナミズキ・ヤマボウシ', length:'4m', num:'5本', lprice:15000, hprice:25000},
        {name:'ハナミズキ・ヤマボウシ', length:'5m', num:'1本', lprice:4000, hprice:7000},
        {name:'ハナミズキ・ヤマボウシ', length:'5m', num:'2本', lprice:8000, hprice:14000},
        {name:'ハナミズキ・ヤマボウシ', length:'5m', num:'3本', lprice:12000, hprice:21000},
        {name:'ハナミズキ・ヤマボウシ', length:'5m', num:'4本', lprice:16000, hprice:28000},
        {name:'ハナミズキ・ヤマボウシ', length:'5m', num:'5本', lprice:20000, hprice:35000},
        {name:'モミジ・カエデ', length:'2m', num:'1本', lprice:1500, hprice:2500},
        {name:'モミジ・カエデ', length:'2m', num:'2本', lprice:3000, hprice:5000},
        {name:'モミジ・カエデ', length:'2m', num:'3本', lprice:4500, hprice:7500},
        {name:'モミジ・カエデ', length:'2m', num:'4本', lprice:6000, hprice:10000},
        {name:'モミジ・カエデ', length:'2m', num:'5本', lprice:7500, hprice:12500},
        {name:'モミジ・カエデ', length:'3m', num:'1本', lprice:2500, hprice:4500},
        {name:'モミジ・カエデ', length:'3m', num:'2本', lprice:5000, hprice:9000},
        {name:'モミジ・カエデ', length:'3m', num:'3本', lprice:7500, hprice:13500},
        {name:'モミジ・カエデ', length:'3m', num:'4本', lprice:10000, hprice:18000},
        {name:'モミジ・カエデ', length:'3m', num:'5本', lprice:12500, hprice:22500},
        {name:'モミジ・カエデ', length:'4m', num:'1本', lprice:3500, hprice:6500},
        {name:'モミジ・カエデ', length:'4m', num:'2本', lprice:7000, hprice:13000},
        {name:'モミジ・カエデ', length:'4m', num:'3本', lprice:10500, hprice:19500},
        {name:'モミジ・カエデ', length:'4m', num:'4本', lprice:14000, hprice:26000},
        {name:'モミジ・カエデ', length:'4m', num:'5本', lprice:17500, hprice:32500},
        {name:'モミジ・カエデ', length:'5m', num:'1本', lprice:7000, hprice:9000},
        {name:'モミジ・カエデ', length:'5m', num:'2本', lprice:14000, hprice:18000},
        {name:'モミジ・カエデ', length:'5m', num:'3本', lprice:21000, hprice:27000},
        {name:'モミジ・カエデ', length:'5m', num:'4本', lprice:28000, hprice:36000},
        {name:'モミジ・カエデ', length:'5m', num:'5本', lprice:35000, hprice:45000},
        {name:'ケヤキ', length:'2m', num:'1本', lprice:500, hprice:1000},
        {name:'ケヤキ', length:'2m', num:'2本', lprice:1000, hprice:2000},
        {name:'ケヤキ', length:'2m', num:'3本', lprice:1500, hprice:3000},
        {name:'ケヤキ', length:'2m', num:'4本', lprice:2000, hprice:4000},
        {name:'ケヤキ', length:'2m', num:'5本', lprice:2500, hprice:5000},
        {name:'ケヤキ', length:'3m', num:'1本', lprice:2000, hprice:3000},
        {name:'ケヤキ', length:'3m', num:'2本', lprice:4000, hprice:6000},
        {name:'ケヤキ', length:'3m', num:'3本', lprice:6000, hprice:9000},
        {name:'ケヤキ', length:'3m', num:'4本', lprice:8000, hprice:12000},
        {name:'ケヤキ', length:'3m', num:'5本', lprice:10000, hprice:15000},
        {name:'ケヤキ', length:'4m', num:'1本', lprice:3000, hprice:6000},
        {name:'ケヤキ', length:'4m', num:'2本', lprice:6000, hprice:12000},
        {name:'ケヤキ', length:'4m', num:'3本', lprice:9000, hprice:18000},
        {name:'ケヤキ', length:'4m', num:'4本', lprice:12000, hprice:24000},
        {name:'ケヤキ', length:'4m', num:'5本', lprice:15000, hprice:30000},
        {name:'ケヤキ', length:'5m', num:'1本', lprice:5000, hprice:10000},
        {name:'ケヤキ', length:'5m', num:'2本', lprice:10000, hprice:20000},
        {name:'ケヤキ', length:'5m', num:'3本', lprice:15000, hprice:30000},
        {name:'ケヤキ', length:'5m', num:'4本', lprice:20000, hprice:40000},
        {name:'ケヤキ', length:'5m', num:'5本', lprice:25000, hprice:50000}
    ],
    'data_1':[
        {name:'太さ10cm', length:'4m〜5m', num:'1本', lprice:3000, hprice:5000},
        {name:'太さ10cm', length:'4m〜5m', num:'2本', lprice:6000, hprice:10000},
        {name:'太さ10cm', length:'4m〜5m', num:'3本', lprice:9000, hprice:15000},
        {name:'太さ10cm', length:'4m〜5m', num:'4本', lprice:12000, hprice:20000},
        {name:'太さ10cm', length:'4m〜5m', num:'5本', lprice:15000, hprice:25000},
        {name:'太さ10cm', length:'6m〜8m', num:'1本', lprice:6000, hprice:8000},
        {name:'太さ10cm', length:'6m〜8m', num:'2本', lprice:12000, hprice:16000},
        {name:'太さ10cm', length:'6m〜8m', num:'3本', lprice:18000, hprice:24000},
        {name:'太さ10cm', length:'6m〜8m', num:'4本', lprice:24000, hprice:32000},
        {name:'太さ10cm', length:'6m〜8m', num:'5本', lprice:30000, hprice:40000},
        {name:'太さ20cm', length:'4m〜5m', num:'1本', lprice:4000, hprice:8000},
        {name:'太さ20cm', length:'4m〜5m', num:'2本', lprice:8000, hprice:16000},
        {name:'太さ20cm', length:'4m〜5m', num:'3本', lprice:12000, hprice:24000},
        {name:'太さ20cm', length:'4m〜5m', num:'4本', lprice:16000, hprice:32000},
        {name:'太さ20cm', length:'4m〜5m', num:'5本', lprice:20000, hprice:40000},
        {name:'太さ20cm', length:'6m〜8m', num:'1本', lprice:7000, hprice:12000},
        {name:'太さ20cm', length:'6m〜8m', num:'2本', lprice:14000, hprice:24000},
        {name:'太さ20cm', length:'6m〜8m', num:'3本', lprice:21000, hprice:36000},
        {name:'太さ20cm', length:'6m〜8m', num:'4本', lprice:28000, hprice:48000},
        {name:'太さ20cm', length:'6m〜8m', num:'5本', lprice:35000, hprice:60000},
        {name:'太さ30cm', length:'4m〜5m', num:'1本', lprice:5000, hprice:10000},
        {name:'太さ30cm', length:'4m〜5m', num:'2本', lprice:10000, hprice:20000},
        {name:'太さ30cm', length:'4m〜5m', num:'3本', lprice:15000, hprice:30000},
        {name:'太さ30cm', length:'4m〜5m', num:'4本', lprice:20000, hprice:40000},
        {name:'太さ30cm', length:'4m〜5m', num:'5本', lprice:25000, hprice:50000},
        {name:'太さ30cm', length:'6m〜8m', num:'1本', lprice:8000, hprice:15000},
        {name:'太さ30cm', length:'6m〜8m', num:'2本', lprice:16000, hprice:30000},
        {name:'太さ30cm', length:'6m〜8m', num:'3本', lprice:24000, hprice:45000},
        {name:'太さ30cm', length:'6m〜8m', num:'4本', lprice:32000, hprice:60000},
        {name:'太さ30cm', length:'6m〜8m', num:'5本', lprice:40000, hprice:75000},
        {name:'太さ40cm', length:'4m〜5m', num:'1本', lprice:6000, hprice:12000},
        {name:'太さ40cm', length:'4m〜5m', num:'2本', lprice:12000, hprice:24000},
        {name:'太さ40cm', length:'4m〜5m', num:'3本', lprice:18000, hprice:36000},
        {name:'太さ40cm', length:'4m〜5m', num:'4本', lprice:24000, hprice:48000},
        {name:'太さ40cm', length:'4m〜5m', num:'5本', lprice:30000, hprice:60000},
        {name:'太さ40cm', length:'6m〜8m', num:'1本', lprice:9000, hprice:20000},
        {name:'太さ40cm', length:'6m〜8m', num:'2本', lprice:18000, hprice:40000},
        {name:'太さ40cm', length:'6m〜8m', num:'3本', lprice:27000, hprice:60000},
        {name:'太さ40cm', length:'6m〜8m', num:'4本', lprice:36000, hprice:80000},
        {name:'太さ40cm', length:'6m〜8m', num:'5本', lprice:45000, hprice:10000},
        {name:'太さ50cm', length:'4m〜5m', num:'1本', lprice:7000, hprice:15000},
        {name:'太さ50cm', length:'4m〜5m', num:'2本', lprice:14000, hprice:30000},
        {name:'太さ50cm', length:'4m〜5m', num:'3本', lprice:21000, hprice:45000},
        {name:'太さ50cm', length:'4m〜5m', num:'4本', lprice:28000, hprice:60000},
        {name:'太さ50cm', length:'4m〜5m', num:'5本', lprice:35000, hprice:75000},
        {name:'太さ50cm', length:'6m〜8m', num:'1本', lprice:10000, hprice:30000},
        {name:'太さ50cm', length:'6m〜8m', num:'2本', lprice:20000, hprice:60000},
        {name:'太さ50cm', length:'6m〜8m', num:'3本', lprice:30000, hprice:90000},
        {name:'太さ50cm', length:'6m〜8m', num:'4本', lprice:40000, hprice:120000},
        {name:'太さ50cm', length:'6m〜8m', num:'5本', lprice:50000, hprice:150000}
    ],
    'data_2':[
        {name:'〜15平方m', price:3000},
        {name:'〜50平方m', price:8000},
        {name:'〜100平方m', price:10000},
        {name:'〜200平方m', price:20000}
    ],
    'data_3':[
        {name:'1m', price:500},
        {name:'5m', price:2500},
        {name:'30m', price:12000},
        {name:'50m', price:20000},
        {name:'100m', price:35000}
    ],
    'data_4':[
        {name:'1平方m', price:800},
        {name:'5平方m', price:3500},
        {name:'15平方m', price:7500},
        {name:'30平方m', price:12000}
    ],
    'data_5':[
        {name:'5坪', price:3000},
        {name:'10坪', price:6000},
        {name:'30坪', price:12000},
        {name:'100坪', price:30000}
    ],
    's_data_0':[
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'}
    ],
    's_data_1':[
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'},
        {id:'NULL'}
    ],
    's_data_2':[
        {id:'NULL'}
    ],
    's_data_3':[
        {id:'NULL'}
    ],
    's_data_4':[
        {id:'NULL'}
    ],
    's_data_5':[
        {id:'NULL'}
    ],
    'total':0,
    'ltotal':0,
    'htotal':0,
    'setTotal':function() {
        this.setLTotal();
        this.setHTotal();
        if(this.ltotal != this.htotal) {
            this.total = formatMoney(this.ltotal,'ja-roman')+'〜'+formatMoney(this.htotal,'ja-roman');
        } else {
            this.total = formatMoney(this.ltotal,'ja-roman');
        }
    },
    'chgTotal':function() {
        this.setTotal();
        $('totalYen').innerHTML = this.total;
        $('IPTTotalYen').setAttribute('value',this.total);
    },
    'setLTotal':function() {
        var ltotal = 0;
        for(var i=0; i<this.s_data_0.length; i++) {
            if(this.s_data_0[i].id != 'NULL') {
                ltotal += this.data_0[this.s_data_0[i].id].lprice;
            }
        }
        for(var i=0; i<this.s_data_1.length; i++) {
            if(this.s_data_1[i].id != 'NULL') {
                ltotal += this.data_1[this.s_data_1[i].id].lprice;
            }
        }
        if(this.s_data_2[0].id != 'NULL') {
            ltotal += this.data_2[this.s_data_2[0].id].price;
        }
        if(this.s_data_3[0].id != 'NULL') {
            ltotal += this.data_3[this.s_data_3[0].id].price;
        }
        if(this.s_data_4[0].id != 'NULL') {
            ltotal += this.data_4[this.s_data_4[0].id].price;
        }
        if(this.s_data_5[0].id != 'NULL') {
            ltotal += this.data_5[this.s_data_5[0].id].price;
        }
        this.ltotal = ltotal;
    },
    'setHTotal':function() {
        var htotal = 0;
        for(var i=0; i<this.s_data_0.length; i++) {
            if(this.s_data_0[i].id != 'NULL') {
                htotal += this.data_0[this.s_data_0[i].id].hprice;
            }
        }
        for(var i=0; i<this.s_data_1.length; i++) {
            if(this.s_data_1[i].id != 'NULL') {
                htotal += this.data_1[this.s_data_1[i].id].hprice;
            }
        }
        if(this.s_data_2[0].id !='NULL') {
            htotal += this.data_2[this.s_data_2[0].id].price;
        }
        if(this.s_data_3[0].id != 'NULL') {
            htotal += this.data_3[this.s_data_3[0].id].price;
        }
        if(this.s_data_4[0].id != 'NULL') {
            htotal += this.data_4[this.s_data_4[0].id].price;
        }
        if(this.s_data_5[0].id != 'NULL') {
            htotal += this.data_5[this.s_data_5[0].id].price;
        }
        this.htotal = htotal;
    },
    'addService':function(a,b,c) {
        $('ESTError').style.display = 'none';
        var x;
        var LI;
        var IPT;
        switch(a) {
            case 0:
                x = Math.floor(b/5);
                this.s_data_0[x].id = b;
                if(!$('ESTTotalListLi_0['+x+']')) {
                    LI = document.createElement('li');
                    LI.setAttribute('id','ESTTotalListLi_0['+x+']');
                    $('ESTTotalListUL_0').appendChild(LI);
                    IPT = document.createElement('input');
                    IPT.setAttribute('id','IPT_ESTTotalListLi_0['+x+']');
                    IPT.setAttribute('type','hidden');
                    IPT.setAttribute('name','data[0]['+x+']');
                    $('ESTTotalListUL_0').appendChild(IPT);
                }
                $('ESTTotalListDT_0').style.display = 'block';
                $('ESTTotalListLi_0['+x+']').innerHTML = '<div><strong>'+this.data_0[b].name+'</strong><span>'+this.data_0[b].length+'</span>×<span>'+this.data_0[b].num+'</span>=<em>'+formatMoney(this.data_0[b].lprice,'ja-roman')+'〜'+formatMoney(this.data_0[b].hprice,'ja-roman')+'</em></div><p><input name="delete" type="button" value="削除" onclick="ESTResetList(\''+c+'\',\'a\',\'ESTTotalListLi_0['+x+']\',0,'+x+',0);" /></p>';
                $('IPT_ESTTotalListLi_0['+x+']').setAttribute('value',this.data_0[b].name+'::'+this.data_0[b].length+'×'+this.data_0[b].num+'='+formatMoney(this.data_0[b].lprice,'ja-roman')+'〜'+formatMoney(this.data_0[b].hprice,'ja-roman'));
            break;
            case 1:
                x = Math.floor(b/5);
                this.s_data_1[x].id = b;
                if(!$('ESTTotalListLi_1['+x+']')) {
                    LI = document.createElement('li');
                    LI.setAttribute('id','ESTTotalListLi_1['+x+']');
                    $('ESTTotalListUL_1').appendChild(LI);
                    IPT = document.createElement('input');
                    IPT.setAttribute('id','IPT_ESTTotalListLi_1['+x+']');
                    IPT.setAttribute('type','hidden');
                    IPT.setAttribute('name','data[1]['+x+']');
                    $('ESTTotalListUL_1').appendChild(IPT);
                }
                $('ESTTotalListDT_1').style.display = 'block';
                $('ESTTotalListLi_1['+x+']').innerHTML = '<div><strong>'+this.data_1[b].name+'</strong><span>'+this.data_1[b].length+'</span>×<span>'+this.data_1[b].num+'</span>=<em>'+formatMoney(this.data_1[b].lprice,'ja-roman')+'〜'+formatMoney(this.data_1[b].hprice,'ja-roman')+'</em></div><p><input name="delete" type="button" value="削除" onclick="ESTResetList(\''+c+'\',\'b\',\'ESTTotalListLi_1['+x+']\',1,'+x+',0);" /></p>';
                $('IPT_ESTTotalListLi_1['+x+']').setAttribute('value',this.data_1[b].name+'::'+this.data_1[b].length+'×'+this.data_1[b].num+'='+formatMoney(this.data_1[b].lprice,'ja-roman')+'〜'+formatMoney(this.data_1[b].hprice,'ja-roman'));
            break;
            case 2:
                this.s_data_2[0].id = b;
                if(!$('ESTTotalListLi_2')) {
                    LI = document.createElement('li');
                    LI.setAttribute('id','ESTTotalListLi_2');
                    $('ESTTotalListUL_2').appendChild(LI);
                    IPT = document.createElement('input');
                    IPT.setAttribute('id','IPT_ESTTotalListLi_2');
                    IPT.setAttribute('type','hidden');
                    IPT.setAttribute('name','data[2]');
                    $('ESTTotalListUL_2').appendChild(IPT);
                }
                $('ESTTotalListDT_2').style.display = 'block';
                $('ESTTotalListLi_2').innerHTML = '<div><strong>'+this.data_2[b].name+'</strong><em>'+formatMoney(this.data_2[b].price,'ja-roman')+'</em></div><p><input name="delete" type="button" value="削除" onclick="ESTResetDel(\'C_Tree01_02\',\'ESTTotalListLi_2\',2,0);" /></p>';
                $('IPT_ESTTotalListLi_2').setAttribute('value',this.data_2[b].name+'::'+formatMoney(this.data_2[b].price,'ja-roman'));
            break;
            case 3:
                this.s_data_3[0].id = b;
                if(!$('ESTTotalListLi_3')) {
                    LI = document.createElement('li');
                    LI.setAttribute('id','ESTTotalListLi_3');
                    $('ESTTotalListUL_3').appendChild(LI);
                    IPT = document.createElement('input');
                    IPT.setAttribute('id','IPT_ESTTotalListLi_3');
                    IPT.setAttribute('type','hidden');
                    IPT.setAttribute('name','data[3]');
                    $('ESTTotalListUL_3').appendChild(IPT);
                }
                $('ESTTotalListDT_3').style.display = 'block';
                $('ESTTotalListLi_3').innerHTML = '<div><strong>'+this.data_3[b].name+'</strong><em>'+formatMoney(this.data_3[b].price,'ja-roman')+'</em></div><p><input name="delete" type="button" value="削除" onclick="ESTResetDel(\'D_Tree01_02\',\'ESTTotalListLi_3\',3,0);" /></p>';
                $('IPT_ESTTotalListLi_3').setAttribute('value',this.data_3[b].name+'::'+formatMoney(this.data_3[b].price,'ja-roman'));
            break;
            case 4:
                this.s_data_4[0].id = b;
                if(!$('ESTTotalListLi_4')) {
                    LI = document.createElement('li');
                    LI.setAttribute('id','ESTTotalListLi_4');
                    $('ESTTotalListUL_4').appendChild(LI);
                    IPT = document.createElement('input');
                    IPT.setAttribute('id','IPT_ESTTotalListLi_4');
                    IPT.setAttribute('type','hidden');
                    IPT.setAttribute('name','data[4]');
                    $('ESTTotalListUL_4').appendChild(IPT);
                }
                $('ESTTotalListDT_4').style.display = 'block';
                $('ESTTotalListLi_4').innerHTML = '<div><strong>'+this.data_4[b].name+'</strong><em>'+formatMoney(this.data_4[b].price,'ja-roman')+'</em></div><p><input name="delete" type="button" value="削除" onclick="ESTResetDel(\'E_Tree01_02\',\'ESTTotalListLi_4\',4,0);" /></p>';
                $('IPT_ESTTotalListLi_4').setAttribute('value',this.data_4[b].name+'::'+formatMoney(this.data_4[b].price,'ja-roman'));
            break;
            case 5:
                this.s_data_5[0].id = b;
                if(!$('ESTTotalListLi_5')) {
                    LI = document.createElement('li');
                    LI.setAttribute('id','ESTTotalListLi_5');
                    $('ESTTotalListUL_5').appendChild(LI);
                    IPT = document.createElement('input');
                    IPT.setAttribute('id','IPT_ESTTotalListLi_5');
                    IPT.setAttribute('type','hidden');
                    IPT.setAttribute('name','data[5]');
                    $('ESTTotalListUL_5').appendChild(IPT);
                }
                $('ESTTotalListDT_5').style.display = 'block';
                $('ESTTotalListLi_5').innerHTML = '<div><strong>'+this.data_5[b].name+'</strong><em>'+formatMoney(this.data_5[b].price,'ja-roman')+'</em></div><p><input name="delete" type="button" value="削除" onclick="ESTResetDel(\'F_Tree01_02\',\'ESTTotalListLi_5\',5,0);" /></p>';
                $('IPT_ESTTotalListLi_5').setAttribute('value',this.data_5[b].name+'::'+formatMoney(this.data_5[b].price,'ja-roman'));
            break;
        }
        this.chgTotal();
    },
    'delService':function(a,b,c) {
        if($(a)) {
            Element.remove(a);
        }
        if($('IPT_'+a)) {
            Element.remove('IPT_'+a);
        }
        switch(b) {
            case 0:
                var x = false;
                this.s_data_0[c].id = 'NULL';
                for(var i=0; i<this.s_data_0.length; i++) {
                    if(this.s_data_0[i].id != 'NULL') {
                        x = true;
                    }
                }
                if(!x) {
                    $('ESTTotalListDT_0').style.display = 'none';
                }
            break;
            case 1:
                var x = false;
                this.s_data_1[c].id = 'NULL';
                for(var i=0; i<this.s_data_1.length; i++) {
                    if(this.s_data_1[i].id != 'NULL') {
                        x = true;
                    }
                }
                if(!x) {
                    $('ESTTotalListDT_1').style.display = 'none';
                }
            break;
            case 2:
                this.s_data_2[c].id = 'NULL';
                $('ESTTotalListDT_2').style.display = 'none';
            break;
            case 3:
                this.s_data_3[c].id = 'NULL';
                $('ESTTotalListDT_3').style.display = 'none';
            break;
            case 4:
                this.s_data_4[c].id = 'NULL';
                $('ESTTotalListDT_4').style.display = 'none';
            break;
            case 5:
                this.s_data_5[c].id = 'NULL';
                $('ESTTotalListDT_5').style.display = 'none';
            break;
        }
        this.chgTotal();
        if(this.total == '&yen;0') {
            $('ESTError').style.display = 'block';
        }
    },
    'load':function() {
        var P_ERR;
        var DL;
        var DTs = new Array();
        var DDs = new Array();
        var ULs = new Array();
        var P_TOTAL;
        var P_SUBMIT;
        
        this.setTotal();
        
        P_ERR = document.createElement('p');
        P_ERR.setAttribute('id','ESTError');
        P_ERR.innerHTML = '現在何も選択されていません。上記のパネルから選択してください。';
        $(this.baseID).appendChild(P_ERR);
        
        DL = document.createElement('dl');
        DL.setAttribute('id','ESTTotalListDL');
        $(this.baseID).appendChild(DL);
        
        DTs[0] = document.createElement('dt');
        DTs[0].innerHTML = '立ち木のお手入れ';
        DTs[1] = document.createElement('dt');
        DTs[1].innerHTML = '立ち木の伐採';
        DTs[2] = document.createElement('dt');
        DTs[2].innerHTML = '立ち木の消毒';
        DTs[3] = document.createElement('dt');
        DTs[3].innerHTML = '生け垣の刈り込み';
        DTs[4] = document.createElement('dt');
        DTs[4].innerHTML = '植え込みの刈り込み';
        DTs[5] = document.createElement('dt');
        DTs[5].innerHTML = '草刈り・芝刈り';
        for (var i=0; i<DTs.length; i++) {
            DTs[i].style.display = 'none';
            DTs[i].setAttribute('id','ESTTotalListDT_'+i);
            $('ESTTotalListDL').appendChild(DTs[i]);
            DDs[i] = document.createElement('dd');
            DDs[i].setAttribute('id','ESTTotalListDD_'+i);
            $('ESTTotalListDL').appendChild(DDs[i]);
            ULs[i] = document.createElement('ul');
            ULs[i].setAttribute('id','ESTTotalListUL_'+i);
            $('ESTTotalListDD_'+i).appendChild(ULs[i]);
        }

        P_TOTAL = document.createElement('p');
        P_TOTAL.setAttribute('id','ESTTotal');
        P_TOTAL.innerHTML = '合計お見積もり額（税別）<strong id="totalYen">'+this.total+'</strong><input type="hidden" id="IPTTotalYen" name="total" value="'+this.total+'" />';
        $(this.baseID).appendChild(P_TOTAL);
        
        P_SUBMIT = document.createElement('p');
        P_SUBMIT.setAttribute('id','ESTTotalCont');
        P_SUBMIT.innerHTML = '<a href="javascript:document.ESTForm.submit();"><img src="/cmn/img/service/estimate/btnTotaContact_off.gif" alt="お見積もり結果でお問い合わせ" /></a>';
        $(this.baseID).appendChild(P_SUBMIT);
    }
}
