function itemDisp() {
  state.innerHTML = "処理中です・・・<br />\n";

  var url = "../lib/ItemSearch.php";

  var paramList = "keyword=" + encodeURIComponent("軽量 MTB");
  paramList += "&hits=3";
  paramList += "&page=1";
  paramList += "&sort=" + encodeURIComponent("+itemPrice");
  paramList += "&imageFlag=1";


  new Ajax.Request(url,
    {
      method: 'get',
      onSuccess: getData,
      onFailure: showErrMsg,
      parameters: paramList
  });

  function getData(data){
    var response = data.responseXML.getElementsByTagName('Response');
    var status = response[0].getElementsByTagName('Status')[0].firstChild.nodeValue;

    if(!(status == "Success")){
      state.innerHTML = "データが見つかりませんでした。";
      return;
    }

    var item = response[0].getElementsByTagName('Item');
    var tmpHtml = "";

    for(i = 0; i < item.length; i++){
      //値を取得
      var itemName = item[i].getElementsByTagName('itemName');
      var itemNameValue = itemName[0].firstChild.nodeValue;

      var itemPrice = item[i].getElementsByTagName('itemPrice');
      var itemPriceValue = itemPrice[0].firstChild.nodeValue;

      var affiliateUrl = item[i].getElementsByTagName('affiliateUrl');
      var affiliateUrlValue = affiliateUrl[0].firstChild.nodeValue;

      var mediumImageUrl = item[i].getElementsByTagName('mediumImageUrl');
      var mediumImageUrlValue = mediumImageUrl[0].firstChild.nodeValue;

      var itemCaption = item[i].getElementsByTagName('itemCaption');
      var itemCaptionValue = itemCaption[0].firstChild.nodeValue;

      //HTML作成
      tmpHtml += "<p>";
      //      tmpHtml += itemNameValue + "<br />";

      tmpHtml += "<a href=\"";
      tmpHtml += affiliateUrlValue
      tmpHtml += "\">" + itemNameValue + "</a> ";
      tmpHtml += itemPriceValue + "円<p />";
      tmpHtml += "<a href=\"";
      tmpHtml += affiliateUrlValue
      tmpHtml += "\">" + "<img src=\"" + mediumImageUrlValue + "\"></img>" + "</a><p />";
      tmpHtml += itemCaptionValue + "<br />";
      tmpHtml += "</p>";
      tmpHtml += "<hr />";
      tmpHtml += "<script type=\"text/javascript\"><!--google_ad_client = \"pub-8477120385460297\";/* 336x280, 作成済み 09/04/11 */ google_ad_slot = \"7325051532\";google_ad_width = 336;google_ad_height = 280;//--></script><script type=\"text/javascript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\"></script>";
    }

    //結果を表示
    result.innerHTML = tmpHtml;
    state.innerHTML = "データを取得しました。<br />\n";
  }

  function showErrMsg(){
    clearDisp();
    state.innerHTML = "データを取得できませんでした。<br />\n";
  }

}