﻿    function geturl() {
        document.myForm.url.value = document.URL;
    }
    function getproduct() {
      document.write(
      '<p>型番 ', model,
      ' 販売価格 <b><font size="+1">', price,
      ' 円 </font></b>（税込み ', price_withtax,
      ' 円） ');
      if (shipfee == 0 ){
          document.write('送料無料</p>');
      } else {
          document.write('送料別</p>');
      }      
      if (display != 0) {
          document.write('<p><b><font size="+1">');
          if (stock == 0) {
              document.write('完売・調達中');
          } else {
              document.write('残りあと', stock, '個です');
          }
          document.write('</font></b></p>');
      }
      document.write(
      ' 個数');
      document.write(
    　' <select name="units" size="1">',
      ' <option value="1" selected>1 </option>');
      for(i = 2; i < 10; i++) {
          document.write('<option value="', i, '">', i, ' </option>');
      }
      document.write(
      '</select>',
      '<input style="font-size:14px;font-weight:bold;width:80px;height:20px" type="submit" name="submit" value="購入する" onclick="geturl()"/>',
      '<input type="hidden" name="add" value="', id, '"/><input type="hidden" name="url"/>');
    }
    function docwritetest() {
        document.write('<p>ABCDEFG</p>');
    }

