function mOvr(src,abajo) {
    
	var clrOver='#D7F5FF'	//Color cuando estoy arriba
	parent.status=abajo	//Lo que aparece en el barra de Status cuando estoy arriba

	if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.bgColor = clrOver;
	}
  }

  function mOut(src,lado) { //Le paso el parametro lado para usar la misma funcion de un menu en otro
	
	var clrIn = '#D7F5FF'	//Color cuando sali de arriba por defecto (color del Fondo)
	
	if (lado == 'der') //si le paso esta variable cambio el color...
		{
		clrIn = '#ff0000'
		}	
	
	parent.status=''	// Pongo el Status en vacio

	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = clrIn;
	}
  }
  function mClk(src) {
    if(event.srcElement.tagName=='TD'){
	  src.children.tags('A')[0].click();
    }
  }


var isn1=null;
var isn2=false;
today=new Date();

function stopit(){
 if(isn2){
  clearTimeout(isn1);
  }
 isn2 = false;
 }

function startit(){
 stopit();
 isnclock();
 }

function isnclock(){
 var now=new Date();
 var hrs=now.getHours();
 var min=now.getMinutes();
 var sec=now.getSeconds();
 document.clckh.disp.value=""+((hrs>24) ? hrs-14 : hrs); 
 document.clckm.disp.value=((min<10) ? "0" : "")+min;
 document.clcks.disp.value=((sec<10) ? "0" : "")+sec;
 isn1=setTimeout("isnclock()",1000);
 isn2=true;
 }
// Build an array initializer
function isnArray() {
 argnr=isnArray.arguments.length
 for (var i=0;i<argnr;i++) {
  this[i+1] = isnArray.arguments[i];
  }
 }
// And months and day arrays
var isnMonths=new isnArray("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
var isnDays= new isnArray("Domingo","Lunes","Martes","Mi&eacute;rcoles","Jueves","Viernes","S&aacute;bado");



// Codigo ventana
function OpenWin(url,tit,w,h,s){
	var prueba;
	remote=null;
	remote=window.open(url,tit,'width='+w+',height='+h+',rezisable=no,scrollbars='+s+'');
		if ((document.window != null) && (!hWnd.opener))
			hWnd.opener = document.window;
	}                                  


// fin codigo ventana

// Codigo Botonera

// prueba si el navegador es de version 3 o mejor:
agent = navigator.userAgent;
browserVer = 2;
if (agent.substring(0,7) == "Mozilla")
{
    if (parseInt(agent.substring(8,9)) >= 3) {browserVer = 1;}
}
 
// carga la imagenes:
if (browserVer == 1) {
a_c = new Image(130,25);a_c.src = "botones.gif";a_a = new Image(130,25);a_a.src = "bot1-1.gif";
b_a = new Image(130,25);b_a.src = "bot2-1.gif";
c_a = new Image(130,25);c_a.src = "bot3-1.gif";
d_a = new Image(130,25);d_a.src = "bot4-1.gif";
e_a = new Image(130,25);e_a.src = "bot5-1.gif";
f_a = new Image(130,25);f_a.src = "bot6-1.gif";

g_c = new Image(130,25);g_c.src = "botonesg.gif";g_a = new Image(130,25);g_a.src = "botg1-1.gif";
h_a = new Image(130,25);h_a.src = "botg2-1.gif";
i_a = new Image(130,25);i_a.src = "botg3-1.gif";

}

function hiLite(imgDocID,imgObjName) {
// manages mouseOver animations
//   imgDocID - the name or number of the document image to be replaced
//   imgObjName - the name of the image object to be swapped in

if (browserVer == 1) {
document.images[imgDocID].src = eval(imgObjName + ".src");
}}

// Fin codigo Botonera

// control formulario

function control(form)
{

if ((form.Nombre.value == "") || (form.Apellido.value == "") || (form.Telefono.value == "") || (form.email.value == "") || (form.Comentarios.value == "") )
	{ 	
		alert ("Debe completar todos los campos que contienen (*)");
		return (false);
  	}

if (form.email.value.indexOf('@', 0) == -1) // Controlo que el email tenga "@"
	{
	alert ("No es una dirección de mail válida");
	form.email.focus();
	return (false);
	}
document.formulario.submit();
}
// fin control de formulario

