# File lib/amazon/shoppingcart.rb, line 105
    def ShoppingCart.one_click_form(associate, dev_id, asin, locale='us')

      locale.downcase!

      unless locale == 'us'
        raise LocaleError, "form type invalid in '#{locale}' locale"
      end

      # Why is no developer token used in the form below? It *is* used by
      # all other HTML forms.
      #
      "<script language=\"JavaScript\">\nfunction popUp(URL,NAME) {\namznwin=window.open(URL,NAME,'location=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes,width=380,height=450,screenX=10,screenY=10,top=10,left=10');\namznwin.focus();}\ndocument.open();\ndocument.write(\"<a href=javascript:popUp('http://buybox.amazon.com/exec/obidos/redirect?tag=\#{associate}&link_code=qcb&creative=23424&camp=2025&path=/dt/assoc/tg/aa/xml/assoc/-/\#{asin}/\#{associate}/ref=ac_bb1_,_amazon')><img src=http://rcm-images.amazon.com/images/G/01/associates/remote-buy-box/buy1.gif border=0 alt='Buy from Amazon.com' ></a>\");\ndocument.close();\n</script>\n<noscript>\n<form method=\"POST\" action=\"http://buybox.amazon.com/o/dt/assoc/handle-buy-box=\#{asin}\">\n<input type=\"hidden\" name=\"asin.\#{asin}\" value=\"1\">\n<input type=\"hidden\" name=\"tag-value\" value=\"\#{associate}\">\n<input type=\"hidden\" name=\"tag_value\" value=\"\#{associate}\">\n<input type=\"image\" name=\"submit.add-to-cart\" value=\"Buy from Amazon.com\" border=\"0\" alt=\"Buy from Amazon.com\" src=\"http://rcm-images.amazon.com/images/G/01/associates/add-to-cart.gif\">\n</form>\n</noscript>\n"
    end