		// CONFIGURACION de las categorias y subcategorias
		var aSubCategorias;
		aSubCategorias = new Array(5);
		aSubCategorias[ 0 ] = new Array(11);
		aSubCategorias[ 1 ] = new Array(2);
		aSubCategorias[ 2 ] = new Array(2);
		aSubCategorias[ 3 ] = new Array(2);
		aSubCategorias[ 4 ] = new Array(2);
		aSubCategorias[ 0 ][ 0 ] = 'tijuana';
		aSubCategorias[ 0 ][ 1 ] = 'cerro colorado';
		aSubCategorias[ 0 ][ 2 ] = 'el centenario';
		aSubCategorias[ 0 ][ 3 ] = 'la mesa';
		aSubCategorias[ 0 ][ 4 ] = 'la presa';
		aSubCategorias[ 0 ][ 5 ] = 'la mesa de otay';
		aSubCategorias[ 0 ][ 6 ] = 'playas de tijuana';
		aSubCategorias[ 0 ][ 7 ] = 'san a. de los buenos';
		aSubCategorias[ 0 ][ 8 ] = 'sanchez taboada';
		aSubCategorias[ 0 ][ 9 ] = 'zona centro';
		aSubCategorias[ 0 ][10 ] = 'la presa rural';
		aSubCategorias[ 1 ][ 0 ] = 'rosarito';
		aSubCategorias[ 1 ][ 1 ] = 'playas de rosarito';
		aSubCategorias[ 2 ][ 0 ] = 'ensenada';
		aSubCategorias[ 2 ][ 1 ] = 'ensenada';
		aSubCategorias[ 3 ][ 0 ] = 'mexicali';
		aSubCategorias[ 3 ][ 1 ] = 'mexicali';
		aSubCategorias[ 4 ][ 0 ] = 'tecate';
		aSubCategorias[ 4 ][ 1 ] = 'tecate';
		//funcion para cargar las subcateogiras de la categoria seleccionada y si mandas subcategoria tambien se selecciona
		function cambiaCategoria( sSubCat )
		{	var n, o, x;	
			o = 1;	
			document.getElementById("delegacion").options.length = 0;
			document.getElementById("delegacion").options[ 0 ] = new Option( 'Seleccione..', '-1' );
			if ( aSubCategorias )
			{	for( n =0; n<= aSubCategorias.length -1; n++ )
				{	if( document.getElementById("ciudad").value == aSubCategorias[ n ][ 0 ] )
					{	for( x=1; x<= aSubCategorias[ n ].length -1; x++)
						{	document.getElementById("delegacion").options[ o ] = new Option( aSubCategorias[ n ][ x ], aSubCategorias[ n ][ x ] );
							if( sSubCat == aSubCategorias[ n ][ x ] )
								document.getElementById("delegacion").options[ o ].selected = true;
							o++;
						}
					}			//if( document.getElementById("categoria").value == aSubcategorias[ 1 ][ n ]
				}			//for( n =0; n<= aSubcategorias[ 0 ].length -1; n++ )
			}		//if ( aSubcatergorias )
		}
		//FUNCION para cambiar a la categoria selecccionada
		function seleccionarCategoria( sCat )
		{	var n;
			for( n=0; n<=document.getElementById("ciudad").options.length -1; n++)
			{	if( sCat == document.getElementById("ciudad").options[ n ].value )
				{	document.getElementById("ciudad").options[ n ].selected = true;
				}
			}
		}		

