function hyperlink(myid) {

    var nome = new Array();

    nome[0] = new Array ("Classificação do Campeonato",	 "Corridas.aspx",      "_self");
    nome[1] = new Array ("Augusto Lopes",	 "Prop.aspx?codpiloto=01",         "_self");
    nome[2] = new Array ("Pituco",		     "Prop.aspx?codpiloto=02",         "_self");
    nome[3] = new Array("Márcio Julião", "Prop.aspx?codpiloto=03", "_self");    
    nome[4] = new Array ("Nilo Alcantara",	 "Prop.aspx?codpiloto=43",         "_self");
    nome[5] = new Array ("Eduardo Oliveira", "Prop.aspx?codpiloto=04",         "_self");    
    nome[6] = new Array ("Clóvis",         	 "Prop.aspx?codpiloto=05",         "_self");
    nome[7] = new Array ("Fábio Nascimento", "Prop.aspx?codpiloto=06",         "_self");
    nome[8] = new Array ("Alberto Julião",     	"Prop.aspx?codpiloto=07",         "_self");
    nome[9] = new Array ("Edson Conselheiro",         	"Prop.aspx?codpiloto=08",         "_self");
    nome[10] = new Array ("Armindo",         	"Prop.aspx?codpiloto=10",         "_self");
    nome[11] = new Array ("Roberto Caetano",  	"Prop.aspx?codpiloto=12",         "_self");
    nome[12] = new Array ("Laerte Ribeiro",         	"Prop.aspx?codpiloto=13",         "_self");
    nome[13] = new Array ("Armando Lopes",         	"Prop.aspx?codpiloto=14",         "_self");
    nome[14] = new Array ("Anderson Freitas",         	"Prop.aspx?codpiloto=15",         "_self");
    nome[15] = new Array ("Lucimar Tavares",         	"Prop.aspx?codpiloto=16",         "_self");
    nome[16] = new Array ("Glauco Julião",         	"Prop.aspx?codpiloto=17",         "_self");
    nome[17] = new Array ("Osni",         	    "Prop.aspx?codpiloto=18",         "_self");    
    nome[18] = new Array ("Fábio Miyazono",     "Prop.aspx?codpiloto=20",         "_self");
    nome[19] = new Array ("Alexandre Scuriza",  "Prop.aspx?codpiloto=21",         "_self");
    nome[20] = new Array ("José Fernandes",     "Prop.aspx?codpiloto=22",         "_self");
    nome[21] = new Array ("Orlando Matos",      "Prop.aspx?codpiloto=23",         "_self");
    nome[22] = new Array ("Fábio Laranjo",      "Prop.aspx?codpiloto=24",         "_self");
    nome[23] = new Array ("Bruno Renno",   	    "Prop.aspx?codpiloto=25",         "_self");
    nome[24] = new Array ("André Campos",       "Prop.aspx?codpiloto=26",         "_self");
    nome[25] = new Array ("Wendell Capraro",    "Prop.aspx?codpiloto=27",         "_self");
    nome[26] = new Array ("Everaldo Paulo",    	"Prop.aspx?codpiloto=28",         "_self");
    nome[27] = new Array ("Rodrigo Melles",     "Prop.aspx?codpiloto=29",         "_self");
    nome[28] = new Array ("Rogério Lorente",    "Prop.aspx?codpiloto=33", "_self");
    nome[29] = new Array ("Alfredo Leitão",     "Prop.aspx?codpiloto=34",         "_self");
    nome[30] = new Array ("Anderson Andrade",   "Prop.aspx?codpiloto=35",         "_self");
    nome[31] = new Array ("Alexandre Nishida",  "Prop.aspx?codpiloto=36",         "_self");
    nome[32] = new Array ("Peterson Nakamura",  "Prop.aspx?codpiloto=37",         "_self");
    nome[33] = new Array ("André Tristão",     	"Prop.aspx?codpiloto=41",         "_self");
    nome[34] = new Array ("Hercilio Colazzo",   "Prop.aspx?codpiloto=38",         "_self");
    nome[35] = new Array ("Rogério Batista",    "Prop.aspx?codpiloto=39",         "_self");
    nome[36] = new Array ("Thiago Guerra",      "Prop.aspx?codpiloto=39",         "_self");
    nome[37] = new Array("César Fujii", "Prop.aspx?codpiloto=40", "_self");
    nome[38] = new Array("César Fujji", "Prop.aspx?codpiloto=40", "_self");    
    nome[39] = new Array ("CAK Competition",    "http://cakcompetition.sites.uol.com.br",         		 "_blank");
    nome[40] = new Array ("AMIKA",              "http://www.amika.com.br",                       		 "_blank");
    nome[41] = new Array ("GAZETA DO BRAÇÃO",   "http://www.amika.com.br/midia/gazeta_bracao/index.htm",         "_blank");
    nome[42] = new Array ("C.A.K.",         	"http://www.cak.esp.br",         				 "_blank");
    nome[43] = new Array ("CPKA",               "http://www.cpka.com.br",                       		 "_blank");
    nome[44] = new Array ("Pangaré",            "http://www.pangare.esp.br/",          "_blank");
    nome[45] = new Array ("GP Kart",         	"http://www.gpkart.com.br",         				 "_blank");
    nome[46] = new Array ("Speed Hunters",      "http://www.indoorkart.com.br",         		 "_blank");
    nome[47] = new Array ("Kart in ",           "http://www.kartin.com.br",         				 "_blank");
    nome[48] = new Array ("Aldeia da Serra",    "http://www.kartodromoaldeiadaserra.com.br",         	 "_blank");
    nome[49] = new Array ("Kartódromo de Atibaia","http://www.kartodromodeatibaia.com.br",         		 "_blank");
    nome[50] = new Array ("Granja Viana",       "http://www.kartodromogranjaviana.com.br",         		 "_blank");
    nome[51] = new Array ("Pit Stop",           "http://www.pitstopkart.com.br",         	 "_blank");
    nome[52] = new Array ("Planet Kart",        "http://www.planetakart.com.br",         			 "_blank");
    nome[53] = new Array ("Planet Kart",        "http://www.planetkart.com.br",         			 "_blank");
    nome[54] = new Array ("Virada Esportiva",   "http://www.viradaesportivasp.com.br",         			 "_blank");
    nome[55] = new Array ("Erick Yudi",   		"Prop.aspx?codpiloto=42", 	 "_self");
    nome[56] = new Array ("Underground",   		"http://www.kartingas.com.br/Underground.aspx", 	 		 "_self");
    nome[57] = new Array ("Rafael Medrado",   	"Prop.aspx?codpiloto=44", 	 "_self");
    nome[58] = new Array ("Joel Queiroz",   		"Prop.aspx?codpiloto=45", 	 "_self");
    nome[59] = new Array ("dias sem",   		"contagem.aspx", 	 "_self");
    nome[60] = new Array ("Carlos Eduardo",   	"Prop.aspx?codpiloto=46", 	 "_self");
    nome[61] = new Array ("Ebert Leoni",   	"Prop.aspx?codpiloto=47", 	 "_self");
    nome[62] = new Array ("Raphael Mesquita",  	"Prop.aspx?codpiloto=48", 	 "_self");
    nome[63] = new Array ("Campeonato Brasileiro de Kart Amador de 2009",   	"http://www.amika.com.br/festivalbrasileiro2009", 	 "_blank");
    nome[64] = new Array("Velopark", "http://www.velopark.com.br", "_blank");        
    nome[65] = new Array("Amika", "http://www.amika.com.br", "_blank");
    nome[66] = new Array("Pangare", "http://www.pangare.esp.br", "_blank");
    nome[67] = new Array("NAZKAR", "http://www.nazkar.com.br", "_blank");
    nome[68] = new Array("F KART", "http://www.f-kartracing.com", "_blank");
    nome[69] = new Array("Guilherme Borgueresi", "Prop.aspx?codpiloto=50", "_self");
    nome[70] = new Array("Kartistas", "http://www.kartistas.com.br", "_blank");
    nome[71] = new Array("Alexander Martins", "Prop.aspx?codpiloto=51", "_self");
    nome[72] = new Array("Fábio Nakiri", "Prop.aspx?codpiloto=52", "_self");
    nome[73] = new Array("Eduardo Violante", "Prop.aspx?codpiloto=49", "_self");
    nome[74] = new Array("Dema", "Prop.aspx?codpiloto=53", "_self");
    nome[75] = new Array("Miguel Castro", "Prop.aspx?codpiloto=54", "_self");
    nome[76] = new Array("Vanderlei Vasques", "Prop.aspx?codpiloto=55", "_self");
    nome[77] = new Array("Luy", "Prop.aspx?codpiloto=56", "_self");
    
    var x = document.getElementById(myid).innerHTML;

    for (n = 0; n < nome.length ; n++){
//        nome[n][1] = (!nome[n][1]) ? "#" : nome[n][1];
        arr = new RegExp(nome[n][0], "g");
    	x = x.replace(arr,"<a href='" + nome[n][1] + "' target='"+nome[n][2]+"'>"+ nome[n][0] + "</a>");
    }

    document.getElementById(myid).innerHTML = x;

}


function tiraAcento(text) {
    text = text.replace(new RegExp('[ÁÀÂÃ]', 'gi'), 'A');
    text = text.replace(new RegExp('[ÉÈÊ]', 'gi'), 'E');
    text = text.replace(new RegExp('[ÍÌÎ]', 'gi'), 'I');
    text = text.replace(new RegExp('[ÓÒÔÕ]', 'gi'), 'O');
    text = text.replace(new RegExp('[ÚÙÛ]', 'gi'), 'U');
    text = text.replace(new RegExp('[Ç]', 'gi'), 'C');
    return text;
} 



// Funcao para tabela zebrada
function zebra(id,cor1,cor2){

	cor1  = (!cor1)  ? "#FFFFCC" : cor1;
	cor2  = (!cor2)  ? "#C0C0C0" : cor2;
	if (document.getElementById(id) != null) 
    {
	    var x = document.getElementById(id).getElementsByTagName('tr');

	    for(i = 0; i < x.length ; i++)
		    x[i].style.backgroundColor = (i % 2 == 0) ? cor1 : cor2;
    }		    

}

