function stdFormCheck(f){
	$(f).find('.needed').removeClass('wrong');
	$(f).find('.needed').each(function(){
		if($(this).val().match(/^\s*$/)) $(this).addClass('wrong');
	});	
	
	if($(f).find('.wrong').length){
		$(f).find('.wrong:first').focus();
		return false;
	}
	
	return true;	
	
}