/*-----------------------------------------------------------
BANNERS ALEATÓRIOS 468 X 60 PARA ASP

------------------------------------------------------------*/
<!-- 
function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.href = ''
        this.border = ''
        this.mouseover = ''
        this.sponsor = ''
}

ads = new Array()
for(var i=1; i<=3; i++) { ads[i] = new create() }

ads[1].width = "468"
ads[1].height = "60"
ads[1].src = "imagens/banner-bvr1.gif"
ads[1].href = "http://www.bvr.com.br"
ads[1].border = "0"
ads[1].mouseover = "Automação de força de vendas"
ads[1].sponsor = "Automação de força de vendas"

ads[2].width = "468"
ads[2].height = "60"
ads[2].src = "imagens/banner-bvr2.gif"
ads[2].href = "http://www.bvr.com.br"
ads[2].border = "0"
ads[2].mouseover = "Redes e internet de alta velocidade"
ads[2].sponsor = "Redes e internet de alta velocidade"

ads[3].width = "468"
ads[3].height = "60"
ads[3].src = "imagens/banner-bvr3.gif"
ads[3].href = "http://www.bvr.com.br"
ads[3].border = "0"
ads[3].mouseover = "Projetos Web"
ads[3].sponsor = "Projetos Web"

var n = Math.random() + ''
n = parseInt(n.charAt(5))
n = (n % 3) + 1

var image = ads[n]
var adparaasp = ""
adparaasp += '<a target="_blank" href="' + image.href + '" \n'
adparaasp += 'onMouseOver="self.status=\'' + image.mouseover + '\'\;return true" \n'
adparaasp += 'onMouseOut="self.status=\'\'"> \n'
adparaasp += '<img src="../' + image.src + '" width=' + image.width
adparaasp += '\n height=' + image.height + ' border=' + image.border
//ad += '\n><br>Por favor clique em nossos patrocinadores: ' + image.sponsor + ''
// End -->


/*-----------------------------------------------------------
BANNERS ALEATÓRIOS 468 X 60

------------------------------------------------------------*/
<!-- 
function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.href = ''
        this.border = ''
        this.mouseover = ''
        this.sponsor = ''
}

ads = new Array()
for(var i=1; i<=4; i++) { ads[i] = new create() }

ads[1].width = "468"
ads[1].height = "60"
ads[1].src = "imagens/banner-bvr1.gif"
ads[1].href = "http://www.bvr.com.br"
ads[1].border = "0"
ads[1].mouseover = "Automação de força de vendas"
ads[1].sponsor = "Automação de força de vendas"

ads[2].width = "468"
ads[2].height = "60"
ads[2].src = "imagens/banner-bvr2.gif"
ads[2].href = "http://www.bvr.com.br"
ads[2].border = "0"
ads[2].mouseover = "Redes e internet de alta velocidade"
ads[2].sponsor = "Redes e internet de alta velocidade"

ads[3].width = "468"
ads[3].height = "60"
ads[3].src = "imagens/banner-bvr3.gif"
ads[3].href = "http://www.bvr.com.br"
ads[3].border = "0"
ads[3].mouseover = "Projetos Web"
ads[3].sponsor = "Projetos Web"

ads[4].width = "468"
ads[4].height = "60"
ads[4].src = "imagens/banner-climatempo2.gif"
ads[4].href = "http://www.climatempo.com.br"
ads[4].border = "0"
ads[4].mouseover = "ClimaTempo"
ads[4].sponsor = "ClimaTempo"

var n = Math.random() + ''
n = parseInt(n.charAt(5))
n = (n % 4) + 1

var image = ads[n]
var ad = ""
ad += '<a target="_blank" href="' + image.href + '" \n'
ad += 'onMouseOver="self.status=\'' + image.mouseover + '\'\;return true" \n'
ad += 'onMouseOut="self.status=\'\'"> \n'
ad += '<img src="' + image.src + '" width=' + image.width
ad += '\n height=' + image.height + ' border=' + image.border
//ad += '\n><br>Por favor clique em nossos patrocinadores: ' + image.sponsor + ''
// End -->

/*-----------------------------------------------------------
ENQUETE

------------------------------------------------------------*/

