$(document).ready(function(){

		function highLight(){
				if ($(this).parents('tr').hasClass('focusrow')){
						//Already in focus
						return;
				}

				//Clear existing fields
				$('#formtable tr input').not(':radio').val('');
				$('#formtable tr select[name=transmission]').val(0);	//we want to make
																															//sure the user
																															//chooses a
																															//transmission
																															//each time

				$('#formtable tr').removeClass('focusrow');
				$(this).parents('tr').addClass('focusrow');

				//Check the associated radio box for this row
				$(this).parents('tr').find(':radio').attr('checked','checked');
    }

    $('#formtable tr input').focus(highLight);

    $('#formtable tr :radio:checked').parents('tr').addClass('focusrow');
});
