
	$(document).ready(
	   function(){
		
		$("input.inactive").keypress(
		   function(){
			$(this).removeClass("inactive");
			$(this).addClass("active");
		   }
		);
		
		$("input.inactive").focus(
		   function(){
			this.select();
		   }
		);

	   }
	);