﻿// JavaScript Document


function validadwg()
     {


    var name = $("input#nomedwg").val();
	var email = $("input#emaildwg").val();
	var tel = $("input#teldwg").val();
	var dwg = $("input#hiddendwg").val();


 if(name=="")
    {
      window.alert("Preencher campo nome");
       document.dwg.nomedwg.focus();
       return false;
    }
	
if(email=="")
    {
      window.alert("Preencher campo email");
       document.dwg.emaildwg.focus();
       return false;
		}

if(tel=="")
    {
      window.alert("Preencher campo telefone");
       document.dwg.teldwg.focus();
       return false;
		}


 
$.post("enviadwg.php", {nome:name, email:email, tel:tel, dwg:dwg});
$("#formdwg").hide(1000);
$("#confidwg").show(2000);
	 }





	
