new_window = false; try { page_url = "" + top.location.href; } catch(e) { new_window = true; page_url = "" + document.location.href; } loacation_url = page_url.replace(/http\:\/\/|https\:\/\/|www\./ig,""); if(loacation_url.indexOf("/") > 5) loacation_url = loacation_url.substr(0, loacation_url.indexOf("/", 5)); function check_value(val, def, type) { try { val = "" + eval(val);} catch(e) { val = "";} if("" + val == "undefined" || val == "") return def; else { if(type && !isNaN(parseInt(val))) return parseInt(val); else if(type) return def; else return def == "no" && val.length <= 5 && !isNaN(parseInt(val)) ? val + "&pi=" + val : val; } } function findlinks() { if(document.getElementsByTagName && document.getElementsByTagName("a") && document.getElementsByTagName("a").length > 0) { a_tags = document.getElementsByTagName("a") link_url = ""; for(i=0; i 3) && (" " + a_tags[i].href).indexOf("script:") <= 0 && (" " + a_tags[i].href).indexOf("#") != 1 && (" " + a_tags[i].href).indexOf("mailto:") <= 0 && (" " + a_tags[i].href).indexOf("file:") <= 0 && (" " + a_tags[i].href).indexOf("#exit") <= 0 && !(!isNaN(parseInt(domain_url.substr(0,1))) && (!isNaN(parseInt(domain_url.substr(0,2))) || domain_url.substr(0,2) == "."))) { l_url = a_tags[i].href; l_text = a_tags[i].innerHTML; a_tags[i].target = check_value("e_target", 1, 1) == 1 || new_window ? "_self" : "_blank"; a_tags[i].href = "http://srs.targetpoint.com/external.aspx?url=" + escape(l_url.replace("'", "").replace("\"", "")) + "&nw=" + check_value("b_force", "0", 0) + "&uid=" + check_value("customer_id", "1", 0) + "&cid=" + check_value("e_cid", 1, -1) + "&tp=" + check_value("e_type", 0, 1) + "&ps=" + check_value("e_preset", "", 0) + "&wd=" + check_value(document.body.clientWidth, 760, 1) + "&hg=" + check_value("e_height", 48, 1) + "&lo=" + escape(page_url); if(document.all && l_text.replace(/\/|http:\/\//g,"") == l_url.replace(/\/|http:\/\//g,"")) a_tags[i].innerText = l_text; } } } } function skip_links(url) { l_skip = check_value("e_skip", "", 0) if(l_skip != "" && url != "") { params_to_skip = l_skip.indexOf(",") > 0 ? l_skip.split(",") : new Array(l_skip); for(s=0; s 0) { return false; break; } } return true } else return true; } tempsearch = window.setTimeout("findlinks(); clearTimeout(tempsearch)", 500) if("" + window.onload == "" || "" + window.onload == "null") window.onload = findlinks; else tempsearch = window.setTimeout("findlinks(); clearTimeout(tempsearch)", 4000)