$(function(){
  $('div#custom').click(function(event) {  
    $('<div />')
      .attr('id', 'operator')
      .append(
        $('<select />')
          .attr('name', 'o')
          .append(
          $('<option />')
            .html('運営形態を選択')
            .attr('value', '')
          )
          .append(
          $('<option />')
            .html('個人')
            .attr('value', '1')
          )
          .append(
          $('<option />')
            .html('個人事業主')
            .attr('value', '2')
          )
          .append(
          $('<option />')
            .html('法人')
            .attr('value', '3')
          )
          .append(
          $('<option />')
            .html('株式会社')
            .attr('value', '4')
          )
          .append(
          $('<option />')
            .html('有限会社')
            .attr('value', '5')
          )
          .append(
          $('<option />')
            .html('面白法人カヤック')
            .attr('value', '6')
          )
          .append(
          $('<option />')
            .html('合資会社')
            .attr('value', '7')
          )
      )
    .appendTo('div#add');
    $('<div />')
      .attr('id', 'operator')
      .append(
        $('<select />')
          .attr('name', 'spmax')
          .append(
          $('<option />')
            .html('希望売却価格上限選択')
            .attr('value', '')
          )
          .append(
          $('<option />')
            .html('上限：0円')
            .attr('value', '0')
          )
          .append(
          $('<option />')
            .html('上限：10,000円')
            .attr('value', '10000')
          )
          .append(
          $('<option />')
            .html('上限：20,000円')
            .attr('value', '20000')
          )
          .append(
          $('<option />')
            .html('上限：30,000円')
            .attr('value', '30000')
          )
          .append(
          $('<option />')
            .html('上限：40,000円')
            .attr('value', '40000')
          )
          .append(
          $('<option />')
            .html('上限：50,000円')
            .attr('value', '50000')
          )
          .append(
          $('<option />')
            .html('上限：60,000円')
            .attr('value', '60000')
          )
          .append(
          $('<option />')
            .html('上限：70,000円')
            .attr('value', '70000')
          )
          .append(
          $('<option />')
            .html('上限：80,000円')
            .attr('value', '80000')
          )
          .append(
          $('<option />')
            .html('上限：90,000円')
            .attr('value', '90000')
          )
          .append(
          $('<option />')
            .html('上限：100,000円')
            .attr('value', '100000')
          )
          .append(
          $('<option />')
            .html('上限：200,000円')
            .attr('value', '200000')
          )
          .append(
          $('<option />')
            .html('上限：300,000円')
            .attr('value', '300000')
          )
          .append(
          $('<option />')
            .html('上限：400,000円')
            .attr('value', '400000')
          )
          .append(
          $('<option />')
            .html('上限：500,000円')
            .attr('value', '500000')
          )
          .append(
          $('<option />')
            .html('上限：600,000円')
            .attr('value', '600000')
          )
          .append(
          $('<option />')
            .html('上限：700,000円')
            .attr('value', '700000')
          )
          .append(
          $('<option />')
            .html('上限：800,000円')
            .attr('value', '800000')
          )
          .append(
          $('<option />')
            .html('上限：900,000円')
            .attr('value', '900000')
          )
          .append(
          $('<option />')
            .html('上限：1,000,000円')
            .attr('value', '1000000')
          )
          .append(
          $('<option />')
            .html('上限：2,000,000円')
            .attr('value', '2000000')
          )
          .append(
          $('<option />')
            .html('上限：3,000,000円')
            .attr('value', '3000000')
          )
          .append(
          $('<option />')
            .html('上限：4,000,000円')
            .attr('value', '4000000')
          )
          .append(
          $('<option />')
            .html('上限：5,000,000円')
            .attr('value', '5000000')
          )
          .append(
          $('<option />')
            .html('上限：6,000,000円')
            .attr('value', '6000000')
          )
          .append(
          $('<option />')
            .html('上限：7,000,000円')
            .attr('value', '7000000')
          )
          .append(
          $('<option />')
            .html('上限：8,000,000円')
            .attr('value', '8000000')
          )
          .append(
          $('<option />')
            .html('上限：9,000,000円')
            .attr('value', '9000000')
          )
          .append(
          $('<option />')
            .html('上限：10,000,000円')
            .attr('value', '10000000')
          )
          .append(
          $('<option />')
            .html('上限：20,000,000円')
            .attr('value', '20000000')
          )
          .append(
          $('<option />')
            .html('上限：30,000,000円')
            .attr('value', '30000000')
          )
          .append(
          $('<option />')
            .html('上限：40,000,000円')
            .attr('value', '40000000')
          )
          .append(
          $('<option />')
            .html('上限：50,000,000円')
            .attr('value', '50000000')
          )
          .append(
          $('<option />')
            .html('上限：60,000,000円')
            .attr('value', '60000000')
          )
          .append(
          $('<option />')
            .html('上限：70,000,000円')
            .attr('value', '70000000')
          )
          .append(
          $('<option />')
            .html('上限：80,000,000円')
            .attr('value', '80000000')
          )
          .append(
          $('<option />')
            .html('上限：90,000,000円')
            .attr('value', '90000000')
          )
      )
    .appendTo('div#add'); 
    $('<div />')
      .attr('id', 'operator')
      .append(
        $('<select />')
          .attr('name', 'spmin')
          .append(
          $('<option />')
            .html('希望売却価格下限選択')
            .attr('value', '')
          )
          .append(
          $('<option />')
            .html('下限：0円')
            .attr('value', '0')
          )
          .append(
          $('<option />')
            .html('下限：10,000円')
            .attr('value', '10000')
          )
          .append(
          $('<option />')
            .html('下限：20,000円')
            .attr('value', '20000')
          )
          .append(
          $('<option />')
            .html('下限：30,000円')
            .attr('value', '30000')
          )
          .append(
          $('<option />')
            .html('下限：40,000円')
            .attr('value', '40000')
          )
          .append(
          $('<option />')
            .html('下限：50,000円')
            .attr('value', '50000')
          )
          .append(
          $('<option />')
            .html('下限：60,000円')
            .attr('value', '60000')
          )
          .append(
          $('<option />')
            .html('下限：70,000円')
            .attr('value', '70000')
          )
          .append(
          $('<option />')
            .html('下限：80,000円')
            .attr('value', '80000')
          )
          .append(
          $('<option />')
            .html('下限：90,000円')
            .attr('value', '90000')
          )
          .append(
          $('<option />')
            .html('下限：100,000円')
            .attr('value', '100000')
          )
          .append(
          $('<option />')
            .html('下限：200,000円')
            .attr('value', '200000')
          )
          .append(
          $('<option />')
            .html('下限：300,000円')
            .attr('value', '300000')
          )
          .append(
          $('<option />')
            .html('下限：400,000円')
            .attr('value', '400000')
          )
          .append(
          $('<option />')
            .html('下限：500,000円')
            .attr('value', '500000')
          )
          .append(
          $('<option />')
            .html('下限：600,000円')
            .attr('value', '600000')
          )
          .append(
          $('<option />')
            .html('下限：700,000円')
            .attr('value', '700000')
          )
          .append(
          $('<option />')
            .html('下限：800,000円')
            .attr('value', '800000')
          )
          .append(
          $('<option />')
            .html('下限：900,000円')
            .attr('value', '900000')
          )
          .append(
          $('<option />')
            .html('下限：1,000,000円')
            .attr('value', '1000000')
          )
          .append(
          $('<option />')
            .html('下限：2,000,000円')
            .attr('value', '2000000')
          )
          .append(
          $('<option />')
            .html('下限：3,000,000円')
            .attr('value', '3000000')
          )
          .append(
          $('<option />')
            .html('下限：4,000,000円')
            .attr('value', '4000000')
          )
          .append(
          $('<option />')
            .html('下限：5,000,000円')
            .attr('value', '5000000')
          )
          .append(
          $('<option />')
            .html('下限：6,000,000円')
            .attr('value', '6000000')
          )
          .append(
          $('<option />')
            .html('下限：7,000,000円')
            .attr('value', '7000000')
          )
          .append(
          $('<option />')
            .html('下限：8,000,000円')
            .attr('value', '8000000')
          )
          .append(
          $('<option />')
            .html('下限：9,000,000円')
            .attr('value', '9000000')
          )
          .append(
          $('<option />')
            .html('下限：10,000,000円')
            .attr('value', '10000000')
          )
          .append(
          $('<option />')
            .html('下限：20,000,000円')
            .attr('value', '20000000')
          )
          .append(
          $('<option />')
            .html('下限：30,000,000円')
            .attr('value', '30000000')
          )
          .append(
          $('<option />')
            .html('下限：40,000,000円')
            .attr('value', '40000000')
          )
          .append(
          $('<option />')
            .html('下限：50,000,000円')
            .attr('value', '50000000')
          )
          .append(
          $('<option />')
            .html('下限：60,000,000円')
            .attr('value', '60000000')
          )
          .append(
          $('<option />')
            .html('下限：70,000,000円')
            .attr('value', '70000000')
          )
          .append(
          $('<option />')
            .html('下限：80,000,000円')
            .attr('value', '80000000')
          )
          .append(
          $('<option />')
            .html('下限：90,000,000円')
            .attr('value', '90000000')
          )
      )
    .appendTo('div#add');  
    $('<div />')
      .attr('id', 'keyword')
      .html('キーワードを入力：')
      .append(
        $('<input />')
          .attr('type', 'text')
          .attr('name', 'p')
          .attr('size', '40')
          .attr('maxlength', '40')
      )
    .appendTo('div#add');
    $('<div />')
      .attr('id', 'button')
      .append(
        $('<input />')
          .attr('type', 'submit')
          .attr('value', '　　　検索　　　')
      )
    .appendTo('div#add');
    $('div#custom').remove();
    $('div#button').remove();
  });  
});

