﻿function urlencode(str) {
    return escape(str).replace('+', '%2B').replace('%20', '+').replace('*', '%2A').replace('/', '%2F').replace('@', '%40');
}

$(function() {
    $('a[href^="http://"]').attr('target', '_new').bind('click', function() {
        var ahref = this;
        $.ajax({
            type: "POST",
            url: "/dsustat.axd?page=" + ahref.href + "&from=" + window.location
        });
    });
});