		$(document).ready(function() { 
			var options = { 
			target:        '#alert',
			beforeSubmit:  showRequest,
			success: function() { 
			            $('#alert').slideDown("slow").delay(2000).slideUp('slow');
			        } 
			}; 
			$('#form').ajaxForm(options);  
			
			// O valor dos inputs aparecem no value e some quando foca
				$('input[type="text"]').focus(function() {		
					if (this.value == this.defaultValue){ 
						this.value = '';
					}
					if(this.value != this.defaultValue){
						this.select();
					}
				});
				$('input[type="text"]').blur(function() {
					if ($.trim(this.value) == ''){
						this.value = (this.defaultValue ? this.defaultValue : '');
					}
				});
		}); 
		
		function showRequest(formData, jqForm, options) { 
			var queryString = $.param(formData); 
			return true; 
		} 
		function showResponse(responseText, statusText)  {  
		} 
		$.fn.clearForm = function() {
		  return this.each(function() {
			var type = this.type, tag = this.tagName.toLowerCase();
			if (tag == 'form')
			  return $(':input',this).clearForm();
			if (type == 'text' || type == 'password' || tag == 'textarea')
			  this.value = '';
			else if (type == 'checkbox' || type == 'radio')
			  this.checked = false;
			else if (tag == 'select')
			  this.selectedIndex = -1;
		  });
		};
