jQuery(function($) { 

	
	
	// forgot form validation
		var hasChecked = false;
		$(".standard #submit").click(function () { 
			hasChecked = true;
			return checkForm();
		});
		$(".standard #certificado").live('change click', function(){
			if(hasChecked == true)
			{
				return checkForm();
			}
		});
		function checkForm()
		{
			var hasError = false;
			
			if($(".standard #certificado").val() == '') {
				$(".standard #error-certificado").fadeIn();
				hasError = true;
			}else{
				$(".standard #error-certificado").fadeOut();
			}
			if(hasError == true)
			{
				return false;
			}else{
				return true;
			}
		}
		// end form validation
	

 		
		
		
}); // end jQuery
