String.prototype.fmt = function() {
  var tmp = this, 
    i=0;
  while(tmp.match("%@")) {
    tmp = tmp.replace("%@",arguments[i++]);
  }
  return tmp
}

