rem: if (href.indexOf(":  var base = g2submit_document.URL; if (base.charAt(base.length - 1) == '/') { href = base + href; } else { if (href.charAt(0) == '/') { href = base.substring(0, base.indexOf('/', base.indexOf(" } else { href = base.substring(0, base.lastIndexOf('/')) + '/' + href; } } } 
add: href = g2submitMakeAbsoluteURL(href); 
context: function g2submitTorrentClient() {	if (g2submit_link_node) {        var href = g2submit_link_node.getAttribute("href");        if (href.length == 0) {            g2submitError("url is empty");        }        else {            if (href.indexOf("://") == -1) {                // convert to absolute URL                var base = g2submit_document.URL;                if (base.charAt(base.length - 1) == '/') {                    href = base + href;                }                else {                    if (href.charAt(0) == '/') {                        href = base.substring(0,                            base.indexOf('/', base.indexOf("//") + 2)) + href;                    }                    else {                        href = base.substring(0, base.lastIndexOf('/')) + '/' + href;                    }                }            }	    }        var esc = {            'l': href        };        g2submitRunProgram("torrent client", g2submitGetPrefCommand("torrent"), esc);	} else {        g2submitError("no link node found");	}}
meta: 8201	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8201/f1f78c68a3219d92a08d87ff0dbe4896e742a2af/g2submit.js/clean/g2gui/g2submit/package/content/g2submit/g2submit.js