Event.observe(window, 'load', function(){
		
	$$('a').each(function(el){
		if(el.rel=='external'){
			el.target = '_blank';
		}
	});
	
});

Event.observe(window, 'load', function(){
	
	$$('input').each(function(el){
		if(el.type=="text" || el.type=="password"){
			Element.observe(el, 'focus', function(){
				this.select();
			})
		}
	});
	$$('textarea').each(function(el){
		Element.observe(el, 'focus', function(){
			this.select();
		})
	});
	
});
