//Muestra la fecha actual del sistema
        function muestraFecha() {
                var today = new Date();
                var DayW = today.getDay();
                var DateW = today.getDate();
                var MonthW = today.getMonth();
                var YearW = today.getYear();
                var DayString = "";

                if (DayW == 0) {
                        DayString = "Domingo";
                        }
                  else if (DayW == 1) {
                     DayString = "Lunes";
                        }
                  else if (DayW == 2) {
                     DayString = "Martes";
                        }
                  else if (DayW == 3) {
                     DayString = "Miercoles";
                        }
                  else if (DayW == 4) {
                     DayString = "Jueves";
                        }
                  else if (DayW == 5) {
                     DayString = "Viernes";
                          }
                  else if (DayW == 6) {
                     DayString = "Sabado";
                          }
                     else DayString = "We got trouble!"
                MonthString = ""
                  if (MonthW == 0) {
                     MonthString = "Enero";
                        }
                  else if (MonthW == 1) {
                     MonthString = "Febrero";
                          }
                  else if (MonthW == 2) {
                     MonthString = "Marzo";
                        }
                  else if (MonthW == 3) {
                     MonthString = "Abril";
                    }
                  else if (MonthW == 4) {
                          MonthString = "Mayo";
                          }
                  else if (MonthW == 5) {
                  MonthString = "Junio";
                        }
                  else if (MonthW == 6) {
                     MonthString = "Julio";
                        }
                  else if (MonthW == 7) {
                     MonthString = "Agosto";
                        }
                  else if (MonthW == 8) {
                     MonthString = "Septiembre";
                        }
                  else if (MonthW == 9) {
                     MonthString = "Octubre";
                        }
                  else if (MonthW == 10) {
                     MonthString = "Noviembre";
                         }
                  else if (MonthW == 11) {
                     MonthString = "Diciembre";
                        }
                  else MonthString = ""
                var DateString = ""
                DateString = "" + DateW
                var YearString = ""+YearW

                document.write("" + DayString + ", " + DateString + " de " + MonthString  + " del "+ YearString + "");
        }


 
var ira;
function mostrar(i)
{
ira=window.open(""+i+".asp",""+i+"","status=no,resizable=no,personalbar=no,location=no,toolbar=no,menubar=no,scrollbars=no,width=700,height=350,top=50,left=50");
}
function meseva(e)
{
document.location = ""+e+"" ;
}

window.defaultStatus = '|PORTAL DEL EXCELENTISIMO AYUNTAMIENTO DE SAN PEDRO DEL PINATAR|';




function click(e) {
// Explorer
if (IE)
if (event.button == 2){
accion() ;
return false ;
}

// Netscape
if (NS)
if (e.which == 3) {
accion() ;
return false ;
}
}

function accion() {
window.status = 'Pulsación de botón no permitida--Ayuntamiento de San Pedro del Pinatar' ;
if (IE) alert('Ayuntamiento de San Pedro del Pinatar');
if (NS) alert('Ayuntamiento de San Pedro del Pinatar');

return ;
}



NS=(document.layers)? true:false
IE=(document.all)? true:false

if (NS) document.captureEvents(Event.MOUSEDOWN) ;
document.onmousedown = click ;

//Muestra el saludo
  function saluda() {
        var today2 = new Date();
        var horas = today2.getHours();

        if (horas == 0) {
                     pon = "Buenas Noches";
                        }
                  else if (horas == 1) {
                     pon = "Buenas Noches";
                          }
                  else if (horas == 2) {
                     pon = "Buenas Noches";
                        }
                  else if (horas == 3) {
                     pon = "Buenas Noches";
                    }
                  else if (horas == 4) {
                          pon = "Buenas Noches";
                          }
                  else if (horas == 5) {
                  pon = "Buenas Noches";
                        }
                  else if (horas == 6) {
                     pon = "Buenas Noches";
                        }
                  else if (horas == 7) {
                     pon = "Buenas Noches";
                        }
                  else if (horas == 8) {
                     pon = "Buenos Días";
                        }
                  else if (horas == 9) {
                     pon = "Buenos Días";
                        }
                  else if (horas == 10) {
                     pon = "Buenos Días";
                         }
                  else if (horas == 11) {
                     pon = "Buenos Días";
                        }
                        else if (horas == 12) {
                     pon = "Buenos Días";
                        }
                        else if (horas == 13) {
                     pon = "Buenos Días";
                        }
                        else if (horas == 14) {
                     pon = "Buenas Tardes";
                        }
                        else if (horas == 15) {
                     pon = "Buenas Tardes";
                        }
                        else if (horas == 16) {
                     pon = "Buenas Tardes";
                        }
                        else if (horas == 17) {
                     pon = "Buenas Tardes";
                        }
                        else if (horas == 18) {
                     pon = "Buenas Tardes";
                        }
                        else if (horas == 19) {
                     pon = "Buenas Tardes";
                        }
                        else if (horas == 20) {
                     pon = "Buenas Tardes";
                        }
                        else if (horas == 21) {
                     pon = "Buenas Noches";
                        }
                        else if (horas == 22) {
                     pon = "Buenas Noches";
                        }
                        else if (horas == 23) {
                     pon = "Buenas Noches";
                        }
                  else pon = ""

        document.write (pon);
        }
		

