// JavaScript Document - Assinaturas Pequenos Cães
<!--
	function valida_form() {
		with (frm_assinatura) {
			if (nome.value=="") {
				alert("O nome deve ser preenchido");
				nome.focus();
				return false;
			}
			if (email.value=="") {
				alert("O e-mail deve ser preenchido");
				email.focus();
				return false;
			}
			if ((telefone_residencial.value=="") && (telefone_comercial.value=="")) {
				alert("Um dos telefones devem ser preenchido");
				telefone_residencial.focus();
				return false;
			}
			var fp=false;
			for (cont=0; cont<pagamento.length; cont++) {
				if (pagamento[cont].checked==true) {
					fp=true;
				}
			}
			if (fp==false) {
				alert("Escolha a forma de pagamento");
				return false;
			}
			if ((pagamento[0].checked == true) || (pagamento[1].checked == true)) {
				action = "formmail/formmail_assinaturas.php";
				target = "";
			}
			if ((pagamento[2].checked == true) || (pagamento[3].checked == true)) {
				alert("Atenção:\n\nSerá aberta uma nova janela para a impressão do boleto.");
				window.open('','janela_boleto');
				action = "cobrebem/cb_assinaturas.php";
				target = "janela_boleto";
				submit();
				return false;
			}
		}
	return true;
	}
//-->