// JavaScript Document
/**************************************************
* Llamada a este archivo desde cualquier página Web.
<!-- ---------------------------------------------------------------------------------------------- -->
<script language="JavaScript" src="css-js/java.js" type="text/JavaScript"></script>
<!-- ---------------------------------------------------------------------------------------------- -->
<!-- Agrega un ícono en la barra de dirección del navegador -->
<link rel="icon" href="img/logo.gif"  type="image/png">
<!-- ---------------------------------------------------------------------------------------------- -->
**************************************************/

//-- ----------------------------------------------------------------------------------------------
// Funciones para abrir ventanar Pop Up. Del album de fotos de la semana cultural
function ventana(pagina)
{	var nuevaventana
	
	nuevaventana = window.open(pagina, "", "toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=0, width=660, height=650")
}
//-- ----------------------------------------------------------------------------------------------
function ventana_brochure_request(pagina)
{	var nuevaventana	
	
	nuevaventana = window.open(pagina, "", "toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width=350, height=435")
}

//"#" onClick="ventana('photos/photos.htm');"
//"#" onClick="ventana_2('brochure_requests.htm');"
//-- ----------------------------------------------------------------------------------------------

function ventana_representatives(pagina)
{	var nuevaventana	
	
	nuevaventana = window.open(pagina, "", "toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=0, width=400, height=550")
}

//"#" onClick="ventana_representatives('utah.htm');"
//-- ----------------------------------------------------------------------------------------------

function ventana_avi(pagina)
{	var nuevaventana
	
	nuevaventana = window.open(pagina, "", "toolbar=0, location=0, directories=0, status=0, menubar=1, scrollbars=1, resizable=0, width=780, height=500")
}
//"#" onClick="ventana_avi('avi_international.htm');"

//-- ----------------------------------------------------------------------------------------------
function ventana_promo(pagina)
{	var nuevaventana
	
	nuevaventana = window.open(pagina, "", "toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width=470, height=470")
}
//"#" onClick="ventana_promo('offer_01.htm');"
//-- ----------------------------------------------------------------------------------------------
function ventana_grupos(pagina)
{	var nuevaventana
	
	nuevaventana = window.open(pagina, "", "toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width=780, height=500")
}
//"#" onClick="ventana_grupos('nombre_grupo.htm');"

//-- ----------------------------------------------------------------------------------------------
// Esta función abre una ventana para la galería de fotos de la página principal.
function ventana_gal(pagina)
{	var nuevaventana
	
	nuevaventana = window.open(pagina, "", "toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=0, width=830, height=610")
}

//-- ----------------------------------------------------------------------------------------------
// Esta función abre una ventana para la galería de fotos del Niño con cariño .
function ventana_ninno(pagina)
{	var nuevaventana
	
	nuevaventana = window.open(pagina, "", "toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=0, width=830, height=610")
}

//-- ----------------------------------------------------------------------------------------------

// Esta función abre una ventana para la galería de fotos del Soccer Camp.
function ventana_soccer(pagina)
{	var nuevaventana
	
	nuevaventana = window.open(pagina, "", "toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=0, width=830, height=610")
}

//-- ----------------------------------------------------------------------------------------------

function ventana_destination(pagina)
{	var nuevaventana	
	
	nuevaventana = window.open(pagina, "", "toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width=500, height=900")
}

//"#" onClick="ventana_destiantion('pagina.htm');"
//-- ----------------------------------------------------------------------------------------------

function ventana_uncvideo(pagina)
{	var nuevaventana	
	
	nuevaventana = window.open(pagina, "", "toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width=400, height=350")
}

//<a href="#" onClick="ventana_uncvideo('album_groups/unc_video.htm');">
//--------------------------------------------------------------------------------------------------

function ventana_deals(pagina)
{	var nuevaventana	
	
	nuevaventana = window.open(pagina, "", "toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width=700, height=760")
}

