jQuery("#phocaGalleryUploadFormU").submit(function(e) {
var $author = jQuery('#phocagallery-equipment');
if($author.val().trim().length == 0) {
$author.addClass('invalidInput').focus();
alert('<?php echo JText::_('COM_PHOCAGALLERT_AUTHOR_REQUIRED') ?>');
e.preventDefault();
}
});