function olvido() {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('/alumnos/olvido.asp', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=320,height=240');");
}

function cerrar(){
window.close()
}

function olvido2() {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('/arearestringida/admin/olvido.htm', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=320,height=240');");
}

function test1() {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('/arearestringida/alumnos/test.htm', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=400');");
}

function popup(URL,ancho,alto) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+ ancho +",height="+ alto +"');");
}

function popup2(URL,ancho,alto) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+ ancho +",height="+ alto +"');");
}

function NoNumeros() 
{
var key=window.event.keyCode;//codigo de tecla.
if ((key < 65 || key > 90)&&(key < 97 || key > 122)&&(key != 32)&&(key != 209) && (key != 241)){//si no es letra 
window.event.keyCode=0;//anula la entrada de numero y caracteres especiales.
}}

function noteclas() 
{
	if ((window.event.keyCode>=0) || (window.event.keyCode<=20000))  {  
		window.event.keyCode=""; 
		return false;
	}
}

function detenerError(){
return true
}
window.onerror=detenerError

function barra()
{self.status="Centro de Estudios Suministros Adarra S.L."}

var message="Centro de Estudios Suministros Adarra S.L.";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

function siono(asunto){
if (confirm("¿Deseas enviar a la papelera el mensaje \n '"+ asunto+"'?"))
{
 borrar.submit();
}
}
function siono2(asunto){
if (confirm("¿Deseas borrar definitivamente el mensaje \n '"+ asunto+"'?"))
{
 borrar.submit();
}
}