function enfocar(){
   document.form2.usuario.focus() ;
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
function validar(obj){
	
    //valido el usuario
	if (obj.usuario)
	{
    if (obj.usuario.value.length==""){ 
       alert("Tiene que especificar un USUARIO") 
       obj.usuario.focus() 
       return false; 
    } 
	}
	
    //valido la contrase&ntildea
	if (obj.clave)
	{
	if (obj.clave.value.length==""){ 
       alert("Tiene que especificar la CONTRASEŅA") 
       obj.clave.focus() 
       return false; 
    }
	}
	
	//valido el remitente
	if (obj.remitente)
	{
    if (obj.remitente.value.length==""){ 
       alert("Tiene que especificar su nombre") 
       obj.remitente.focus() 
       return false; 
    } 
	}
	 
	//valido el comentario
	if (obj.comentario)
	{
    if (obj.comentario.value.length==""){ 
       alert("El comentario no puede estar vacio") 
       obj.comentario.focus() 
       return false; 
    } 
	} 

    //el formulario se envia 
	return true;
} 

function cambiarFondo(obj)
{
 obj.style.backgroundColor = 'F9921C'
 obj.style.cursor = 'hand'
}

function restFondo(obj)
{
 obj.style.backgroundColor = ''
}

function actClick(obj)
{
 obj.firstChild.firstChild.click()
}

function galeriaMostrar(texto)
{
 elDiv = document.getElementById(texto)
 if (elDiv.style.visibility == 'hidden')
 {
  elDiv.style.position = 'relative'
  elDiv.style.visibility = 'inherit'
 }
 else
 {
  elDiv.style.position = 'absolute'
  elDiv.style.visibility = 'hidden'
 }
}