String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
	return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
	return this.replace(/\s+$/,"");
}

$(document).ready(function() {
	$("input:text").focus(function(){
			$(this).select();
	});
	$("textarea").focus(function(){
			$(this).select();
	});
	$("li.del a,li.del_cat a,li.del_link a,li.del_contact a, a.del").click(function(){
			return confirm('Are you sure you want to DELETE?');
	});
	$("a.external").click(function(){
		return confirm('You are now leaving the NAWCAD Site.');
	});
});

