


x01=new Image
x01.src="/images/cerrar_sesion_off.gif"
x11=new Image
x11.src="/images/cerrar_sesion_on.gif"

x02=new Image
x02.src="/images/iniciar_sesion_off.gif"
x22=new Image
x22.src="/images/iniciar_sesion_on.gif"



function filter(imagename,objectsrc)
{
var n = navigator.appName
var v = parseInt(navigator.appVersion)
var browsok = (n == "Netscape" && v >= 3)
var browsok2 = (n == "Microsoft Internet Explorer" && v >= 4)
if ( browsok || browsok2 )
document.images[imagename].src=eval(objectsrc+".src")
}

 var bName = navigator.appName;
 var bVer = parseInt(navigator.appVersion);
 var NS6 = (bName == "Netscape" && bVer >= 5);
 var NS4 = (bName == "Netscape" && bVer >= 4 && bVer < 5);
 var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
 var NS3 = (bName == "Netscape" && bVer < 4);
 var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
 window.onerror = null;
 var menuActive = 0
 var menuOn = 0
 var onLayer
 var timeOn = null 
 
 
 
function openwin(url,w,h)
{	
	
	var posw = ((screen.width - w) / 2);
	var posh = ((screen.height - h) / 2); 

	if (navigator.appName.indexOf("Microsoft")>=0)
		{c = ', left='+posw+', top='+posh;}
	else
		{c = ', screenX='+posw+', screenY='+posh;}

	mysettings = 'toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=no,status=no,width='+w+',height='+h+c;
	
	vent=window.open(url,'abrir123', mysettings);
	vent.focus();
}
 
 
function validate_contacto()
{
	if (document.myform.nombre.value == "")
 	   {alert("Campo Obligatorio NOMBRE"); document.myform.nombre.focus(); return false;}	     

	if (document.myform.apellidos.value == "")
 	   {alert("Campo Obligatorio APELLIDOS"); document.myform.apellidos.focus(); return false;}	  

	if (document.myform.email.value == "")
 	   {alert("Campo Obligatorio EMAIL"); document.myform.email.focus(); return false;}	    
	   
	if (document.myform.consulta.value == "")
 	   {alert("Campo Obligatorio CONSULTA"); document.myform.consulta.focus(); return false;}	     	   		
}

function validate_contacto_usuario()
{
	if (document.myform.asunto.value == "")
 	   {alert("Campo Obligatorio ASUNTO"); document.myform.asunto.focus(); return false;}	       
	   
	if (document.myform.consulta.value == "")
 	   {alert("Campo Obligatorio CONSULTA"); document.myform.consulta.focus(); return false;}	     	   		
}
 

