function ucwords (str) {
    return (str+'').replace(/^(.)|\s(.)/g, function ( $1 ) { return $1.toUpperCase( ); } );
}

$(document).ready(function(){
	
	$("tr:even").addClass('alternate');
	
	$('a[rel=ext]').each(function(){
		 if($.browser.msie)
		 {
		 	$(this).attr('target','_blank');
		 }
		 else
		 {
		 	$(this).attr('onclick','window.open(\''+ $(this).attr('href') +'\'); return false; ');
		 }
	});
	
	$('form.ext').each(function(){
		var target = $(this).attr('id');
		if(target == '')
		{
			target = 'newForm';
		}
		$(this).attr('target',target);
	});

});