﻿//This is a script to turn html file downloads into server side
$(document).ready(function() {
    $("a[href]").filter(function(index) {


        var path = $(this).attr("href").toLowerCase();
        return (path.indexOf("userfiles") >= 0 || path.indexOf("uploads") >= 0);

    }).each(function(index) {
        $(this).attr("onclick", "__doPostBack('Download','" + $(this).attr("href") + "'); return false;");
    })


});

