    //add tender docs attachments
    function addAttach(frm) {
      addNum = eval(frm.uploadCount.value);
      var nl = document.createElement('hr');
      document.getElementById('attach').appendChild(nl);

      var heading = document.createElement('label');
      heading.innerHTML='<strong>Image Title:</strong>&nbsp;'
      document.getElementById('attach').appendChild(heading);
      
      var doctitle =document.createElement('input');
      doctitle.setAttribute('type','text');
      doctitle.setAttribute('name',"doctitle["+addNum+"]");
      doctitle.setAttribute('size', 50);
      document.getElementById('attach').appendChild(doctitle);

      nl = document.createElement('br');
      document.getElementById('attach').appendChild(nl);
           nl = document.createElement('br');
      document.getElementById('attach').appendChild(nl);
      
      var heading3 = document.createElement('label');
      heading3.innerHTML='<strong>Upload Image : </strong>&nbsp;'
      document.getElementById('attach').appendChild(heading3);
    
      var el = document.createElement('input');
      el.setAttribute('type', 'file');
      el.setAttribute('name', "docfile["+addNum+"]");
      el.setAttribute('size', 30);
      document.getElementById('attach').appendChild(el);

      addNum++;
      frm.uploadCount.value = addNum;
    }
