var hash_id = 0;

if (!document.getElementById('rds')) rdsCriar();

function getHash() {
  data = new Date();
  return Date.parse(data.getDate()) + "_" + Math.random();
}

function rds(url) {
  script = document.createElement('SCRIPT');
  url += (url.indexOf('?') == -1) ? '?' : '&';
	script.src = url + 'hash=' + hash_id + getHash();
	document.getElementById('rds').appendChild(script);
  hash_id++;
}

function rdsCriar() {
  if (document.body) {
    rds = document.createElement('DIV');
    rds.id = "rds";
    rds.style.cssText = "visibility:hidden";
    document.body.appendChild(rds);
  } else {
    document.write("<div id='rds' style='visibility:hidden'></div>");
  }
}