//
String.prototype.toDate = function(){
	return new Date(Date.parse(this));
}

//
Date.prototype.format = function(pattern) {
	return DateFormatter.format(this, pattern);
}

//
jQuery.postJSON = function(url, data, callback) {
	jQuery.post(url, data, callback, "json");
};

//
String.prototype.linkKeywords = function(keywords){
	var result = this;
	jQuery.each(keywords, function() {
		var link  = "<a href='" + this.url + "'>" + this.keyword + "</a>";
			result = result.replace(this.keyword, link, "g");
		});
	return result;
}