function sendIt(){
if(!document.aNovaForm.cDeEstudios.value){
	alert("por favor ingresa el centro donde realizas tus estudios");
	document.aNovaForm.cDeEstudios.focus();
	}

else if(!document.aNovaForm.NomAp.value){
	alert("por favor ingresa tu nombre y apellido");
	document.aNovaForm.NomAp.focus();
	}
else if(!document.aNovaForm.DirEnMad.value&&!document.aNovaForm.dirFam.value){
	alert("por favor ingresa alguna direccion postal donde podamos enviarte información");
	document.aNovaForm.DirEnMad.focus();
	}
else if(isNaN(document.aNovaForm.tel.value)||document.aNovaForm.tel.value.length==0){
	alert("por favor ingrese un numero de teléfono sin espacios");
	document.aNovaForm.tel.focus();
	}
else if(!document.aNovaForm.e_mail.value||document.aNovaForm.e_mail.value.indexOf('@')==-1||document.aNovaForm.e_mail.value.indexOf('.')==-1||document.aNovaForm.e_mail.value.indexOf(" ")!=-1||document.aNovaForm.e_mail.value.length<6){
	alert("ingrese una dirección de e-mail valida");
	document.aNovaForm.e_mail.focus();
	}
else(document.aNovaForm.submit());
}
/////////////////////////
function borrar(){
document.aNovaForm.reset()
}
//////////////////////// 
function res(){
var ocho=(screen.height==600) ? document.location.replace('index8.html') : document.location.replace('index1.html');
}
///////////////////////
function mapa(){
var nuevaVent= window.open("", "mapaUbicacion","height=266, width=564");
nuevaVent.document.write("<html>");
nuevaVent.document.write("<head><title>::::ubicación Academia Nova::::</title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'></head>");
nuevaVent.document.write("<body bgcolor='#FFFFFF' text='#000000' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'><img src='imas/mapa.gif' width='564' height='266' alt='Academia Nova' name='mapa_ubicacion'> </body>");
nuevaVent.document.write("</html>");
}
//////////////////////
function addbookmark()
{
bookmarkurl="http://www.academianova.com/"
bookmarktitle="Nova Academia de Arquitectura"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
/////////////////////

//
function popCursos(comienzo){
var nuevaVent= window.open("", "pUp","height=226, width=302");
nuevaVent.document.write("<html>");
nuevaVent.document.write("<head><title>:::: Academia Nova ::::</title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'></head>");
nuevaVent.document.write("<body bgcolor='#FFFFFF' text='#000000' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>");
nuevaVent.document.write("<TABLE width='100%' border='0' cellspacing='0' cellpadding='0' style='border-collapse:collapse'>");
nuevaVent.document.write("<TR>\n<TD width='33%'></TD>\n<TD width='33%'></TD>\n<TD width='33%'></TD></TR>")
nuevaVent.document.write("<TR>\n<TD width='33%'></TD>\n<TD width='33%'>\n<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='302' height='226'>\n<PARAM name='movie' value='imas/popUps/"+ comienzo + "'>\n<PARAM name='quality' value='high'>\n<EMBED src='imas/popUps/"+comienzo+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='302' height='226'></EMBED></OBJECT></TD>\n<TD width='33%'></TD></TR>");
nuevaVent.document.write("<TR>\n<TD width='33%'></TD>\n<TD width='33%'></TD>\n<TD width='33%'></TD></TR>") 
nuevaVent.document.write("\n</TABLE>"); 
nuevaVent.document.write("\n</body>");
nuevaVent.document.write("\n</html>");

}

