// JavaScript Document
// FUNCION DE LA HORA Y FECHA _GLADYS

function hora(){
dayName = new Array ("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag")
monName = new Array ("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember")
now = new Date
document.write("" + dayName[now.getDay()] + " " + now.getDate() +" " + monName[now.getMonth()]  + " " + now.getYear())}

// Estos datos son propiedad de La Palma 24<br>
var mensaje = " WWW.LA-PALMA24.DE";
function derecho(e)
{
  if (navigator.appName == 'Netscape'&& e.which == 3)
  alert(mensaje);
  else if (navigator.appName == 'Microsoft Internet Explorer'&& event.button==2) 
  alert(mensaje);
}
document.onmousedown = derecho;

//TICKER DE NOTICIAS
var AvanceOn = false
var AvanceID = null
var y, t
var posicion

function avanzar() {
	if(posicion == 450) {
		self.scrollTo(0, 0)
		posicion = 0
	}

	self.scrollBy(0, y)
	AvanceID = setTimeout("avanzar()", t)
	AvanceOn = true
	posicion++
}

function ComenzarAvance() {
	if(!AvanceOn) {
		y = 1
		t = 10
		posicion = 0
		avanzar()
	}
}
function abrirCalendario(campo) {
         hoy = new Date
         var urlCalendario = "calendario2.php?day=" + (hoy.getDate()-1) + "&month=" + (hoy.getMonth()+1) + "&year=" + hoy.getYear() + "&campo=" + campo;
         calendario=window.open(urlCalendario,"win3", "height=200,width=200,menubar=no,resizable=no,status=no,scrollbars=no,toolbar=no");
         calendario.focus();
        }
function FechaActual(init){
         if (init==true){
             hoy = new Date
             document.Search.DiasDesde[hoy.getDate()-1].selected = true;
             document.Search.MesDesde[hoy.getMonth()].selected = true;
             document.Search.AnoDesde[0].selected = true;
             document.Search.DiasHasta[hoy.getDate()-1].selected = true;
             document.Search.MesHasta[hoy.getMonth()].selected = true;
             document.Search.AnoHasta[0].selected = true;
             }
         }
