////////////////////////////////////////////                                      ////         Omega Mídia Web              ////                                      ////        Copyright(c) 2000             ////                                      ////////////////////////////////////////////// ATENÇÃO, A CÓPIA NÃO AUTORIZADA DESSES// SCRIPTS É CRIME E DÁ CADEIA!!!// FUNÇÃO QUE PROCURA E DEFINE OS BROWSERS COMPATÍVEISfunction Is() {    var agent = navigator.userAgent.toLowerCase();    this.major = parseInt(navigator.appVersion);    this.minor = parseFloat(navigator.appVersion);    this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));    this.ns2 = (this.ns && (this.major == 2));    this.ns3 = (this.ns && (this.major == 3));    this.ns4b = (this.ns && (this.minor < 4.04));    this.ns4 = (this.ns && (this.major >= 4));    this.ie   = (agent.indexOf("msie") != -1);    this.ie3  = (this.ie && (this.major == 2));    this.ie4  = (this.ie && (this.major >= 4));    this.op3 = (agent.indexOf("opera") != -1);    this.win   = (agent.indexOf("win")!=-1);    this.mac   = (agent.indexOf("mac")!=-1);    this.unix  = (agent.indexOf("x11")!=-1);}var is = new Is();function onerror() {    document.location.href = "javascript:";}// FUNÇÃO PARA DEFINIR CROSS_BROWSER  if (is.ns4) {    doc = "document";    sty = "";    htm = ".document";  } else  if (is.ie4) {    doc = "document.all";    sty = ".style";    htm = "";  }



//FUNÇÃO PARA CONFERIR O EMAIL - Geral

function VerificaEmail(endereco)
{

   if (endereco.substring(endereco.length - 1,endereco.length) == ".")
      {
         return false;
      }
      else
         {
            return ((endereco.indexOf("@") > 0) && (endereco.indexOf(".") > 0));
         }
}



// FUNÇÃO PARA CHECAR CAMPOS OBRIGATÓRIOS - Português


function ChecaDados()
{
 var wret2;

 wret2 = true;

 if (document.F1.cotacao_nome.value=="")
  {
   alert("Campo Nome é Obrigatório !!!");
   wret2 = false;
   document.F1.cotacao_nome.focus();
  }
  else
     {
      if ((document.F1.cotacao_telefone.value=="")&&(document.F1.cotacao_email.value==""))
       {
        alert("Campo Telefone ou E-mail são Obrigatórios !!!");
        wret2 = false;
        document.F1.cotacao_telefone.focus();
       }
       else
          {
           if (document.F1.cotacao_decidade.value=="")
            {
             alert("Campo Cidade de Origem é Obrigatório !!!");
             wret2 = false;
             document.F1.cotacao_decidade.focus();
            }
            else
               {
                if (document.F1.cotacao_decidade.value=="")
                 {
                  alert("Campo Cidade de Destino é Obrigatório !!!");
                  wret2 = false;
                  document.F1.cotacao_decidade.focus();
                 }                    
                 else
                    {
                     if (document.F1.cotacao_email.value!="")
                      {
                       if (!VerificaEmail(document.F1.cotacao_email.value))
                        {
                         alert("E-mail inválido !!!");
                         wret2 = false;
                         document.F1.cotacao_email.focus();
                        }
                      }
                    } 
                    Soma();
                    if (wret2==true)return document.F1.submit();
                    
               }
          }
     }
}




// FUNÇÃO PARA CHECAR CAMPOS OBRIGATÓRIOS - Inglês


function ChecaDadosEn()
{
 var wret2;

 wret2 = true;

 if (document.F1.cotacao_nome.value=="")
  {
   alert("Field Name is Required !!!");
   wret2 = false;
   document.F1.cotacao_nome.focus();
  }
  else
     {
      if ((document.F1.cotacao_telefone.value=="")&&(document.F1.email.value==""))
       {
        alert("Field Phone or Email are Required !!! !!!");
        wret2 = false;
        document.F1.cotacao_telefone.focus();
       }
       else
          {
           if (document.F1.cotacao_decidade.value=="")
            {
             alert("Field City is Required !!!");
             wret2 = false;
             document.F1.cotacao_decidade.focus();
            }
            else
               {
                if (document.F1.cotacao_decidade.value=="")
                 {
                  alert("Field City is Required !!!");
                  wret2 = false;
                  document.F1.cotacao_decidade.focus();
                 }                    
                 else
                    {
                     if (document.F1.cotacao_email.value!="")
                      {
                       if (!VerificaEmail(document.F1.cotacao_email.value))
                        {
                         alert("Invalid E-mail !!!");
                         wret2 = false;
                         document.F1.cotacao_email.focus();
                        }
                      }
                      Soma();
                      if (wret2==true)return document.F1.submit();
                    }
               }
          }
     }
}




