function borrarTexto(identificador)
{
	
	switch (identificador)
	{
		case "buscador": 
			/*if (document.getElementById(identificador).value=="Escriba aquí su búsqueda")
			{	
				document.getElementById(identificador).value = ""; 
			}*/
			document.getElementById(identificador).value = ""; 
		break;
		case "inputBuscNot": 
			if (document.getElementById(identificador).value=="Escriba aquí su búsqueda")
			{
				document.getElementById(identificador).value = ""; 
			}
		break;
		case "usuario": 
			if (document.getElementById(identificador).value=="Nombre de Usuario")
			{
				document.getElementById(identificador).value = ""; 
			}
		break;
		case "contrasena": 
			if (document.getElementById(identificador).value=="Contraseña")
			{
				document.getElementById(identificador).value = ""; 
			}
		break;
	}
}
function spamSucks(domain,user) 
{ 
	document.location.href = "mailto:" + user + "@" + domain; 
}
function validarLogin(formulario)
{
	var capa = document.getElementById('pLoginResultado');
	var capa2 = document.getElementById('capaResultadoLogin');
	capa.innerHTML = '';
	capa2.style.display = 'none';
	
	if (formulario.usuarioExtranet.value != '' && formulario.passwdExtranet.value != '')
	{
		formulario.submit();
		return true;
	}
	else
	{
			//var capa = document.getElementById('pLoginResultado');
			capa.innerHTML = 'Usuario no válido';
			capa2.style.display = 'block';
			return false;
	}
}
