jQuery.fn.outerHTML = function(s) {return (s)? this.before(s).remove(): jQuery("<p>").append(this.eq(0).clone()).html();}

$(document).ready(function()
{
	$('img[alt=""]').attr('alt',"");

	//var firstField = $('.firstsel:visible:first');
	var firstField = $(".firstsel");
	/*
	if (firstField.length==0)
	{
		 firstField = $('input[type=\'text\']:visible:first');
	}
	if (firstField.length==0)
		firstField = $('a[href]:visible:first');
//	alert(firstField.outerHTML());
*/
	if (firstField.length>=1)
		firstField.focus();
	
	$(".datagridheader>td").each(function(i)
	{
		$(this).replaceWith($('<th class="datagridheader">' + $(this).text() + '</th>'));
	});
});