//Calcula o volume dos ítens//

function Soma()
{
 var tot;
 var tot2;
 var M;

 tot = 1*(document.F1.volume1.value) + 1*(document.F1.volume2.value) + 1*(document.F1.volume3.value) + 1*(document.F1.volume4.value) + 1*(document.F1.volume5.value) + 1*(document.F1.volume6.value) + 1*(document.F1.volume7.value) + 1*(document.F1.volume8.value) + 1*(document.F1.volume9.value) + 1*(document.F1.volume10.value) + 1*(document.F1.volume11.value) + 1*(document.F1.volume12.value) + 1*(document.F1.volume13.value) + 1*(document.F1.volume14.value) + 1*(document.F1.volume15.value) + 1*(document.F1.volume16.value) + 1*(document.F1.volume17.value) + 1*(document.F1.volume18.value) + 1*(document.F1.volume19.value) + 1*(document.F1.volume20.value) + 1*(document.F1.volume21.value) + 1*(document.F1.volume22.value) + 1*(document.F1.volume23.value) + 1*(document.F1.volume24.value) + 1*(document.F1.volume25.value) + 1*(document.F1.volume26.value) + 1*(document.F1.volume27.value) + 1*(document.F1.volume28.value) + 1*(document.F1.volume29.value) + 1*(document.F1.volume30.value) + 1*(document.F1.volume31.value) + 1*(document.F1.volume32.value) + 1*(document.F1.volume33.value) + 1*(document.F1.volume34.value) + 1*(document.F1.volume35.value) + 1*(document.F1.volume36.value) + 1*(document.F1.volume37.value) + 1*(document.F1.volume38.value) + 1*(document.F1.volume39.value) + 1*(document.F1.volume40.value) + 1*(document.F1.volume41.value) + 1*(document.F1.volume42.value) + 1*(document.F1.volume43.value) + 1*(document.F1.volume44.value) + 1*(document.F1.volume45.value) + 1*(document.F1.volume46.value) + 1*(document.F1.volume47.value) + 1*(document.F1.volume48.value) + 1*(document.F1.volume49.value) + 1*(document.F1.volume50.value) + 1*(document.F1.volume51.value) + 1*(document.F1.volume52.value) + 1*(document.F1.volume53.value) + 1*(document.F1.volume54.value) + 1*(document.F1.volume55.value) + 1*(document.F1.volume56.value) + 1*(document.F1.volume57.value) + 1*(document.F1.volume58.value) + 1*(document.F1.volume59.value) + 1*(document.F1.volume60.value) + 1*(document.F1.volume61.value) + 1*(document.F1.volume62.value) + 1*(document.F1.volume63.value) + 1*(document.F1.volume64.value) + 1*(document.F1.volume65.value) + 1*(document.F1.volume66.value) + 1*(document.F1.volume67.value) + 1*(document.F1.volume68.value) + 1*(document.F1.volume69.value) + 1*(document.F1.volume70.value) + 1*(document.F1.volume71.value) + 1*(document.F1.volume72.value) + 1*(document.F1.volume73.value) + 1*(document.F1.volume74.value) + 1*(document.F1.volume75.value) + 1*(document.F1.volume76.value) + 1*(document.F1.volume77.value) + 1*(document.F1.volume78.value) + 1*(document.F1.volume79.value) + 1*(document.F1.volume80.value) + 1*(document.F1.volume81.value) + 1*(document.F1.volume82.value) + 1*(document.F1.volume83.value) + 1*(document.F1.volume84.value) + 1*(document.F1.volume85.value) + 1*(document.F1.volume86.value) + 1*(document.F1.volume87.value) + 1*(document.F1.volume88.value) + 1*(document.F1.volume89.value) + 1*(document.F1.volume90.value) + 1*(document.F1.volume91.value) + 1*(document.F1.volume92.value) + 1*(document.F1.volume93.value) + 1*(document.F1.volume94.value) + 1*(document.F1.volume95.value) + 1*(document.F1.volume96.value) + 1*(document.F1.volume97.value) + 1*(document.F1.volume98.value) + 1*(document.F1.volume99.value) + 1*(document.F1.volume100.value) + 1*(document.F1.volume101.value) + 1*(document.F1.volume102.value) + 1*(document.F1.volume103.value) + 1*(document.F1.volume104.value) + 1*(document.F1.volume105.value) + 1*(document.F1.volume106.value) + 1*(document.F1.volume107.value) + 1*(document.F1.volume108.value) + 1*(document.F1.volume109.value) + 1*(document.F1.volume110.value) + 1*(document.F1.volume111.value) + 1*(document.F1.volume112.value) + 1*(document.F1.volume113.value) + 1*(document.F1.volume114.value) + 1*(document.F1.volume115.value) + 1*(document.F1.volume116.value) + 1*(document.F1.volume117.value) + 1*(document.F1.volume118.value) + 1*(document.F1.volume119.value) + 1*(document.F1.volume120.value) + 1*(document.F1.volume121.value) + 1*(document.F1.volume122.value) + 1*(document.F1.volume123.value) + 1*(document.F1.volume124.value) + 1*(document.F1.volume125.value) + 1*(document.F1.volume126.value) + 1*(document.F1.volume127.value) + 1*(document.F1.volume128.value) + 1*(document.F1.volume129.value) + 1*(document.F1.volume130.value) + 1*(document.F1.volume131.value) + 1*(document.F1.volume132.value) + 1*(document.F1.volume133.value) + 1*(document.F1.volume134.value) + 1*(document.F1.volume135.value) + 1*(document.F1.volume136.value) + 1*(document.F1.volume137.value) + 1*(document.F1.volume138.value) + 1*(document.F1.volume139.value) + 1*(document.F1.volume140.value) + 1*(document.F1.volume141.value) + 1*(document.F1.volume142.value) + 1*(document.F1.volume143.value) + 1*(document.F1.volume144.value) + 1*(document.F1.volume145.value) + 1*(document.F1.volume146.value) + 1*(document.F1.volume147.value) + 1*(document.F1.volume148.value) + 1*(document.F1.volume149.value) + 1*(document.F1.volume150.value) + 1*(document.F1.volume151.value) + 1*(document.F1.volume152.value) + 1*(document.F1.volume153.value) + 1*(document.F1.volume154.value) + 1*(document.F1.volume155.value) + 1*(document.F1.volume156.value) + 1*(document.F1.volume157.value) + 1*(document.F1.volume158.value) + 1*(document.F1.volume159.value) + 1*(document.F1.volume160.value) + 1*(document.F1.volume161.value) + 1*(document.F1.volume162.value) + 1*(document.F1.volume163.value) + 1*(document.F1.volume164.value) + 1*(document.F1.volume165.value) + 1*(document.F1.volume166.value);

 M = Math.round(10*tot); 

 document.F1.vt.value = M/10;

//tot2 = 1*(document.F1.valor[1].value) + 1*(document.F1.valor[2].value) + 1*(document.F1.valor[3].value) + 1*(document.F1.valor[4].value) + 1*(document.F1.valor[5].value);

tot2 = 1*(document.F1.valor1.value) + 1*(document.F1.valor2.value) + 1*(document.F1.valor3.value) + 1*(document.F1.valor4.value) + 1*(document.F1.valor5.value) + 1*(document.F1.valor6.value) + 1*(document.F1.valor7.value) + 1*(document.F1.valor8.value) + 1*(document.F1.valor9.value) + 1*(document.F1.valor10.value) + 1*(document.F1.valor11.value) + 1*(document.F1.valor12.value) + 1*(document.F1.valor13.value) + 1*(document.F1.valor14.value) + 1*(document.F1.valor15.value) + 1*(document.F1.valor16.value) + 1*(document.F1.valor17.value) + 1*(document.F1.valor18.value) + 1*(document.F1.valor19.value) + 1*(document.F1.valor20.value) + 1*(document.F1.valor21.value) + 1*(document.F1.valor22.value) + 1*(document.F1.valor23.value) + 1*(document.F1.valor24.value) + 1*(document.F1.valor25.value) + 1*(document.F1.valor26.value) + 1*(document.F1.valor27.value) + 1*(document.F1.valor28.value) + 1*(document.F1.valor29.value) + 1*(document.F1.valor30.value) + 1*(document.F1.valor31.value) + 1*(document.F1.valor32.value) + 1*(document.F1.valor33.value) + 1*(document.F1.valor34.value) + 1*(document.F1.valor35.value) + 1*(document.F1.valor36.value) + 1*(document.F1.valor37.value) + 1*(document.F1.valor38.value) + 1*(document.F1.valor39.value) + 1*(document.F1.valor40.value) + 1*(document.F1.valor41.value) + 1*(document.F1.valor42.value) + 1*(document.F1.valor43.value) + 1*(document.F1.valor44.value) + 1*(document.F1.valor45.value) + 1*(document.F1.valor46.value) + 1*(document.F1.valor47.value) + 1*(document.F1.valor48.value) + 1*(document.F1.valor49.value) + 1*(document.F1.valor50.value) + 1*(document.F1.valor51.value) + 1*(document.F1.valor52.value) + 1*(document.F1.valor53.value) + 1*(document.F1.valor54.value) + 1*(document.F1.valor55.value) + 1*(document.F1.valor56.value) + 1*(document.F1.valor57.value) + 1*(document.F1.valor58.value) + 1*(document.F1.valor59.value) + 1*(document.F1.valor60.value) + 1*(document.F1.valor61.value) + 1*(document.F1.valor62.value) + 1*(document.F1.valor63.value) + 1*(document.F1.valor64.value) + 1*(document.F1.valor65.value) + 1*(document.F1.valor66.value) + 1*(document.F1.valor67.value) + 1*(document.F1.valor68.value) + 1*(document.F1.valor69.value) + 1*(document.F1.valor70.value) + 1*(document.F1.valor71.value) + 1*(document.F1.valor72.value) + 1*(document.F1.valor73.value) + 1*(document.F1.valor74.value) + 1*(document.F1.valor75.value) + 1*(document.F1.valor76.value) + 1*(document.F1.valor77.value) + 1*(document.F1.valor78.value) + 1*(document.F1.valor79.value) + 1*(document.F1.valor80.value) + 1*(document.F1.valor81.value) + 1*(document.F1.valor82.value) + 1*(document.F1.valor83.value) + 1*(document.F1.valor84.value) + 1*(document.F1.valor85.value) + 1*(document.F1.valor86.value) + 1*(document.F1.valor87.value) + 1*(document.F1.valor88.value) + 1*(document.F1.valor89.value) + 1*(document.F1.valor90.value) + 1*(document.F1.valor91.value) + 1*(document.F1.valor92.value) + 1*(document.F1.valor93.value) + 1*(document.F1.valor94.value) + 1*(document.F1.valor95.value) + 1*(document.F1.valor96.value) + 1*(document.F1.valor97.value) + 1*(document.F1.valor98.value) + 1*(document.F1.valor99.value) + 1*(document.F1.valor100.value) + 1*(document.F1.valor101.value) + 1*(document.F1.valor102.value) + 1*(document.F1.valor103.value) + 1*(document.F1.valor104.value) + 1*(document.F1.valor105.value) + 1*(document.F1.valor106.value) + 1*(document.F1.valor107.value) + 1*(document.F1.valor108.value) + 1*(document.F1.valor109.value) + 1*(document.F1.valor110.value) + 1*(document.F1.valor111.value) + 1*(document.F1.valor112.value) + 1*(document.F1.valor113.value) + 1*(document.F1.valor114.value) + 1*(document.F1.valor115.value) + 1*(document.F1.valor116.value) + 1*(document.F1.valor117.value) + 1*(document.F1.valor118.value) + 1*(document.F1.valor119.value) + 1*(document.F1.valor120.value) + 1*(document.F1.valor121.value) + 1*(document.F1.valor122.value) + 1*(document.F1.valor123.value) + 1*(document.F1.valor124.value) + 1*(document.F1.valor125.value) + 1*(document.F1.valor126.value) + 1*(document.F1.valor127.value) + 1*(document.F1.valor128.value) + 1*(document.F1.valor129.value) + 1*(document.F1.valor130.value) + 1*(document.F1.valor131.value) + 1*(document.F1.valor132.value) + 1*(document.F1.valor133.value) + 1*(document.F1.valor134.value) + 1*(document.F1.valor135.value) + 1*(document.F1.valor136.value) + 1*(document.F1.valor137.value) + 1*(document.F1.valor138.value) + 1*(document.F1.valor139.value) + 1*(document.F1.valor140.value) + 1*(document.F1.valor141.value) + 1*(document.F1.valor142.value) + 1*(document.F1.valor143.value) + 1*(document.F1.valor144.value) + 1*(document.F1.valor145.value) + 1*(document.F1.valor146.value) + 1*(document.F1.valor147.value) + 1*(document.F1.valor148.value) + 1*(document.F1.valor149.value) + 1*(document.F1.valor150.value) + 1*(document.F1.valor151.value) + 1*(document.F1.valor152.value) + 1*(document.F1.valor153.value) + 1*(document.F1.valor154.value) + 1*(document.F1.valor155.value) + 1*(document.F1.valor156.value) + 1*(document.F1.valor157.value) + 1*(document.F1.valor158.value) + 1*(document.F1.valor159.value) + 1*(document.F1.valor160.value) + 1*(document.F1.valor161.value) + 1*(document.F1.valor162.value) + 1*(document.F1.valor163.value) + 1*(document.F1.valor164.value) + 1*(document.F1.valor165.value) + 1*(document.F1.valor166.value);

 document.F1.st.value = tot2;
}