//"#" onClick="ventana_deals('lowseasondeals.htm');"
//-- ----------------------------------------------------------------------------------------------



//Función que muestra un mensaje de advertencia, según la opción de créditos que se eligió
function evaluar()
{
	opc = form.university.options[form.university.selectedIndex].value
	if (opc == "NMSU (currently student)" || opc == "NMSU (via distance education)")
			alert("Attention!\n\nIt is the responsibility of the student to contact NMSU to complete the corresponding procedures in order to obtain credit. It is absolutely necessary that this process be completed BEFORE the arrival of the student at CPI.");
else
		if (opc == "Directly through my own University")
			alert("Attention!\n\nIt is the responsibility of the student to contact their university to determine proper procedure to obtain credits. If, the student has not contacted the university at the time that she/he is registering with CPI, this option should be left blank on the form. To obtain university credits, it is absolutely necessary that CPI know the requirements of the university BEFORE the students’ arrival to Costa Rica.");
}

// Script para la barra de estado.

var speed = 100
var pause = 2500
var timerID = null
var bannerRunning = false
var ar = new Array()
	ar[0] = "Limited Class Size: All CPI classes are limited to four students."
	ar[1] = "Three Campuses: CPI offers the city life, the cloud forest, and the tropical beaches."
	ar[2] = "Family Homestay: you become completely immersed in the culture."
	ar[3] = "Academic Coordinator: Student placement and campus class changes."
	ar[4] = "Support Services: Bilingual office staff to assist at all levels."
	ar[5] = "Free Activities: CPI provides a wide range of activities."
	ar[6] = "Professional Seminars: CPI offers medical and social work seminars."
	ar[7] = "Academic Credits: CPI works with the University of Southern Mississippi."
	ar[8] = "Pricing: CPI offers a high quality language program for a competitive price."
	ar[9] = "Customer Satisfaction: CPI ensures the highest level of customer satisfaction."

	var currentMessage = 0
	var offset = 0

	function stopBanner() {
		if (bannerRunning)
			clearTimeout(timerID)
			bannerRunning = false
		}

	function startBanner() {
		stopBanner()
		showBanner()
	}

	function showBanner() {
	var text = ar[currentMessage]
	if (offset < text.length) {
		if (text.charAt(offset) == " ")
			offset++ 
			var partialMessage = text.substring(0, offset + 1) 
			window.status = partialMessage
			offset++ 
			timerID = setTimeout("showBanner()", speed)
			bannerRunning = true
		} else {
			offset = 0
			currentMessage++
			if (currentMessage == ar.length)
				currentMessage = 0
				timerID = setTimeout("showBanner()", pause)
				bannerRunning = true
			}
		}
// poner en el onLoad="startBanner();"
// -->
//-- ----------------------------------------------------------------------------------------------

