function navdcsmultitrack(ele,title) { var url_split=ele.match(/(\w+):\/\/([\w.]+)(\/\S*)/); var wt_domain=url_split[2]; var wt_uri=url_split[3]; var wt_title=title; dcsMultiTrack('dcsuri', wt_uri, 'WT.ti', wt_title); window.open(ele); } function linkdcsmultitrack(ele) { var url_split=ele.href.match(/(\w+):\/\/([\w.]+)(\/\S*)/); var wt_domain=url_split[2]; var wt_uri=url_split[3]; var wt_title=ele.title; dcsMultiTrack('dcsuri', wt_uri, 'WT.ti', wt_title); }