function add_another(id,frm) {
    var count = parseInt(document.getElementById(id).value);
    count = count +1;
    document.getElementById(id).value = count.toString();
    var newImage = document.createElement('div');
    var image = document.createElement('input');
    image.name = "files"+count.toString();
    image.type = "file";
    var description = document.createElement('input');
    description.name = "desc"+count.toString();
    description.type = "text";
    newImage.appendChild(description);
    newImage.appendChild(image);
    document.getElementById(frm).appendChild(newImage);
}