﻿function highlight(){
	['textarea','input'].each(function(tag){
		$$('.form ' + tag).each(function(item){
			if(tag == 'textarea' || item.type == 'text'){
				item.observe('focus', function(){
					item.addClassName('highlight');
				});
				item.observe('blur', function(){
					item.removeClassName('highlight');
				});
			}
		});
	});
}