/**
 * POKE url resolving for django reverse urls
 * Takes a url obj from POKE.urlmaps (a django created url maps file) and an arguments array, replaces the placeholder
 * args with new supplied args and spits out the new url.
 * Should allow for dynamic js urls using djangos url names and reversing
 * Auth: Chris Reeves, POKE, 8/2/2010
 */
POKE.url = function(obj, args) {
  var url = obj.url;
  if(args.length > 0) {
	  for(i = 0; i < args.length; i++) {
      url = url.replace('/'+obj.placeholders[i]+'/', '/'+args[i]+'/');
	  }
  }
  return url;
}