// Script para el formulario de solicitud, valida los campos marcados como requeridos requeridos.
//application.htm	
	function alerta(elementa, mensaje)
		{
			alert(mensaje);
			elementa.focus();
		}
		
		function valida_email(cadena)
		{
			var salir;
			salir=0;
			if ((cadena.indexOf("@") != 0) && (cadena.indexOf("@") != -1))
			{
				subcadena = cadena.substring(cadena.indexOf("@"),cadena.length)
				if ((subcadena.indexOf(".") != 1) && (subcadena.indexOf(".") != -1) && (subcadena.lastIndexOf("@") == 0) && (subcadena.lastIndexOf(".") != subcadena.length -1))
				{
					salir = 1;
				}
			}
			return salir;
		}
		
		function validar_radios(radio) //Valida que algún botón radio esté marcado, recive el nombre del objeto radio por parámetro. 
		{
			var i;
			var aux;
			aux=0; //Indica que no hay botones de radio marcados
			i=0;	
			while (i < radio.length)
			{ 
				if (radio[i].checked)
				{
					aux=1;
					break; 
				}
				i++;
			}
									
				return aux;	
		}
		
		function validar(form)
		//valida los campos del formulario de inscripción.
		{
			var bandera = false;
			
			if (form.realname.value=="")
			{ 
				alerta(form.realname, "Por favor, escriba su nombre.");
			}
			else if (form.gender.selectedIndex ==0)
			{
				alerta(form.gender, "Por favor, escoja su género.");
			}
			else if (form.age.value=="")
			{	
				alerta(form.age,"Por favor, escriba su edad.")
			}			
			else if (form.address.value=="")
			{	
				alerta(form.address,"Por favor, escriba su dirección.")
			}
			else if (form.city.value=="")
			{
				alerta(form.city, "Por favor, escriba el nombre de su ciudad.");
			}
			else if (form.state.value=="")
			{
				alerta(form.state, "Por favor, escriba el nombre de su estado.");country
			}
			else if (form.country.value=="")
			{
				alerta(form.country, "Por favor, especifique el país donde vive.");
			}
			else if (form.email.value=="")
			{
				alerta(form.email, "Por favor, escriba su correo electrónico.");
			}
			else if (valida_email(form.email.value)=='0')
			{
				alerta(form.email,"Por favor, escriba su correo electrónico correctamente.")
			}
			else if (form.email2.value=="")
			{
				alerta(form.email2, "Por favor, confirme su correo electrónico.");
			}
			else if (form.email.value!=form.email2.value)
			{
				alerta(form.email2, "El correo electrónico no concuerda.");
			}
			else if (form.phone.value=="")
			{
				alerta(form.phone, "Por favor, escriba su número de teléfono.");
			}
			else if (form.cell_phone_number.value=="")
			{
				alerta(form.cell_phone_number, "Por favor, escriba su número de teléfono móvil.");
			}
			else if (form.credits.selectedIndex ==0)
			{
				alerta(form.credits, "¿Necesita créditos universitarios?");
 			}
			else if (form.credits.selectedIndex ==1 && form.university.selectedIndex==0)
			{
				alerta(form.university, "Debe especificar su programa de créditos");
 			}
			else if ((form.credits.selectedIndex ==1 && form.university.selectedIndex!=1) && form.other_university.value=="")
			{
				alerta(form.other_university, "Debe especificar el nombre de su universidad");
			}
			else if (form.credits.selectedIndex !=1 && form.other_university.value!="")
			{
				alerta(form.credits, "Si va a obtener créditos por favor seleccione Sí");
			}
			else if (form.start_day.selectedIndex ==0)
			{
				alerta(form.start_day, "Debe especificar el día que empiezan sus clases (Lunes)");
			}
			else if (form.start_month.selectedIndex ==0)
			{
				alerta(form.start_month, "Debe especificar el mes que empiezan sus clases");
			}
			else if (form.start_year.selectedIndex ==0)
			{
				alerta(form.start_year, "Debe especificar el año que empiezan sus clases");
			}
			else if (form.end_day.selectedIndex ==0)
			{
				alerta(form.end_day, "Debe especificar el día que terminan sus clases (Viernes)");
			}
			else if (form.end_month.selectedIndex ==0)
			{
				alerta(form.end_month, "Debe especificar el mes que terminan sus clases");
			}
			else if (form.end_year.selectedIndex ==0)
			{
				alerta(form.end_year, "Debe especificar el año que terminan sus clases");
			}
			else if (form.total_weeks.value=="")
			{
				alerta(form.total_weeks, "Debe especificar el total de semanas" + "\nque va a estudiar en CPI");
			}
			// Empieza a validar los datos para el Primer Campus
			else if (form.first_campus.selectedIndex ==0)
			{
				alerta(form.first_campus, "Debe especificar en cuál escuela va a estudiar primero.");
			}
			else if (form.weeks_first_campus.value=="")
			{
				alerta(form.weeks_first_campus, "Debe especificar cuántas semanas" + "\nquiere estudiar en  " + form.first_campus.options[form.first_campus.selectedIndex].text );
			}
			else if (form.hours_first_campus.selectedIndex ==0)
			{
				alerta(form.hours_first_campus, "Escoja cuántas horas por día quiere estudiar en " + form.first_campus.options[form.first_campus.selectedIndex].text );
			}
			else if (form.lodging_first_campus.selectedIndex==0)
			{
				alerta(form.lodging_first_campus, "Por favor escoja su opción de hospedaje en " + form.first_campus.options[form.first_campus.selectedIndex].text + ".");
			}		
			/*Valida el hospedaje para el Primer campus - La opciones 3 y 4 son para CPI Flamingo, únicamente.
			else if(((form.first_campus.selectedIndex!=3) && (form.lodging_first_campus.selectedIndex==3)) || ((form.first_campus.selectedIndex!=3) && (form.lodging_first_campus.selectedIndex==4)))
			{
				alerta(form.lodging_first_campus, "The lodging option you have choosen is not available in " + form.first_campus.options[form.first_campus.selectedIndex].text + ".");
			}*/
			
			// Empieza a validar los datos pora el segundo campus.
			else if ((form.second_campus.selectedIndex!=0) && (form.weeks_second_campus.value==""))
			{
				alerta(form.weeks_second_campus, "Debe especificar cuántas semanas" + "\nquiere estudiar en " + form.second_campus.options[form.second_campus.selectedIndex].text );
			}
			else if ((form.second_campus.selectedIndex!=0) && (form.hours_second_campus.selectedIndex==0))
			{
				alerta(form.hours_second_campus, "Escoja cuántas horas por día quiere estudiar en " + form.second_campus.options[form.second_campus.selectedIndex].text );
			}
			else if ((form.second_campus.selectedIndex==0) && (form.weeks_second_campus.value!=""))
			{
				alerta(form.second_campus, "Debe especificar cuál será su segunda escuela");
			}
			else if ((form.second_campus.selectedIndex==0) && (form.hours_second_campus.selectedIndex!=0))
			{
				alerta(form.second_campus, "Debe especificar cuál será su segunda escuela");
			}
			else if ((form.second_campus.selectedIndex!=0) && (form.lodging_second_campus.selectedIndex==0))
			{
				alerta(form.lodging_second_campus, "Por favor escoja su opción de hospedaje en " + form.second_campus.options[form.second_campus.selectedIndex].text + ".");
			}
			//Valida el hospedaje para el Segundo campus - La opciones 3 y 4 son para CPI Flamingo, únicamente.
			/*else if(((form.second_campus.selectedIndex!=3) && (form.lodging_second_campus.selectedIndex==3)) || ((form.second_campus.selectedIndex!=3) && (form.lodging_second_campus.selectedIndex==4)))
			{
				alerta(form.lodging_second_campus, "The lodging option you have choosen is not available in " + form.second_campus.options[form.second_campus.selectedIndex].text + ".");
			}*/
			
			// Empieza a validar los datos pora el tercer campus.
			else if ((form.third_campus.selectedIndex!=0) && (form.weeks_third_campus.value==""))
			{
				alerta(form.weeks_third_campus, "Debe especificar cuántas semanas" + "\nquiere estudiar en " + form.third_campus.options[form.third_campus.selectedIndex].text );
			}
			else if ((form.third_campus.selectedIndex!=0) && (form.hours_third_campus.selectedIndex==0))
			{
				alerta(form.hours_third_campus, "Escoja cuántas horas por día quiere estudiar en " + form.third_campus.options[form.third_campus.selectedIndex].text );	
			}
			else if ((form.third_campus.selectedIndex==0) && (form.weeks_third_campus.value!=""))
			{
				alerta(form.third_campus, "Debe especificar cuál será su tercera escuela");
			}
			else if ((form.third_campus.selectedIndex==0) && (form.hours_third_campus.selectedIndex!=0))
			{
				alerta(form.third_campus, "Debe especificar cuál será su tercera escuela");
			}
			else if ((form.third_campus.selectedIndex!=0) && (form.lodging_third_campus.selectedIndex==0))
			{
				alerta(form.lodging_third_campus, "Por favor escoja su opción de hospedaje en " + form.third_campus.options[form.third_campus.selectedIndex].text + ".");
			}
			//Valida el hospedaje para el Tercer campus - La opciones 3y 4 son para CPI Flamingo, únicamente.
			/*else if(((form.third_campus.selectedIndex!=3) && (form.lodging_third_campus.selectedIndex==3)) || ((form.third_campus.selectedIndex!=3) && (form.lodging_third_campus.selectedIndex==4)))
			{
				alerta(form.lodging_third_campus, "The lodging option you have choosen is not available in " + form.third_campus.options[form.third_campus.selectedIndex].text + ".");
			}*/
			//Fin de validación de hospedaje  en el Tercer campus	
			else
			{
			 	bandera = true;
			}
		 return bandera;
		}
