	var hybrid_arrowImage3 = 'images/flecha-select1.gif';	// Regular arrow

	var hybrid_arrowImageOver3 = 'images/flecha-select1.gif';	// Mouse over

	var hybrid_arrowImageDown3 = 'images/flecha-select1.gif';	// Mouse down

	

	var hybrid_selectBoxIds3 = 0;

	var hybrid_currentlyOpenedOptionBox3 = false;

	var hybrid_editableSelect_activeArrow3 = false;

	

	function hybrid_selectBox_switchImageUrl3()

	{

		if(this.src.indexOf(hybrid_arrowImage3)>=0){

			this.src = this.src.replace(hybrid_arrowImage3,hybrid_arrowImageOver3);	

		}else{

			this.src = this.src.replace(hybrid_arrowImageOver3,hybrid_arrowImage3);

		}

	}

	

	function hybrid_selectBox_showOptions3()

	{

		if(hybrid_editableSelect_activeArrow3 && hybrid_editableSelect_activeArrow3!=this){

			hybrid_editableSelect_activeArrow3.src = hybrid_arrowImage3;

		}

		hybrid_editableSelect_activeArrow3 = this;

		

		var hybrid_numId3 = this.id.replace(/[^\d]/g,'');

		var hybrid_optionDiv3 = document.getElementById('selectBoxOptions' + hybrid_numId3);

		if(hybrid_optionDiv3.style.display=='block'){

			hybrid_optionDiv3.style.display='none';

		}else{

			hybrid_optionDiv3.style.display='block';

			if(hybrid_currentlyOpenedOptionBox3 && hybrid_currentlyOpenedOptionBox3!=hybrid_optionDiv3)

			hybrid_currentlyOpenedOptionBox3.style.display='none';

			hybrid_currentlyOpenedOptionBox3= hybrid_optionDiv3;			

		}

	}

	

	function hybrid_selectOptionValue3()

	{

		var hybrid_parentNode3 = this.parentNode.parentNode;

		var hybrid_textInput3 = hybrid_parentNode3.getElementsByTagName('INPUT')[0];

		hybrid_textInput3.value = this.innerHTML;

		var hybrid_current_id=hybrid_textInput3.getAttribute('id');

		var hybrid_numero_id=hybrid_current_id.substr(6);

		this.parentNode.style.display='none';

		var namePage=document.getElementById("namePage").value;

		var scriptPreloader

		if(namePage=="trabajaconnosotros")

		{scriptPreloader='<img src="../images/ajax-loader.gif" width="16" height="16" /> <span class="ver10bold">Procesando</span>';}

		if(namePage=="login")

		{scriptPreloader='<img src="../images/ajax-loader_perfil.gif" width="16" height="16" /> <span class="ver10bold">Procesando</span>';}

		if(namePage=="concurso")

		{scriptPreloader='<img src="../images/ajax-loader_perfil.gif" width="16" height="16" /> <span class="ver10bold">Procesando</span>';}

		

		if(hybrid_textInput3.name=="txt_departamento")

		{			

		document.getElementById("inputProvincia").innerHTML=scriptPreloader;

		document.getElementById("inputDistrito").innerHTML='<img src="../images/combobox_passtwo.gif" width="198" height="18" /><input id="txt_distrito" type="hidden" name="txt_distrito" class="selectBoxInput3_init" value="---Seleccione Distrito---" readonly="yes" >';

		xajax_getProvince("txt_provincia",hybrid_textInput3.value);

		

		}

		if(hybrid_textInput3.name=="txt_provincia")

		{

		document.getElementById("inputDistrito").innerHTML=scriptPreloader;	

		xajax_getDistrit("txt_distrito",hybrid_textInput3.value);

		}

		

	

	}

	

	var hybrid_activeOption3;

	function hybrid_highlightSelectBoxOption3()

	{

		if(this.style.backgroundColor=='#316AC5'){

			this.style.backgroundColor='#666666';

			this.style.color='';

		}else{

			this.style.backgroundColor='#FFFFFF';

			this.style.color='#000000';			

		}	

		

		if(hybrid_activeOption3){

			hybrid_activeOption3.style.backgroundColor='';

			hybrid_activeOption3.style.color='';			

		}

		hybrid_activeOption3 = this;

		

	}

	

	function createEditableSelect3(combo)

	{



		dest3=document.getElementById(combo);

		dest3.className='selectBoxInput3';

		

		switch (dest3.name) { 

		    case "txt_estadocivil": 

		       dest3.style.width=95 + 'px';

		       break; 

		    case "txt_departamento": 

		       dest3.style.width=175 + 'px';

		       break;

		    case "txt_provincia": 

		       dest3.style.width=175 + 'px';

		       break; 

		    case "txt_distrito": 

		       dest3.style.width=175 + 'px';

		       break;

		    case "txt_motivo": 

		       dest3.style.width=178 + 'px';

		       break;   

		    case "txt_carrera": 

		       dest3.style.width=220 + 'px';

		       break; 

		    case "txt_disponibilidad": 

		       dest3.style.width=120 + 'px';

		       break;

		    case "txt_cinedeseado": 

		       dest3.style.width=178 + 'px';

		       break;   

		    default: 

			   dest3.style.width=150 + 'px';

		}

		

		var hybrid_div3 = document.createElement('DIV');

		hybrid_div3.style.width = dest3.offsetWidth + 18 + 'px';

		hybrid_div3.id = 'selectBox3' + hybrid_selectBoxIds3;

		var parent3 = dest3.parentNode;

		parent3.insertBefore(hybrid_div3,dest3);

		hybrid_div3.appendChild(dest3);	

		hybrid_div3.className='selectBox3';

		

		var img3 = document.createElement('IMG');

		img3.src = hybrid_arrowImage3;

		img3.className = 'selectBoxArrow3';

		

		img3.onmouseover = hybrid_selectBox_switchImageUrl3;

		img3.onmouseout = hybrid_selectBox_switchImageUrl3;

		img3.onclick = hybrid_selectBox_showOptions3;

		img3.id = 'arrowSelectBox2' + hybrid_selectBoxIds3;



		hybrid_div3.appendChild(img3);

		

		var hybrid_optionDiv3 = document.createElement('DIV');

		hybrid_optionDiv3.id = 'selectBoxOptions2' + hybrid_selectBoxIds3;

		hybrid_optionDiv3.className='selectBoxOptionContainer3';

		

		switch (dest3.name) { 

		    case "txt_departamento": 

				hybrid_optionDiv3.style.width=195 + 'px';

		       break;

		    case "txt_provincia": 

				hybrid_optionDiv3.style.width=195 + 'px';

		       break; 

		    case "txt_distrito": 

				hybrid_optionDiv3.style.width=195 + 'px';

		       break;

		    default: 

			   hybrid_optionDiv3.style.width= dest3.offsetWidth + 15 + 'px';

		}

		

		



		hybrid_div3.appendChild(hybrid_optionDiv3);

		

		if(dest3.getAttribute('selectBoxOptions')){

			var options3 = dest3.getAttribute('selectBoxOptions').split(';');

			var optionsTotalHeight3 = 0;

			var optionArray3 = new Array();

			

			for(var no3=0;no3<options3.length;no3++){

				var anOption3 = document.createElement('DIV');

				anOption3.innerHTML = options3[no3];

				anOption3.className='selectBoxAnOption3';

				anOption3.onclick = hybrid_selectOptionValue3;

				anOption3.style.height= 13 + 'px';

				anOption3.onmouseover = hybrid_highlightSelectBoxOption3;

				hybrid_optionDiv3.appendChild(anOption3);

				optionsTotalHeight3 = optionsTotalHeight3 + 14.3 ;

				

				optionArray3.push(anOption3);

			}



			switch (dest3.name) {

		    case "txt_cinedeseado": 

			   hybrid_optionDiv3.style.height =65 + 'px';

		       break;				

		    case "txt_departamento": 

			   hybrid_optionDiv3.style.height =100 + 'px';

		       break;

		    case "txt_provincia": 

				if(optionsTotalHeight3<100){hybrid_optionDiv3.style.height = optionsTotalHeight3;}			

			   	else{hybrid_optionDiv3.style.height =100 + 'px';}

		       break; 

		    case "txt_distrito":

				if(optionsTotalHeight3<85){hybrid_optionDiv3.style.height = optionsTotalHeight3;}	

				else{hybrid_optionDiv3.style.height =85 + 'px';}

		       break;

		    case "txt_carrera":

				if(optionsTotalHeight3<100){hybrid_optionDiv3.style.height = optionsTotalHeight3;}	

				else{hybrid_optionDiv3.style.height =100 + 'px';}

		       break;

		    case "txt_disponibilidad":

				hybrid_optionDiv3.style.height =46 + 'px';

		       break;   

		    case "txt_idioma":

				hybrid_optionDiv3.style.height =46 + 'px';

		       break;

		    case "txt_nivel":

				hybrid_optionDiv3.style.height =46 + 'px';

		       break; 		
			
			case "txt_duracion":
				
				hybrid_optionDiv3.style.height =46 + 'px';
				
				break;
			 

			default: 

			   hybrid_optionDiv3.style.height = optionsTotalHeight3;

			}

	

			hybrid_optionDiv3.style.display='none';

			hybrid_optionDiv3.style.visibility='visible';

		}

		

		hybrid_selectBoxIds3 = hybrid_selectBoxIds3 + 1;

	}