// MC Gusto :) function cb4(url) { var str = new String(url); var cbre = new RegExp("(\\[|%5B)CACHEBUSTER(\\]|%5D)","gi"); var rnre = new RegExp("(\\[|%5B)randnum(\\]|%5D)","gi"); var tsre = new RegExp("(\\[|%5B)timestamp(\\]|%5D)","gi"); if (str.match(cbre)) { var rnd = Math.round(Math.random()*1e12); str = str.replace(cbre, rnd); } if (str.match(rnre)) { var rnd = Math.round(Math.random()*1e12); str = str.replace(rnre, rnd); } if (str.match(tsre)) { var today = new Date(); var rnd = today.getTime(); str = str.replace(tsre, rnd); } return str; }