//<FORM NAME="orderform" ACTION=/cgi/form METHOD=POST onsubmit="return validar(this)">	

<!-- ---------------------------------------------------------------------------------------------- -->

//Valida las variables de la página: brochure_requests.htm
						
		function validar_broreq(form)
		{
			var bandera = false;
			if (form.realname.value=="")
			{
				alerta(form.realname, "Please, enter your name.");
			}
			else if (form.email.value=="")
			{
				alerta(form.email, "Please, enter your e-mail address.");
			}
			else if (valida_email(form.email.value)=='0')
			{
				alerta(form.email,"Please, enter a correct e-mail address.")
			}
			else if (form.email2.value=="")
			{
				alerta(form.email2, "Please, re-enter your e-mail address.");
			}
			else if (form.email.value!=form.email2.value)
			{
				alerta(form.email2, "The e-mail does not match.");
			}				
			else if (form.house_number.value=="")
			{	
				alerta(form.house_number,"Please, enter your house number.")
			}
			else if (form.street.value=="")
			{	
				alerta(form.street,"Please, enter your street.")
			}
			else if (form.city.value=="")
			{	
				alerta(form.city,"Please, enter your city.")
			}
			else if (form.state.value=="")
			{	
				alerta(form.state,"Please, enter your state.")
			}
			else if (form.zipcode.value=="")
			{	
				alerta(form.zipcode,"Please, enter your zip code.")
			}
			else if (form.country.value=="")
			{	
				alerta(form.country,"Please, enter your country.")
			}
			else
			{
			 	bandera = true;
			}
		 return bandera;
		}
