1<!-- 2// Initialize class for Type and Style 3function Type(id, type){ 4 this.id = id; 5 this.type = type; 6} 7 8function Style(id, ciudad, style){ 9 10 this.id = id; 11 this.ciudad = ciudad; 12 this.style = style; 13} 14 15// Initialize Array's Data for Type and Style 16 17TypeArray = new Array( 18 19 new Type(1, "Barquisimeto"), 20 new Type(2, "Cabudare"), 21 new Type(3, "Carora"), 22 new Type(4, "Cubiro"), 23 new Type(5, "Duaca"), 24 new Type(6, "El Tocuyo"), 25 new Type(7, "Quibor"), 26 new Type(8, "Sanare"), 27 new Type(9, "Sarare"), 28 new Type(10, "Duaca"), 29 new Type(11, "Siquisique") 30 31); 32 33StyleArray = new Array( 34 35 new Style(101, 1, "Obelisco y Aeropuerto Internacional Jacinto Lara"), 36 new Style(102, 1, "Museo Barquisimeto, Teatro Juares y Edificio Nacional"), 37 new Style(103, 1, "Santa Rosa"), 38 new Style(104, 1, "Cardenalito del Este, Flor de Venezuela y Monumento al Sol"), 39 new Style(105, 1, "Parque Ayacucho"), 40 new Style(106, 1, "El Manzano y Bosque Macuto"), 41 new Style(107, 1, "Cardenalito del Oeste"), 42 43 new Style(201, 2, "En el poblado"), 44 new Style(202, 2, "Cercano al Estadium Metropolitano de Futbol"), 45 46 new Style(301, 3, "En el poblado"), 47 48 new Style(401, 4, "En el poblado"), 49 new Style(402, 4, "Cercano a las lomas"), 50 51 new Style(501, 5, "En el poblado"), 52 53 new Style(601, 6, "En el poblado"), 54 55 new Style(701, 7, "En el poblado"), 56 new Style(702, 7, "Cercano al Parque Tematico -El Senor de los Alinos-"), 57 58 new Style(801, 8, "En el poblado"), 59 new Style(802, 8, "Cercano al Parque Nacional Yacambu"), 60 61 new Style(901, 9, "En el poblado"), 62 63 new Style(1001, 10, "En el poblado"), 64 65 new Style(1101, 11, "En el poblado"), 66 new Style(1102, 11, "Cercano al Parque Nacional Cerro Saroche") 67); 68 69function init2(sel_type, sel_style){ 70 71 document.bsqAdv.ciudad.options[0] = new Option("Cualquiera"); 72 document.bsqAdv.cercano.options[0] = new Option("Cualquiera"); 73 for(i = 1; i <= TypeArray.length; i++){ 74 document.bsqAdv.ciudad.options[i] = new Option(TypeArray[i-1].type, TypeArray[i-1].id); 75 if(TypeArray[i-1].id == sel_type) 76 document.bsqAdv.ciudad.options[i].selected = true; 77 } 78 OnChange(sel_style); 79} 80 81function OnChange(sel_style){ 82 sel_type_index = document.bsqAdv.ciudad.selectedIndex; 83 sel_type_value = parseInt(document.bsqAdv.ciudad[sel_type_index].value); 84 85 for(i = document.bsqAdv.cercano.length - 1; i > 0; i--) 86 document.bsqAdv.cercano.options[i] = null; 87 j=1; 88 for(i = 1; i <= StyleArray.length; i++){ 89 if(StyleArray[i-1].ciudad == sel_type_value){ 90 document.bsqAdv.cercano.options[j] = new Option(StyleArray[i-1].style, StyleArray[i-1].id); 91 if(StyleArray[i-1].id == sel_style) document.bsqAdv.cercano.options[j].selected = true; 92 j++; 93 } 94 } 95} 96 97//-->
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.