<!--
function Fun_Enviar_Pop(formID)
{
	formularios = document.forms.length;
	for(i=0;i<formularios;i++)
		{
		if(document.forms[i].name==formID)
		{
		formulario = i;
		break;
		}
	}
	num_respostas = document.forms[formulario].opcao.length;
	resposta = num_respostas;
	respostas = "";
	for(i=0;i<num_respostas;i++)
		{
		if(document.forms[formulario].opcao[i].checked)
		{
			resposta = i;
		}
	}
	if(resposta==num_respostas)
	{
	alert("Uma opção deve ser escolhida!");
	}
	else
	{
	document.forms[formulario].submit();
	}
}
//-->
function Abre(url, width, height)
{
window.open(url,"_blank","resizable=yes,toolbar=no,status=no,menubar=no,scrollbars=yes,width=" + width + ",height=" + height)
}
function Fun_Enviar(formID)
{
 var formularios = document.forms.length;
 for(i=0;i<formularios;i++)
  {
  if(document.forms[i].name==formID)
  {
  var formulario = i;
  break;
  }
 }
 var num_respostas = document.forms[formulario].opcao.length;
 var resposta = num_respostas;
 var respostas = "";
 for(i=0;i<num_respostas;i++)
  {
  if(document.forms[formulario].opcao[i].checked)
   {
   resposta = i;
   if(respostas)
   {
    respostas=respostas + "&";
   }
   else
   {
    respostas=respostas + "?";
   }
   respostas=respostas + "opcao=" + document.forms[formulario].opcao[i].value;
  }
 }
 if(resposta==num_respostas)
 {
 alert("Uma opção deve ser escolhida!");
 }
 else
 {
 Abre("http://www.enquetes.com.br/enquete.asp" + respostas,400,340);
 }
}
//-->


/*-----------------------------------------------------------
MUDANÇA DE COR DA TABELA

------------------------------------------------------------*/

<!--

 function mOvr(src,clrOver) {

 if (!src.contains(event.fromElement)) {

	 src.style.cursor = 'hand';

	 src.bgColor = clrOver;

	}

 }

 function mOut(src,clrIn) {

	if (!src.contains(event.toElement)) {

	 src.style.cursor = 'default';

	 src.bgColor = clrIn;

	}

 }

 function mClk(src,indice) {

 if(event.srcElement.tagName=='TD')

	document.getElementById("link" + indice).click();
	 //src.children.tags('A')[0].click();

 }
  // -->



/*-----------------------------------------------------------
BANNERS PEQUENOS ALEATORIOS

------------------------------------------------------------*/

function banner() {

number = 0;

// bannerArray
banner[number++] = "<td><a href='cadastro.html'><img src='imagens/banner-cadastre.gif' border='1' width='145' height='55'></a></td>"
banner[number++] = "<td><a href='http://www.bvr.com.br' target='_blank'><img src='imagens/banner-bvrpeq.gif' border='1' width='145' height='55'></a></td>"
banner[number++] = "<td><a href='http://www.elotec.com.br/' target='_blank'><img src='imagens/banner-elotec.gif' border='1' width='145' height='55'></a></td>"
banner[number++] = "<td><a href='http://www.recifecvb.com.br/' target='_blank'><img src='imagens/banner-rcvb.gif' border='1' width='145' height='55'></a></td>"
// keep adding items here...

increment = Math.floor(Math.random() * number)

do{
increment2 = Math.floor(Math.random() * number)
increment3 = Math.floor(Math.random() * number)
increment4 = Math.floor(Math.random() * number)
}while(increment == increment2 || increment == increment3 || increment2 == increment3 || increment3 == increment4);

document.write(banner[increment]);
document.write(banner[increment2]);
document.write(banner[increment3]);
};


/*-----------------------------------------------------------
BANNERS PEQUENOS ALEATORIOS PARA PÁGINAS ASP

------------------------------------------------------------*/

