//Script para desactivar el boton derecho
var mensaje="El boton derecho esta desactivado en esta pagina";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(mensaje);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(mensaje);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;

//Script para desactivar Seleccionar texto
function disableselect(e){
return false
}
function reEnable(){
return true
}
//Si es IE4+
document.onselectstart=new Function ("return false")
//Si es NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

function abre_Ventana(URL, NombreVentana, windowFeatures) { 
newWindow=window.open(URL, NombreVentana, windowFeatures); }

function abrircentrada(nombreImagen,anchoImagen,altoImagen,alt) {
    if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 640, yMax=480;

    var xOffset = (xMax - anchoImagen)/2, yOffset = (yMax - altoImagen)/2;

    newWindow = window.open('','newWindow', 'width='+anchoImagen+',height='+altoImagen+',screenX='+xOffset+',screenY='+yOffset+', top='+yOffset+',left='+xOffset+'');
    newWindow.document.write('<html><head><LINK rel="stylesheet" type="text/css" href="../codigo.css"><title>'+alt+'</title></head><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
    newWindow.document.write('<img src='+nombreImagen+' width='+anchoImagen+' height='+altoImagen+' alt='+alt+'>'); 
    newWindow.document.write('</body></html>');
    newWindow.document.close();
    newWindow.focus();
}