//<form action="/cgi/form" method="post" name="form" onsubmit="return validar_broreq(this)">
<!-- ---------------------------------------------------------------------------------------------- -->

	function validar_question(form)
		{
			var bandera = false;
			if (form.realname.value=="")
			{
				alerta(form.realname, "Please, enter your name.");
			}			
			else if (form.email.value=="")
			{
				alerta(form.email, "Please, enter your e-mail.");
			}
			else if (valida_email(form.email.value)=='0')
			{
				alerta(form.email,"Please, enter a valid mail.")
			}			
			else if (form.Text.value=="")
			{	alerta(form.Text,"Please, enter your consultation.")
			}
			else
			{
			 	bandera = true;
			}
		 return bandera;
		}
//<form action="/cgi/form" method="post" name="form" onsubmit="return validar_question(this)">
<!-- ---------------------------------------------------------------------------------------------- -->


//-- ----------------------------------------------------------------------------------------------


//Este script se usa para crear un  cuadro y llamar otra página dentro de él. 

//<script language="" type="text/javascript">

/***********************************************
* IFRAME Scroller script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//specify path to your external page:
/*
var iframesrc="external.htm"

//You may change most attributes of iframe tag below, such as width and height:
document.write('<iframe id="datamain" src="'+iframesrc+'" width="235px" height="105px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="1" scrolling="no"></iframe>')

</script>
//-- ----------------------------------------------------------------------------------------------

*/