function bannerparaasp() {

number = 0;

// bannerArray
banner[number++] = "<td><a href='../cadastro.html'><img src='../imagens/banner-cadastre.gif' border='1' width='145' height='55'></a></td>"
banner[number++] = "<td><a href='http://www.bvr.com.br'><img src='../imagens/banner-bvrpeq.gif' border='1' width='145' height='55'></a></td>"
banner[number++] = "<td><a href='http://www.elotec.com.br/' target='_blank'><img src='../imagens/banner-elotec.gif' border='1' width='145' height='55'></a></td>"
banner[number++] = "<td><a href='http://www.recifecvb.com.br/' target='_blank'><img src='../imagens/banner-rcvb.gif' border='1' width='145' height='55'></a></td>"
// keep adding items here...

increment = Math.floor(Math.random() * number)

do{
increment2 = Math.floor(Math.random() * number)
increment3 = Math.floor(Math.random() * number)
increment4 = Math.floor(Math.random() * number)
}while(increment == increment2 || increment == increment3 || increment2 == increment3 || increment3 == increment4);

document.write(banner[increment]);
document.write(banner[increment2]);
document.write(banner[increment3]);
};

/*-----------------------------------------------------------
GUIANEWS ALEATÓRIO

------------------------------------------------------------*/

function guianews() {

number = 0;


// guianewsArray
guianews[number++] = "<script language='JavaScript' src='http://www.guianews.com.br/js/esportes.js'></script>"
guianews[number++] = "<script language='JavaScript' src='http://www.guianews.com.br/js/internet.js'></script>"
guianews[number++] = "<script language='JavaScript' src='http://www.guianews.com.br/js/cinema.js'></script>"
guianews[number++] = "<script language='JavaScript' src='http://www.guianews.com.br/js/musica.js'></script>"
guianews[number++] = "<script language='JavaScript' src='http://www.guianews.com.br/js/turismo.js'></script>"
// keep adding items here...

increment = Math.floor(Math.random() * number)

do{
increment2 = Math.floor(Math.random() * number)
increment3 = Math.floor(Math.random() * number)
increment4 = Math.floor(Math.random() * number)
increment5 = Math.floor(Math.random() * number)
}while(increment == increment2 || increment == increment3 || increment2 == increment3 || increment3 == increment4 || increment4 == increment5);

document.write(guianews[increment]);
};



/*-----------------------------------------------------------
SELEÇÃO DOS DROPDOWNS DA BUSCA

------------------------------------------------------------*/
function manuselected(elem){
for (var i = document.f2.CodObj.options.length; i >= 0; i--){
document.f2.CodObj.options[i] = null;
}
if (elem.options[elem.selectedIndex].value==10){
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('','');document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Buffets','11');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Lanchonetes','12');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Padarias','18');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Pizzarias','14');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Restaurantes','13');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Sorveterias','15');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Supermercados','16');
}
if (elem.options[elem.selectedIndex].value==37){
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('','');document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Bares','89');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Boites','88');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Galerias de Arte','39');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Museus','41');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Parques','87');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Teatros','40');
}
if (elem.options[elem.selectedIndex].value==42){
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('','');document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Bibliotecas','44');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Colegios e Cursos','43');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Livrarias','45');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Papelarias','90');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Universidades e Faculdades','46');
}
if (elem.options[elem.selectedIndex].value==28){
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('','');document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Academias de Ginastica','30');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Clubes','34');
}
if (elem.options[elem.selectedIndex].value==19){
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('','');document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Assistencia Tecnica','20');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Consultoria','21');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Empresas','23');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Equipamentos','24');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Internet','25');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Redes','27');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Sistemas','26');
}
if (elem.options[elem.selectedIndex].value==57){
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('','');document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Clinicas de estetica','59');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Cosmeticos','60');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Perfumarias','94');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Vestuario Feminino','96');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Vestuario Infantil','95');
}
if (elem.options[elem.selectedIndex].value==78){
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('','');document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Construtoras','79');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Imobiliaria','81');
}
if (elem.options[elem.selectedIndex].value==1){
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('','');document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Clinicas','2');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Equipamentos','4');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Farmacias','5');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Hospitais','6');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Laboratorios','7');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Planos de Saude','8');
}
if (elem.options[elem.selectedIndex].value==64){
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('','');document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Agencias','66');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Hotelaria','65');
}
if (elem.options[elem.selectedIndex].value==48){
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('','');document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Aluguel','49');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Concessionarias','52');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Equipadoras','50');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Lavajatos','93');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Lojas de Veiculos','91');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Oficinas','53');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Pecas','51');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Reboques','55');
document.f2.CodObj.options[document.f2.CodObj.options.length] = new Option('Servicos','92');
}
}

 function Redireciona()
 {
   document.f2.submit();

   }
