//<script>
/*

  String obtains the insert method similar to the % in Ruby.

  Example:

    alert('%s'.ins('Test'))
    alert('%s %s'.ins(['Hello', 'World']))

  Produces:

    'Test'
    'Hello World'

*/

String.prototype.ins = function() {
  result = this;
  arguments.each(function(word) {
    result = result.replace(/%s/, word);
  });
  return result;
}

//</script>
