// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function jsAttachAnotherFile()
{
   var currcount = document.getElementById('upload_counter');

    var new_html = '<div><label for="file" style="width: 50px;">Upload:</label><input id="upload_file'+currcount.value+'" name="upload[file'+currcount.value+']" size="30" type="file"></div>';
    $('upload_div').insert({ bottom: new_html });
    var newcnt = parseInt(currcount.value) + 1;
    document.getElementById('upload_counter').value = newcnt;

    return false;
}
