272
| <![CDATA[<embed src="swf/topo.swf"
width="979"
height="222"
align="middle"
quality="high"
name="reel"
allowscriptaccess="sameDomain"
allowfullscreen="true" t
ype="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />]]>
|
16
| <![CDATA[<script language="javascript">AC_FL_RunContent = 0;</script>]]>
|
33
| <![CDATA[<script type="text/javascript">
$(document).ready(function () {
$('#vch_cnpj').setMask('cnpj');
$('#nascimento').setMask('date');
});
$(function () {
$('form.jqtransform').validationEngine();
});
$(document).ready(function () {
$('input:checkbox:not([safari])').checkbox();
$('input[safari]:checkbox').checkbox({cls: 'jquery-safari-checkbox'});
});
//INCREMENTA NO OPTION
function InsereElemento(dest, val, txt) {
proximo = dest.length;
valor = val;
texto = txt;
var novoitem = new Option(texto, valor);
eval('dest.options[proximo]=novoitem');
val.value = '';
}
//NAO PERMITE INSERIR VALORES IGUAIS NO LIST
function existeObj(obj, valor) {
for (var i = (obj.options.length - 1); i >= 0; i--) {
if (obj.options[i].value == valor) {
return true;
}
}
return false;
}
//ADICIONA OS HOTEIS NO CHECKLIST
function addDadosLista(obj) {
var textlist;
var valorlist;
var valorHotel;
if ($("#vch_contato").val() == "") {
alert('Preencha o campo Nome do Representante');
$("#vch_contato").focus();
return false;
}
if ($("#vch_cargo").val() == "") {
alert('Preencha o campo Cargo do Representante');
$("#vch_cargo").focus();
return false;
}
if ($("#vch_email_contato").val() == "") {
var vch_email_contatoTxt = "E-mail:";
var vch_email_contatoValue = "NULL";
} else {
var vch_email_contatoTxt = "E-mail: " + $("#vch_email_contato").val();
}
if ($("#ddd_telefone_contato").val() == "") {
alert('Preencha o campo DDD');
$("#ddd_telefone_contato").focus();
return false;
}
if ($("#vch_telefone_contato").val() == "") {
alert('Preencha o campo Telefone do Representante');
$("#vch_telefone_contato").focus();
return false;
}
if ($("#vch_ramal").val() == "") {
var vch_ramalTxt = ", Ramal: ";
var vch_ramalValue = "NULL";
} else {
var vch_ramalTxt = ", Ramal: " + $("#vch_ramal").val();
vch_ramalValue = $("#vch_ramal").val();
}
var telefone = $("#ddd_telefone_contato").val() + "|" + $("#vch_telefone_contato").val() + "|" + vch_ramalValue;
valorlist = $("#vch_contato").val() + "|" + $("#vch_cargo").val() + "|" + $("#vch_email_contato").val() + "|" + telefone;
textlist = "Nome: " + $("#vch_contato").val() + ", Cargo: " + $("#vch_cargo").val() + ", E-mail: " + $("#vch_email_contato").val();
textlist += "(" + $("#ddd_telefone_contato").val() + ")" + $("#vch_telefone_contato").val() + vch_ramalTxt;
if (existeObj(obj, valorlist)) {
alert("J� existe esta op��o.");
return false;
}
//FUNCAO DO FRAMEWORK
InsereElemento(obj, valorlist, textlist);
selecionaTodosObj(obj);
$("#vch_contato").val("");
$("#vch_cargo").val("");
$("#vch_email_contato").val("");
$("#ddd_telefone_contato").val("");
$("#vch_telefone_contato").val("");
$("#vch_ramal").val("");
}
/**
* REMOVE OS OBJETOS DO SELECTLIST
*/
function removeAlternativa(obj) {
for (var i = (obj.options.length - 1); i >= 0; i--) {
if (obj.options[i].selected) {
obj.options[i] = null;
}
}
selecionaTodosObj(obj);
}
/**
* SELECIONA TODOS OS OBJETOS DO SELECTLIST
*/
function selecionaTodosObj(obj) {
if (obj.options.length != 0) {
//alert(document.form1.ques_82.options.length);
//return false;
for (var i = (obj.options.length - 1); i >= 0; i--) {
obj.options[i].selected = true;
}
}
}
</script>]]>
|
179
| <![CDATA[<script type="text/javascript">
$(document).ready(function () {
$('#selectBase').sSelect();
$('#selectBase2').sSelect();
$('#selectBase3').sSelect();
$('#selectBase4').sSelect();
$('#codtipoproduto').sSelect();
$('#selectBase6').sSelect();
$('#selectBase7').sSelect();
});
</script>]]>
|
192
| <![CDATA[<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-90483679-6']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>]]>
|
249
| <![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>]]>
|
348
| <![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>]]>
|
1090
| <![CDATA[<script>
if ("" != "") {
combo = document.cadastroj.vch_uf;
for (i = 0; i < combo.length; i++) {
if (combo.options[i].value == "") {
combo.options[i].selected = true;
break;
}
}
document.cadastroj.bit_filial.checked = false;
}
function formatar(src, mask) {
var i = src.value.length;
var saida = mask.substring(0, 1);
var texto = mask.substring(i)
if (texto.substring(0, 1) != saida)
{
src.value += texto.substring(0, 1);
}
}
function validaCamposDinamicos() {
obj = document.cadastroj.elements["codatividade[]"];
obj2 = document.cadastroj.elements["codservico[]"];
if (obj || obj2) {
//submitarTela();
} else {
alert('� obrigat�rio o cadastro de produto ou servi�o para poder continuar.');
document.cadastroj.codgrupo.focus();
return false;
}
}
</script>]]>
|