function Attribute(s) {
	var values = s.matchList(Attribute.regExp.attrValues);
	this.name = values[0];
	if(values.length > 1)
		this.value = values[1];
	else
		this.value = null;
}

Attribute.regExp = new Object();
Attribute.regExp.attrValues = /(\w+)/g;

Attribute.prototype.toString = function () {
	return '[' + this.name + (this.value ? '=' + this.value : '') + ']';
}
