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("/images/map1.jpg","","toolbar=no,menubar=no,locationbar=no,height=426,width=396,top=100,left=300")
}



function ventana2()
{
 ven2=window.open("/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;
}
  
// -->	
