	
 //DropDowns:


function validaForm(){

var displayAuthor = $("#author").css("display");
var displayEmail = $("#email").css("display");
var nome = $("#author").val();
var email = $("#email").val();
var comentario = $("#comment").val();

if(displayAuthor == null && displayEmail == null){
		$("#commentform").attr('action', 'wp-comments-post.php');
		$("#commentform").submit();
	}

if(nome == "Nome" || nome.indexOf(" ") == 0)
{
	$("#erroNome").css({display:'inline'});
		}else
		if( email == "E-mail" || $("#email").val().indexOf(" ") == 0)
			{
			$("#erroEmail").css({display:'inline'});
			}else
			if( comentario == "" || $("#comment").val().indexOf(" ") == 0)
					{
					$("#erroComentario").css({display:'inline'});
					}else
					if( email.search(RegExp(/^[a-z][\w.-]+@\w[\w.-]+\.[\w.-]*[a-z][a-z]$/i)) )
						{
						$("#erroEmail").css({display:'inline'});
							}
								else
									{
									$("#commentform").attr('action', 'http://sunsetcom.com.br/blog/wp-comments-post.php');
									$("#commentform").submit();
									}
}



