function checapermuta() 

	{
		var bOK=true;
		var oRegNumero = /\D/;

	if (document.falecon.nome_c.value=="")
		{
			alert("Digite um nome para o cadastro ");
			document.falecon.nome_c.focus();
			bOK=false;return;
		}


	if (document.falecon.ddd_c.value=="")
		{
			alert("Digite um DDD para o cadastro");
			document.falecon.ddd_c.focus();
			bOK=false;return;
		}

	if(oRegNumero.test(document.falecon.ddd_c.value)){
		alert('Preencha o campo DDD somente com números.');
		document.falecon.ddd_c.focus();
		bOK=false;return;
	}



	if (document.falecon.tel_c.value=="")
		{
			alert("Digite um telefone para o cadastro");
			document.falecon.tel_c.focus();
			bOK=false;return;
		}
	
	
	if (document.falecon.tipo_ic.value=="")
		{
			alert("Escolha o tipo do imóvel ");
			document.falecon.tipo_ic.focus();
			bOK=false;return;
		}

	
	if ((document.falecon.lancto_ic[0].checked==false) &&	    	(document.falecon.lancto_ic[1].checked==false))
		{
			alert("Escolha se o imóvel é lançamento");
			document.falecon.lancto_ic[0].focus();
			bOK=false;return;
		}


	if (document.falecon.end_ic.value=="")
		{
			alert("Digite o endereço do imóvel");
			document.falecon.end_ic.focus();
			bOK=false;return;
		}

	if (document.falecon.bairro_ic.value=="")
		{
			alert("Digite o bairro do imóvel");
			document.falecon.bairro_ic.focus();
			bOK=false;return;
		}

	if (document.falecon.uf_ic.value=="")
		{
			alert("Digite o estado do imóvel");
			document.falecon.uf_ic.focus();
			bOK=false;return;
		}
	
	if (document.falecon.cidade_ic.value=="")
		{
			alert("Digite a cidade onde se encontra o imóvel");
			document.falecon.cidade_ic.focus();
			bOK=false;return;
		}

	if (document.falecon.tipo_ic.value=="casa"){
         if (document.falecon.dorm_ic.value=="")
          {
	   alert("Digite o número de dormitórios do imóvel");
	   document.falecon.dorm_ic.focus();
	   bOK=false;return;
	  }}


     

    if (document.falecon.tipo_ic.value=="apartamento"){
       if (document.falecon.cobertura_ic.checked==true){
        if (document.falecon.dorm_ic.value==""){
 	 alert("Digite número de dormitórios do imóvel");
 	 document.falecon.dorm_ic.focus();
	 bOK=false;return;
	}}}

    if (document.falecon.tipo_ic.value=="apartamento"){
       if (document.falecon.kit_ic.checked==false){
        if (document.falecon.dorm_ic.value==""){
 	 alert("Digite número de dormitórios do imóvel");
 	 document.falecon.dorm_ic.focus();
	 bOK=false;return;
	}}}

    if(oRegNumero.test(document.falecon.dorm_ic.value)){
	alert('Preencha o campo DORMITÓRIOS somente com números.');
	document.falecon.dorm_ic.focus();
	bOK=false;return;
    }

	if (document.falecon.garag_ic.value=="")
		{
			alert("Digite a quantidade de vagas na garagem");
			document.falecon.garag_ic.focus();
			bOK=false;return;
		}

	if(oRegNumero.test(document.falecon.garag_ic.value)){
		alert('Preencha o campo VAGAS NA GARAGEM somente com números.');
		document.falecon.garag_ic.focus();
		bOK=false;return;
	}


	if (document.falecon.distpraia_ic.value=="0")
		{
			alert("Informe a distância do imóvel até praia");
			document.falecon.distpraia_ic.focus();
			bOK=false;return;
		}


	if (document.falecon.valor_ic.value=="")
		{
			alert("Informe o valor do imóvel ");
			document.falecon.valor_ic.focus();
			bOK=false;return;
		}

	if(oRegNumero.test(document.falecon.valor_ic.value)){
		alert('Preencha o campo VALOR somente com números.');
		document.falecon.valor_ic.focus();
		bOK=false;return;
	}

	if ((document.falecon.imovstatus_ic[0].checked==false) &&	    		            (document.falecon.imovstatus_ic[1].checked==false))
		{
			alert("Informe se o imóvel está quitado");
			document.falecon.imovstatus_ic[0].focus();
			bOK=false;return;
		}







	if (bOK) 
		{

			document.falecon.submit();
		}
	}