//Valida el formulario de inscripción del programa de inglés y mandarín.

function validar_ingles_mandarin(form)
		{
			var bandera = false;
			if (form.realname.value=="")
			{
				alerta(form.realname, "Por favor escriba su nombre.");
			}			
			else if (form.direccion.value=="")
			{
				alerta(form.direccion, "Por favor escriba su dirección.");
			}
			else if (form.telefono_casa.value=="")
			{
				alerta(form.telefono_casa, "Por favor digite su número de teléfono.");
			}
			else if (form.telefono_celular.value=="")
			{
				alerta(form.telefono_celular, "Por favor digite su número de teléfono celular.");
			}
			else if (form.email.value=="")
			{
				alerta(form.email, "Por favor escriba su dirección de correo electrónico.");
			}
			else if (valida_email(form.email.value)=='0')
			{
				alerta(form.email,"Por favor escriba su dirección válida de correo electrónico.")
			}			
			else
			{
			 	bandera = true;
			}
		 return bandera;
		}

// Valida el formulario para el voluntariado

function validar_volunteer(form)
{
	
var bandera = false;
			
			if (form.realname.value=="")
			{ 
				alerta(form.realname, "Please, enter your name.");
			}
			else if (form.gender.selectedIndex ==0)
			{
				alerta(form.gender, "Please, choose your gender.");
			}
			else if (form.date_birth.value=="")
			{ 
				alerta(form.date_birth, "Please, enter your date of birth.");
			}
			else if (form.email.value=="")
			{	
				alerta(form.email,"Please, enter your E-mail.");
			}
			else if (valida_email(form.email.value)=='0')
			{
				alerta(form.email,"Please, enter a correct e-mail address.")
			}
			else if(form.start_day_classes.selectedIndex==0)
			{
				alerta(form.start_day_classes,"You must specify the day that you will begin your classes (Mondays)");
			}
			else if(form.start_day_classes.selectedIndex!=0 && form.start_month_classes.selectedIndex==0)
			{
				alerta(form.start_month_classes,"You must specify the month that you will begin your classes.");
			}
			else if(form.start_month_classes.selectedIndex!=0 && form.start_year_classes.selectedIndex==0)
			{
				alerta(form.start_year_classes,"You must specify the year that you will begin your classes.");
			}
			else if(form.campus.selectedIndex==0)
			{
				alerta(form.campus,"You must specify which campus you will be studying at first");
			}
			
			
			//Validación para los campos del formulario de Voluntariado de Heredia
						
			
			else if(form.heredia_project.selectedIndex==0 && form.monteverde_project.selectedIndex==0 && form.flamingo_project.selectedIndex==0)
			{
				alerta(form.heredia_project,"Please, Choose a Volunteer Program.");
			}
			else if(form.heredia_project.selectedIndex!=0 && form.weeks_heredia_project.value=="")
			{
				alerta(form.weeks_heredia_project,"Please, indicate the number of weeks you are volunteering.");
			}
			else if(form.heredia_project.selectedIndex!=0 && form.start_day_heredia.selectedIndex==0)
			{
				alerta(form.start_day_heredia,"Please, indicate the day you are starting your volunteer program.");
			}
			else if(form.start_day_heredia.selectedIndex!=0 && form.start_month_heredia.selectedIndex==0)
			{
				alerta(form.start_month_heredia,"Please, indicate the month you are starting your volunteer program.");
			}
			else if(form.start_month_heredia.selectedIndex!=0 && form.start_year_heredia.selectedIndex==0)
			{
				alerta(form.start_year_heredia,"Please, indicate the year you are starting your volunteer program.");
			}
			else if(form.start_year_heredia.selectedIndex!=0 && form.end_day_heredia.selectedIndex==0)
			{
				alerta(form.end_day_heredia,"Please, indicate the day you are ending your volunteer program.");
			}
			else if(form.end_day_heredia.selectedIndex!=0 && form.end_month_heredia.selectedIndex==0)
			{
				alerta(form.end_month_heredia,"Please, indicate the month you are ending your volunteer program.");
			}
			else if(form.end_month_heredia.selectedIndex!=0 && form.end_year_heredia.selectedIndex==0)
			{
				alerta(form.end_year_heredia,"Please, indicate the year you are ending your volunteer program.");
			}
			
			//Validación para los campos del formulario de Voluntariado de Monteverde
			
			else if(form.monteverde_project.selectedIndex!=0 && form.weeks_monteverde_project.value=="")
			{
				alerta(form.weeks_monteverde_project,"Please, indicate the number of weeks you are volunteering.");
			}
			else if(form.monteverde_project.selectedIndex!=0 && form.start_day_monteverde.selectedIndex==0)
			{
				alerta(form.start_day_monteverde,"Please, indicate the day you are starting your volunteer program.");
			}
			else if(form.start_day_monteverde.selectedIndex!=0 && form.start_month_monteverde.selectedIndex==0)
			{
				alerta(form.start_month_monteverde,"Please, indicate the month you are starting your volunteer program.");
			}
			else if(form.start_month_monteverde.selectedIndex!=0 && form.start_year_monteverde.selectedIndex==0)
			{
				alerta(form.start_year_monteverde,"Please, indicate the year you are starting your volunteer program.");
			}
			else if(form.start_year_monteverde.selectedIndex!=0 && form.end_day_monteverde.selectedIndex==0)
			{
				alerta(form.end_day_monteverde,"Please, indicate the day you are ending your volunteer program.");
			}
			else if(form.end_day_monteverde.selectedIndex!=0 && form.end_month_monteverde.selectedIndex==0)
			{
				alerta(form.end_month_monteverde,"Please, indicate the month you are ending your volunteer program.");
			}
			else if(form.end_month_monteverde.selectedIndex!=0 && form.end_year_monteverde.selectedIndex==0)
			{
				alerta(form.end_year_monteverde,"Please, indicate the year you are ending your volunteer program.");
			}
			
			
			//Validación para los campos del formulario de Voluntariado de Monteverde
			
			else if(form.flamingo_project.selectedIndex!=0 && form.weeks_flamingo_project.value=="")
			{
				alerta(form.weeks_flamingo_project,"Please, indicate the number of weeks you are volunteering.");
			}
			else if(form.flamingo_project.selectedIndex!=0 && form.start_day_flamingo.selectedIndex==0)
			{
				alerta(form.start_day_flamingo,"Please, indicate the day you are starting your volunteer program.");
			}
			else if(form.start_day_flamingo.selectedIndex!=0 && form.start_month_flamingo.selectedIndex==0)
			{
				alerta(form.start_month_flamingo,"Please, indicate the month you are starting your volunteer program.");
			}
			else if(form.start_month_flamingo.selectedIndex!=0 && form.start_year_flamingo.selectedIndex==0)
			{
				alerta(form.start_year_flamingo,"Please, indicate the year you are starting your volunteer program.");
			}
			else if(form.start_year_flamingo.selectedIndex!=0 && form.end_day_flamingo.selectedIndex==0)
			{
				alerta(form.end_day_flamingo,"Please, indicate the day you are ending your volunteer program.");
			}
			else if(form.end_day_flamingo.selectedIndex!=0 && form.end_month_flamingo.selectedIndex==0)
			{
				alerta(form.end_month_flamingo,"Please, indicate the month you are ending your volunteer program.");
			}
			else if(form.end_month_flamingo.selectedIndex!=0 && form.end_year_flamingo.selectedIndex==0)
			{
				alerta(form.end_year_flamingo,"Please, indicate the year you are ending your volunteer program.");
			}
			else
			{
			 	bandera = true;
			}
		 return bandera;
	
}





