function emThisForRw(id) { trackit(id); var rH = encodeURI(encodeEmail($('#rw' + id + ' .head .title').text())).replace(/&/g, '%26').replace(/#/g, '%23'); var rD = encodeURI(pd_noul($('#rw' + id + ' .body .news').text())).replace(/&/g, '%26').replace(/#/g, '%23'); var urlWithSectionInfo=getSectionInfo(id); if(urlWithSectionInfo.indexOf('/from/ET')<0) { urlWithSectionInfo+='from/ET/'; } //var et = 'mailto:?subject=nbcsports.com' + ':%20' + rH + '&body=' + rH + '%0D%0A' + rD + '%0D%0Ahttp://' + location.host + '/id/' + id + '/from/ET/'; var et = 'mailto:?subject=nbcsports.com' + ':%20' + rH + '&body=' + rH + '%0D%0A' + rD + '%0D%0Ahttp://' + location.host + urlWithSectionInfo; location.href = et; } function printThisForRw(id) { var urlWithSectionInfo=getSectionInfo(id); //var s = '/id/' + '/print/1/displaymode/1098/'; var s= urlWithSectionInfo + '/print/1/displaymode/1098/'; if(window.location.href.indexOf('workarea') != -1) s = s + 'workarea/3/'; var o = new UberSniff(); if (o.webtv) { location.href = s; } else { OCW(s, 'print', 'width=640,height=480,scrollbars=1,resizable=1'); } } function openRWFrontNext(page){ var href = location.href; href = href.replace('&rwPage=' +GetUrlParameter('rwPage'),''); href = href + '&rwPage=' + page; location.href = href; } //get Section Info from Permalink function getSectionInfo(docID) { //get the href of 'Permalink' var href=$('#rw' + docID + ' .permalink a').attr('href'); return href; }