<!--
var ACSPConsulta

function ACSPOpen(ACSPForm)
{
	window.document.ACSP2.action = ACSPForm.action
	window.document.ACSP2.lk_codig.value = ACSPForm.lk_codig.value
	window.document.ACSP2.lk_senha.value = ACSPForm.lk_senha.value
	window.document.ACSP2.lk_consu.value = ACSPForm.lk_consu.value

if(navigator.appName.indexOf("Netscape") != -1)
   ACSPConsulta = window.open("", "ACSPConsulta","toolbar=no,location=no,scrollbars=yes,resizable=0,top=0,left=0,width=780,height=541,center=yes");
else
    ACSPConsulta = window.open("", "ACSPConsulta","toolbar=no,location=no,scrollbars=yes,resizable=0,top=0,left=0,width=780,height=541,center=yes");
  

	if(ACSPConsulta)
	{
		window.document.ACSP2.submit()
		ACSPForm.reset()
	}

	return false;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
<!--
function Curiosidade() {           
window.open('imagens/popup/guia/index.htm','popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=550,height=320,top=20,left=20,center=yes');
}
//-->
<!--
function AbreSelo() { 
janela=window.open('/empresa_cidada/index.htm', 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=500,height=450,top=20,left=20'); 
}
//-->
<!--
function Abrir() {
window.open('/webtv/tv_index.htm',"ACSP","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,screenX=0,screenY=0,left=0,top=0,width=800,height=600");
}
//-->
<!--
function AbreJanela6() { 
janela=window.open('/diario/balanco/index.html', 'popup', 'scrollbars=yes, width=780, height=450, top=0 left=10'); 
} 
//-->
<!--
function OpenWindow1() { 
janela=window.open('http://mail.acsp.com.br:8008/associes.nsf/associe?OpenForm', 'popup', 'scrollbars=no, toolbar=no, location=no, width=514, height=460, top=5 left=30'); 
} 
//-->
<!--
function OpenWindow() { 
janela=window.open('/troco/falta_troco.htm', 'popup', 'scrollbars=yes, toolbar=no, location=no, width=500, height=450, top=5 left=30'); 
} 
//-->
<!--
function OpenWindow3() { 
janela=window.open('http://mail.acsp.com.br:8008/currinov.nsf/curriculo?OpenForm', 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=528,height=490,top=20,left=20'); 
}
//-->
<!--
function AbreEspecial(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->


<!--	
      function frmcomb(){
		var URL = document.chama.js.options[document.chama.js.selectedIndex].value;
		x=document.chama.js.selectedIndex
		// posição 10 = Associe-se
       if (x==11) 
        {
		    window.open (URL,"_blank",'width=514,height=460,toolbar=no,location=no,left=0,top=0,status=no,menubar=no,scrollbars=no,resizable=no')
            return;
		}
		// Demonstrações Financeiras
       if ((x==13) || (x==36) )  
        {
		    window.open (URL,"_blank",'width=780,height=450,toolbar=no,location=yes,left=0,top=0,status=no,menubar=no,scrollbars=yes,resizable=no')
            return;
		}
				
		// Fale Conosco       
        if (x==14) 
        {
		    window.open (URL,"_blank",'width=474,height=380,toolbar=no,location=no,left=0,top=0,status=no,menubar=no,scrollbars=yes,resizable=no')
            return;
		}
		// Distritais
        if ((x==06) ||  (x==43))
        {
		    window.open (URL,"_blank",'width=600,height=350,toolbar=no,location=no,left=0,top=0,status=no,menubar=no,scrollbars=yes,resizable=no')
            return;
		}
       
	   // WEBTV
        if ((x==53) ||(x==30) ||(x==17) ||(x==45))
        {
		    window.open (URL,"_blank",'width=800,height=450,toolbar=no,location=yes,left=0,top=0,status=no,menubar=no,scrollbars=yes,resizable=no')
            return;
		}
       // 
        if ((x==07)||(x==12))
     		{
		    window.open (URL,"_blank",'width=695,height=510,toolbar=no,location=no,left=0,top=0,status=no,menubar=no,scrollbars=yes,resizable=no')
		}else{
		    window.open (URL,target="_parent")
		}
	}
//-->
<!--	
         function validaCPF() {
                 cpf = document.form1.CPF.value;
                 erro = new String;
                 if (cpf.length < 11) erro += "São necessários 11 digitos para verificação do CPF! ";
                 var nonNumbers = /\D/;
                 if (nonNumbers.test(cpf)) erro += "A verificação de CPF suporta apenas números! ";
                 if (cpf == "00000000000" || cpf == "11111111111" || cpf == "22222222222" || cpf == "33333333333" || cpf == "44444444444" || cpf == "55555555555" || cpf == "66666666666" || cpf == "77777777777" || cpf == "88888888888" || cpf == "99999999999"){
                         erro += "Número de CPF inválido!"
               }
               var a = [];
               var b = new Number;
               var c = 11;
               for (i=0; i<11; i++){
                       a[i] = cpf.charAt(i);
                       if (i < 9) b += (a[i] * --c);
               }
               if ((x = b % 11) < 2) { a[9] = 0 } else { a[9] = 11-x }
               b = 0;
               c = 11;
               for (y=0; y<10; y++) b += (a[y] * c--);
               if ((x = b % 11) < 2) { a[10] = 0; } else { a[10] = 11-x; }
               if ((cpf.charAt(9) != a[9]) || (cpf.charAt(10) != a[10])){
                       erro +="Digito verificador com problema!";
               }
               if (erro.length > 0){
                       alert(erro);
                       return false;
               }
               return true;
      }
//-->

