var time = 5000; // 10 secs
var steps = 50; // Five per second
var step = 1;

function progress() {
   var bar = document.getElementById( "bar");
   var aStep = (bar.offsetWidth -2) /steps;// 2px border removed from width
   var x = Math.round( aStep *step);
   var progress = document.getElementById( "progress");

   progress.style.width = x +"px";
   step++;

   if( step > steps) redir();
   else setTimeout( "progress();", time /steps);
}

function redir() {
   window.location.replace("https://www.hertz.co.za/webXG/hza001-partners/html/webres/");
}