function Validar(){
if (document.form1.nome.value=="Informe seu nome") {alert("O Campo Nome não está preenchido!");return false;}
if (document.form1.cidade.value=="Cidade") {alert("O campo Cidade não está preeenchido!");return false;}
if (document.form1.estado.value=="") {alert("O campo Estado não está preeenchido!");return false;}
if (document.form1.email.value=="Digite seu email") {alert("O Campo Email não está preenchido!");return false;}
check = false;
	tot = document.all.tags("INPUT");
 	for(i = 0; i < tot.length; i++) {
 		if(tot.item (i) .type == 'checkbox' && tot.item (i) .checked == true)
 		{check = true;}
 	}
	if(!check){alert('Você deve escolher as operadoras que deseja a cotação.');return false;}
soma = eval(document.form1.vida18.value) + eval(document.form1.vida23.value) + eval(document.form1.vida28.value)
		   + eval(document.form1.vida33.value) + eval(document.form1.vida38.value) + eval(document.form1.vida43.value)
		   + eval(document.form1.vida48.value) + eval(document.form1.vida53.value) + eval(document.form1.vida58.value) 
		   + eval(document.form1.vida59.value);
	if(soma ==0){alert("É necessário informar a quantidade de usuários que farão parte do plano!");return false;}
return true;
}
function limpa() {
         if (document.form1.nome.value == "Informe seu nome") {document.form1.nome.value = "";}
		 if (document.form1.profissao.value == "Profissão") {document.form1.profissao.value = "";}
		 if (document.form1.cidade.value == "Cidade") {document.form1.cidade.value = "";}
		 if (document.form1.ddd.value == "DDD") {document.form1.ddd.value = "";}
		 if (document.form1.telefone.value == "Telefone") {document.form1.telefone.value = "";}
		 if (document.form1.email.value == "Digite seu email") {document.form1.email.value = "";}
		 if (document.form1.texto.value == "Mensagem opcional") {document.form1.texto.value = "";}
		 if (document.form1.vida18.value == "0") {document.form1.vida18.value = "";}
		 if (document.form1.vida23.value == "0") {document.form1.vida23.value = "";}
		 if (document.form1.vida28.value == "0") {document.form1.vida28.value = "";}
		 if (document.form1.vida33.value == "0") {document.form1.vida33.value = "";}
		 if (document.form1.vida38.value == "0") {document.form1.vida38.value = "";}
		 if (document.form1.vida43.value == "0") {document.form1.vida43.value = "";}
		 if (document.form1.vida48.value == "0") {document.form1.vida48.value = "";}
		 if (document.form1.vida53.value == "0") {document.form1.vida53.value = "";}
		 if (document.form1.vida58.value == "0") {document.form1.vida58.value = "";}
		 if (document.form1.vida59.value == "0") {document.form1.vida59.value = "";}

		}
        function preenche() {
            if (document.form1.nome.value == "") {document.form1.nome.value = "Informe seu nome";} 
		    if (document.form1.profissao.value == "") {document.form1.profissao.value = "Profissão";}
			if (document.form1.cidade.value == "") {document.form1.cidade.value = "Cidade";} 
			if (document.form1.ddd.value == "") {document.form1.ddd.value = "DDD";} 
			if (document.form1.telefone.value == "") {document.form1.telefone.value = "Telefone";} 
			if (document.form1.email.value == "") {document.form1.email.value = "Digite seu email";}
		    if (document.form1.texto.value == "") {document.form1.texto.value = "Mensagem opcional";}
			if (document.form1.vida18.value == "") {document.form1.vida18.value = "0";}
			if (document.form1.vida23.value == "") {document.form1.vida23.value = "0";}
			if (document.form1.vida28.value == "") {document.form1.vida28.value = "0";}
			if (document.form1.vida33.value == "") {document.form1.vida33.value = "0";}
			if (document.form1.vida38.value == "") {document.form1.vida38.value = "0";}
			if (document.form1.vida43.value == "") {document.form1.vida43.value = "0";}
			if (document.form1.vida48.value == "") {document.form1.vida48.value = "0";}
			if (document.form1.vida53.value == "") {document.form1.vida53.value = "0";}
			if (document.form1.vida58.value == "") {document.form1.vida58.value = "0";}
			if (document.form1.vida59.value == "") {document.form1.vida59.value = "0";}
        }