var fyear = location.href.split("/")[6].substr(1,4);

document.write(fyear);
