function click(e) {
// Explorer
if (IE)
if (event.button == 2){
accion() ;
return false ;
}

// Netscape
if (NS)
if (e.which == 3) {
accion() ;
return false ;
}
}


function ventana1()
{
 ven1=window.open("/cusco-peru/images/map1.jpg","","toolbar=no,menubar=no,locationbar=no,height=426,width=396,top=100,left=300")
}



function ventana2()
{
 ven2=window.open("/cusco-peru/images/map2.jpg","","toolbar=no,menubar=no,locationbar=no,height=524,width=750,top=100,left=100")
}



function accion() {
window.status = 'Machu Picchu Spanish School' ;
if (IE) alert('Machu Picchu Spanish School\n   All Rights Reserved\n       Cusco - Peru');
return ;
}

var NS = (document.layers) ;
var IE = (document.all) ;
if (NS) document.captureEvents(Event.MOUSEDOWN) ;
document.onmousedown = click ;

function validara(forma) {
if ((forma.firstnamea.value == null) || (forma.firstnamea.value=="")) {
 alert("Please enter your first name");
 forma.firstnamea.focus();
 return false;
}

if ((forma.lastnamea.value == null) || (forma.lastnamea.value=="")) {
 alert("Please enter your last name");
 forma.lastnamea.focus();
 return false;
}

if ((forma.emaila.value == null) || (forma.emaila.value=="") || (forma.emaila.value.indexOf("@") == -1)) {
 alert("Please enter a valid address");
 forma.emaila.focus();
 return false;
}		

if (!forma.sexa[0].checked && !forma.sexa[1].checked){
 alert("Please select your sex");
 return false;
}

op = forma.countrya.selectedIndex;
opcion = forma.countrya.options[op].value;
if (opcion=="Not Select") {
   alert('Please select your country');
   return false;
}

if ((forma.messagea.value == null) || (forma.messagea.value=="")) {
 alert("Please enter your message");
 forma.messagea.focus();
 return false;
}
return true;
}

function validarb(formb) {
if ((formb.firstnameb.value == null) || (formb.firstnameb.value=="")) {
 alert("Please enter your first name");
 formb.firstnameb.focus();
 return false;
}

if ((formb.lastnameb.value == null) || (formb.lastnameb.value=="")) {
 alert("Please enter your last name");
 formb.lastnameb.focus();
 return false;
}
if ((formb.emailb.value == null) || (formb.emailb.value=="") || (formb.emailb.value.indexOf("@") == -1)) {
 alert("Please enter a valid address");
 formb.emailb.focus();
 return false;
}	
if (!formb.sexb[0].checked && !formb.sexb[1].checked){
 alert("Please select your sex");
 return false;
}
if ((formb.occupationb.value == null) || (formb.occupationb.value=="")) {
 alert("Please enter your occupation");
 formb.occupationb.focus();
 return false;
}
op1 = formb.countryb.selectedIndex;
opcion1 = formb.countryb.options[op1].value;
if (opcion1=="Not Select") {
   alert('Please select your country');
   return false;
}
op2 = formb.monthcuscob.selectedIndex;
opcion2 = formb.monthcuscob.options[op2].value;
if (opcion2=="Not Select") {
   alert('Please indicate when you are planning to come to Cusco');
   return false;
}
op3 = formb.weekstudyb.selectedIndex;
opcion3 = formb.weekstudyb.options[op3].value;
if (opcion3=="Not Select") {
   alert('Please indicate how long you would like to study with us');
   return false;
}

op = formb.languageb.selectedIndex;
opcion = formb.languageb.options[op].value;
if (opcion=="Not Select") {
   alert('Please choose the language the brochure');
   return false;
}

op = formb.formatb.selectedIndex;
opcion = formb.formatb.options[op].value;
if (opcion=="Not Select") {
   alert('Please choose the language the brochure');
   return false;
}

op4 = formb.aboutmsb.selectedIndex;
opcion4 = formb.aboutmsb.options[op4].value;
if (opcion4=="Not Select") {
   alert('Please indicate how you heard about Machu Picchu Spanish School');
   return false;
}

if ((formb.feedbackb.value == null) || (formb.feedbackb.value=="")) {
 alert("Please enter a message");
 formb.feedbackb.focus();
 return false;
}
return true;
}

function validarc(formc) {
if ((formc.firstname0.value == null) || (formc.firstname0.value=="")) {
 alert("Please enter your first name");
 formc.firstname0.focus();
 return false;
}

if ((formc.lastname0.value == null) || (formc.lastname0.value=="")) {
 alert("Please enter your last name");
 formc.lastname0.focus();
 return false;
}
if ((formc.email0.value == null) || (formc.email0.value=="") || (formc.email0.value.indexOf("@") == -1)) {
 alert("Please enter a valid address");
 formc.email0.focus();
 return false;
}	
if ((formc.name1.value == null) || (formc.name1.value=="")) {
 alert("Please enter name for Friend 1");
 formc.name1.focus();
 return false;
}
if ((formc.email1.value == null) || (formc.email1.value=="") || (formc.email1.value.indexOf("@") == -1)) {
 alert("Please enter a valid address for Friend 1");
 formc.email1.focus();
 return false;
}
if ((formc.name2.value == null) || (formc.name2.value=="")) {
 alert("Please enter name for Friend 2");
 formc.name2.focus();
 return false;
}
if ((formc.email2.value == null) || (formc.email2.value=="") || (formc.email2.value.indexOf("@") == -1)) {
 alert("Please enter a valid address for Friend 2");
 formc.email2.focus();
 return false;
}
if ((formc.name3.value == null) || (formc.name3.value=="")) {
 alert("Please enter name for Friend 3");
 formc.name3.focus();
 return false;
}
if ((formc.email3.value == null) || (formc.email3.value=="") || (formc.email3.value.indexOf("@") == -1)) {
 alert("Please enter a valid address for Friend 3");
 formc.email3.focus();
 return false;
}	
return true;
}

