220
| <![CDATA[<input name="tipo" value="cpf" type="radio" checked onclick="javascript: return mascaraCpfCnpj(this.value);"/>]]>
|
226
| <![CDATA[<input name="tipo" value="cnpj" type="radio" onclick="javascript: return mascaraCpfCnpj(this.value);"/>]]>
|
236
| <![CDATA[<input class="botaoMaisEmi" type="button" name="button3" onclick="javascript:return gerarCRC();"/>]]>
|
11
| <![CDATA[<script language="javascript">AC_FL_RunContent = 0;</script>]]>
|
63
| <![CDATA[<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else
{
AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0', 'name', '', 'width', '979', 'height', '222', 'align', 'middle', 'id', '', 'src', '', 'wmode', 'transparent', 'quality', 'high', 'allowscriptaccess', 'sameDomain', 'allowfullscreen', 'true', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'movie', 'swf/topo');
}
</script>]]>
|
148
| <![CDATA[<script type="text/javascript">
$(document).ready(function () {
$('#cpf_cnpj').setMask('cpf'); // cpf
//$('input[name="campo_cnpj"]').setMask('cnpj'); // cnpj
});
function mascaraCpfCnpj(tipo) {
document.frmGerar_crc.cpf_cnpj.value = "";
if (tipo == "cpf") {
$('#cpf_cnpj').setMask('cpf'); // cpf
} else if (tipo == "cnpj") {
$('#cpf_cnpj').setMask('cnpj'); // cnpj
}
}
/**
* VALIDA O CPF/CNPJ E GERA O RELAT�RIO DO CRC
*/
function gerarCRC() {
var obj = document.frmGerar_crc.cpf_cnpj;
if (obj.value == "") {
alert("Digite o CPF ou CNPJ");
obj.focus();
return false;
}
var tipo = document.frmGerar_crc.tipo;
for (var i = 0; tipo.length > i; i++) {
if (tipo[i].checked) {
if (tipo[i].value == "cpf") {
if (!validacpf2(obj)) {
return false;
}
//return validacpf2(obj);
} else if (tipo[i].value == "cnpj") {
if (!validaCNPJ(obj)) {
return false;
}
//return validaCNPJ(obj);
}
}
}
//replace
var documento = obj.value;
documento = documento.replace(".","");
documento = documento.replace(".","");
documento = documento.replace("/","");
documento = documento.replace("-","");
//http://200.223.221.26:5020/webrun/form.jsp?ext=S&sys=LIC&action=openform&formID=464569414&align=0&mode=-1&goto=-1&scrolling=no&filter=V.Doc=09543618000172
var url = 'http://ct.camacari.ba.gov.br:5020/webrun/form.jsp?ext=S&sys=LIC&action=openform&formID=464569414&align=0&mode=-1&goto=-1&scrolling=no&filter=V.Doc=' + documento;
//var url = 'http://alz.camacari.ba.gov.br/alianza/compras/fornecedores/relatorios/crcweb.php?' + obj.value;
//window.open(url, "radio", "scrollbars=1,menubar=0,directories=0,location=0,titlebar=0,statusbar=0,menubar=0,resizable=1,fullscren=1");
//window.open( url, 'Emitir CRC','scrollbars=1,menubar=0,directories=0,location=0,titlebar=0,statusbar=0,menubar=0,resizable=1,fullscren=1');
window.open(url,'_blank');
}
</script>]]>
|
0
| Não há código fonte a ser exibido.
|