
// 
// Type: alias
// Note: Does not work in IE, due to IE only recognizing Object.append(), but not declaredObject.append()
// 
Object.prototype.append = function (element)
{
  return this.appendChild(element);
}

Object.prototype.setAttribute = function (name, value)
{
  return this.setAttribute(name, value);
}

// 
// Type: new
// 
String.prototype.compress = function ()
{
  var newString = '';
  var arrayString = this.split('\n');
  
  for (var i = 0; i < arrayString.length; i++)
  {
    newString += arrayString[i].trim();
  }
  
  return newString
}

// 
// Type: new
// 
String.prototype.trim = function ()
{
  return this.replace(/^\s+|\s+$/g, '');
}


