// JavaScript Document
	
	check_box = function(box) {
		box.removeClass("empty")
		if (box.val() == "") {
			box.addClass("empty");
		}
		else{
			box.removeClass("empty");
		};
    
	};
		
	$j(document).ready(function(){                               
		// just in case we need to reset it if undefined.
		search_box = $j('#display_search_wrapper input[type="text"]');
		mail_box = $j('#eList input[type="text"]');
		
		check_box(search_box)
		search_box.blur(function(){
			check_box(search_box);
		});
		search_box.focus(function() {
			search_box.removeClass("empty");
		});
		
		
		check_box(mail_box);
		mail_box.blur(function(){
			check_box(mail_box);
		});
		mail_box.focus(function() {
			mail_box.removeClass("empty");
		});
		
		
	});