function validard(formd) {
if ((formd.firstnamed.value == null) || (formd.firstnamed.value=="")) {
 alert("Please enter your first name");
 formd.firstnamed.focus();
 return false;
}
if ((formd.lastnamed.value == null) || (formd.lastnamed.value=="")) {
 alert("Please enter your last name");
 formd.lastnamed.focus();
 return false;
}
if ((formd.emaild.value == null) || (formd.emaild.value=="") || (formd.emaild.value.indexOf("@") == -1)) {
 alert("Please enter a valid address");
 formd.emaild.focus();
 return false;
}	
if ((formd.nropassportd.value == null) || (formd.nropassportd.value=="")) {
 alert("Please enter the number passport");
 formd.nropassportd.focus();
 return false;
}
if (!formd.sexd[0].checked && !formd.sexd[1].checked){
 alert("Please select your sex");
 return false;
}
op5 = formd.dayd.selectedIndex;
opcion5 = formd.dayd.options[op5].value;
if (opcion5=="00") {
   alert('Please select the day of your birthday');
   return false;
}
op6 = formd.monthd.selectedIndex;
opcion6 = formd.monthd.options[op6].value;
if (opcion6=="00") {
   alert('Please select the month of your birthday');
   return false;
}
if ((formd.yeard.value == null) || (formd.yeard.value=="")) {
 alert("Please select the year of your birthday");
 formd.yeard.focus();
 return false;
}
if ((formd.addressd.value == null) || (formd.addressd.value=="")) {
 alert("Please enter your address");
 formd.addressd.focus();
 return false;
}
if ((formd.phonehoused.value == null) || (formd.phonehoused.value=="")) {
 alert("Please enter the telephone house");
 formd.phonehoused.focus();
 return false;
}
if ((formd.phoneworkd.value == null) || (formd.phoneworkd.value=="")) {
 alert("Please enter your telephone work");
 formd.phoneworkd.focus();
 return false;
}
op7 = formd.countryd.selectedIndex;
opcion7 = formd.countryd.options[op7].value;
if (opcion7=="Not Select") {
   alert('Please select the country');
   return false;
}
if ((formd.occupationd.value == null) || (formd.occupationd.value=="")) {
 alert("Please enter your occupation");
 formd.occupationd.focus();
 return false;
}

op9 = formd.aboutmsd.selectedIndex;
opcion9 = formd.aboutmsd.options[op9].value;
if (opcion9=="Not Select") {
   alert('Please indicate how you heard about Machu Picchu Spanish School');
   return false;
}
return true;
}
 
function validare(forme) {
if ((forme.groupe.value == null) || (forme.groupe.value=="")) {
 alert("Please enter your Group Course");
 forme.groupe.focus();
 return false;
}
if ((forme.individuale.value == null) || (forme.individuale.value=="")) {
 alert("Please enter your Individual Course");
 forme.individuale.focus();
 return false;
}
if ((forme.dietarye.value == null) || (forme.dietarye.value=="")) {
 alert("Please enter your dietary requirements or allergies");
 forme.dietarye.focus();
 return false;
}
if ((forme.otherse.value == null) || (forme.otherse.value=="")) {
 alert("Please enter aditional notes");
 forme.otherse.focus();
 return false;
}

op11 = forme.arrivaldayecusco.selectedIndex;
opcion11 = forme.arrivaldayecusco.options[op11].value;
if (opcion11=="none") {
   alert('Please select arrival day');
   return false;
}
op12 = forme.arrivalmonthecusco.selectedIndex;
opcion12 = forme.arrivalmonthecusco.options[op12].value;
if (opcion12=="none") {
   alert('Please select arrival month');
   return false;
}
op13 = forme.arrivalyearecusco.selectedIndex;
opcion13 = forme.arrivalyearecusco.options[op13].value;
if (opcion13=="none") {
   alert('Please select arrival Year');
   return false;
}

if ((forme.arrivalairlineecusco.value == null) || (forme.arrivalairlineecusco.value=="")) {
 alert("Please enter Name Airline");
 forme.arrivalairlineecusco.focus();
 return false;
}
if ((forme.fligthnumberecusco.value == null) || (forme.fligthnumberecusco.value=="")) {
 alert("Please enter fligth number");
 forme.fligthnumberecusco.focus();
 return false;
}
if ((forme.arrivaltimeecusco.value == null) || (forme.arrivaltimeecusco.value=="")) {
 alert("Please enter arrival time");
 forme.arrivaltimeecusco.focus();
 return false;
}
if ((forme.feedbacke.value == null) || (forme.feedbacke.value=="")) {
 alert("Please enter your Comments or Questions");
 forme.feedbacke.focus();
 return false;
}
return true;
}



{
<!-- Begin
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more /images, just continue
// the pattern, adding to the array below

Pic[0] = '/images/top01.jpg'
Pic[1] = '/images/top02.jpg'
Pic[2] = '/images/top03.jpg'
Pic[3] = '/images/top04.jpg'
Pic[4] = '/images/top05.jpg'

// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}

}

 
// -->	
