ASP MVC Javascript link to uri
===

I have a ASP.NET MVC web application and have a link that can be either a url or link to a file (network share, location file system)

Here is my html....

    <span id="link_id">link</span>

Here is my jQuery / Javascript......

    jQuery('#link_id').live('click', function() {
        var location = jQuery(this).attr('link');
        window.open(location, '_blank');
    });


However, I can getting an error when the link is not an web address starting with http://.

Is there a way to accomplish this so I can not only access web urls but also shared drives?

thanks in advance