
// 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;}
}
 


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");
}}

// Codigo ventana
function OpenWin(url,tit,w,h,s){
	remote=null;
	remote=window.open(url,tit,'width='+w+',height='+h+',rezisable=no,top=2,left=10,scrollbars='+s+'');
		if ((document.window != null) && (!hWnd.opener))
			hWnd.opener = document.window;
	}                                  


// fin codigo ventana


// control formulario

function control(form)
{

if ((form.Nombre.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


