<div class="esriAnalysis">
    <div data-dojo-type="dijit/layout/ContentPane" style="margin-top:0.5em; margin-bottom: 0.5em;">
      <div data-dojo-attach-point="_mergeLayersToolContentTitle" class="analysisTitle">
        <table class="esriFormTable" > 
          <tr>
            <td><div class="aggregateIcon"></div></td>
            <td>${i18n.mergeLayers}</td>
            <td>
              <div class="esriFloatTrailing" style="padding:0;">
                  <a href="#" class='esriFloatLeading helpIcon' esriHelpTopic="toolDescription"></a>
                  <a href="#" data-dojo-attach-point="_closeBtn" title="${i18n.close}" class="closeIcon">              
                  <img data-dojo-attach-point="_closeImg" border="0"/></a>            
              </div>                
            </td>
          </tr>
        </table>
      </div>
      <div style="clear:both; border-bottom: #333 thin solid; height:1px;width:100%;"></div>
    </div>
    <div data-dojo-type="dijit/form/Form" data-dojo-attach-point="_form" readOnly="true">
       <table class="esriFormTable"  data-dojo-attach-point="_mergeLayersTable" style="border-collapse:collapse;border-spacing:5px;" cellpadding="5px" cellspacing="5px"> 
         <tbody>
          <tr>
            <td  colspan="3" class="sectionHeader" data-dojo-attach-point="_mergeLayersDescription" >${i18n.mergeLayersDefine}</td>
          </tr> 
          <tr>
            <td colspan="3">
              <label class="esriFloatLeading esriTrailingMargin025">${i18n.oneLabel}</label>
              <label class="">${i18n.chooseMergeLayer}</label>
              <a href="#" class='esriFloatTrailing helpIcon' esriHelpTopic="MergeLayer"></a>
              <select class="longInput esriLongLabel"  style="margin-top:1.0em;" data-dojo-type="dijit/form/Select" data-dojo-attach-point="_mergeLayersSelect" data-dojo-attach-event="onChange:_handleLayerChange"></select>
            </td>
          </tr>     
          <tr>
            <td width="99%" colspan="2" style="white-space:nowrap;">
              <label class="esriFloatLeading esriTrailingMargin025">${i18n.twoLabel}</label>
              <label class="longTextInput">${i18n.mergeFieldsLabel}</label>
            </td>
            <td>
              <a href="#" class='esriFloatTrailing helpIcon' esriHelpTopic="MergingAttributes"></a> 
            </td>          
          </tr>  
          <tr data-dojo-attach-point="_afterMergeFieldsRow">
            <td colspan="3" class="clear"></td>
          </tr>          
 	      <tr>
            <td colspan="2">
              <label class="esriFloatLeading esriTrailingMargin025">${i18n.threeLabel}</label>
              <label class="longTextInput">${i18n.outputLayerLabel}</label>
            </td>
            <td class="shortTextInput">
              <a href="#" class='esriFloatTrailing helpIcon' esriHelpTopic="OutputName"></a> 
            </td>             
          </tr>
          <tr>
            <td colspan="3">
              <input type="text" data-dojo-type="dijit/form/ValidationTextBox" data-dojo-props="required:true" class="longTextInput esriLeadingMargin05" data-dojo-attach-point="_outputLayerInput"></input>
            </td>                
          </tr>
          <tr>
            <td colspan="3">
              <div data-dojo-attach-point="_chooseFolderRow">
                <label style="width:9px;font-size:smaller;">${i18n.saveResultIn}</label>
                <input class="longInput" dojoAttachPoint="_webMapFolderSelect" dojotype="dijit/form/ComboBox" trim="true" style="width:60%;height:auto"></input>
              </div>              
            </td>
          </tr>         
      </tbody>         
     </table>
    </div>
    <div data-dojo-attach-point="_mergesToolContentButtons" style="padding:5px;margin-top:5px;border-top:solid 1px #BBB;">
      <div style="width:100%;padding:0.5em 0 0.5em 0">
        <a class="esriFloatTrailing esriSmallFont"  href="#" data-dojo-attach-point="_showCreditsLink" data-dojo-attach-event="onclick:_handleShowCreditsClick">${i18n.showCredits}</a>
       <label data-dojo-attach-point="_chooseExtentDiv"class="esriSelectLabel" style="font-size:smaller;">
         <input type="radio" data-dojo-attach-point="_useExtentCheck" data-dojo-type="dijit/form/CheckBox" data-dojo-props="checked:true" name="extent" value="true"/>
           ${i18n.useMapExtent}
       </label>
      </div>
      <button data-dojo-type="dijit/form/Button" type="submit" data-dojo-attach-point="_saveBtn" class="esriLeadingMargin4" data-dojo-attach-event="onClick:_handleSaveBtnClick">
          ${i18n.runAnalysis}
      </button>
    </div>
    <div data-dojo-type="dijit/Dialog" title="${i18n.creditTitle}" data-dojo-attach-point="_usageDialog" style="width:40em;">
      <div data-dojo-type="esri/dijit/analysis/CreditEstimator"  data-dojo-attach-point="_usageForm"></div>
    </div>    
    <div class="esriFormWarning esriRoundedBox" data-dojo-attach-point="_errorMessagePane" style="display:none;">
      <a href="#" title="${i18n.close}" class="esriFloatTrailing closeIcon" title='${i18n.close}' data-dojo-attach-event="onclick:_handleCloseMsg">
        <img src='images/close.gif' border='0'/> 
      </a>
      <span data-dojo-attach-point="_bodyNode"></span>
    </div>
</div>
