startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;



function validarc(contacto)
{

if ((contacto.fullname.value==null) || (contacto.fullname.value=="")) {
alert("Please, Fill your Full Name");
contacto.fullname.focus();
return false;
}

if ((contacto.phone.value == null) || (contacto.phone.value=="")) {
 alert("Please, Fill your Phone");
 contacto.phone.focus();
 return false;
}

if (!contacto.sex[0].checked && !contacto.sex[1].checked){
 alert("Please, Select your Sex");
 return false;
}

if ((contacto.email.value == null) || (contacto.email.value=="") || (contacto.email.value.indexOf("@") == -1)) {
 alert("Please, Fill a valid Email Address");
 contacto.email.focus();
 return false;
}		

if ((contacto.country.value == null) || (contacto.country.value=="")) {
 alert("Please, Fill your Country");
 contacto.country.focus();
 return false;
}

op = contacto.where.selectedIndex;
opcion = contacto.where.options[op].value;
if (opcion=="Not Select") {
   alert('Please, Select');
   return false;
}

if ((contacto.message.value == null) || (contacto.message.value=="")) {
 alert("Please, Fill your Message");
 contacto.message.focus();
 return false;
}
return true;
}




function validarb(book)
{
if ((book.firstname.value==null) || (book.firstname.value=="")) {
alert("Please, Fill your First Name");
book.firstname.focus();
return false;
}

if ((book.lastname.value == null) || (book.lastname.value=="")) {
alert("Please, Fill your last name");
book.lastname.focus();
return false;
}

op = book.country.selectedIndex;
opcion = book.country.options[op].value;
if (opcion=="Not Select") {
alert('Please, Select your country');
 return false;
}

if ((book.email.value == null) || (book.email.value=="") || (book.email.value.indexOf("@") == -1)) {
alert("Please, Fill a valid Email Address");
book.email.focus();
return false;
}		

if ((book.occupation.value == null) || (book.occupation.value=="")) {
alert("Please, Fill your Occupation");
book.occupation.focus();
return false;
}

if ((book.birth.value == null) || (book.birth.value=="")) {
alert("Please, Fill your Date of Birth");
book.birth.focus();
return false;
}

if ((book.address.value == null) || (book.address.value=="")) {
alert("Please, Fill your Home Address");
book.address.focus();
return false;
}

if ((book.phones.value == null) || (book.phones.value=="")) {
alert("Please, Fill your Phones");
book.phones.focus();
return false;
}

op1 = book.where.selectedIndex;
opcion1 = book.where.options[op1].value;
if (opcion1=="Not Select") {
   alert('Please select City of your choice for study');
   return false;
}

if ((book.spanishlevel.value == null) || (book.spanishlevel.value=="")) {
alert("Please, Fill your Spanish Level");
book.spanishlevel.focus();
return false;
}


if ((book.arrivaldate.value == null) || (book.arrivaldate.value=="")) {
alert("Please, Fill your Arrival Date");
book.arrivaldate.focus();
return false;
}


if ((book.nameofairline.value == null) || (book.nameofairline.value=="")) {
alert("Please, Fill your Name of airline");
book.nameofairline.focus();
return false;
}

if ((book.flightnumbertime.value == null) || (book.flightnumbertime.value=="")) {
alert("Please, Fill your Flight Number / Time");
book.flightnumbertime.focus();
return false;
}

if ((book.message.value==null) || (book.message.value=="")) {
alert("Please, Fill your Message");
book.message.focus();
return false;
}

return true;
}
