
// *************************************************************
// Codigo javascript
// Escrito por: E-Pulse S.C.
// Todo el c?digo aqui presente es propriedad de E-Pulse S.C
// *************************************************************

function confirmLink(theText)
{
    return confirm(theText);
}
function verLenda(ruta)
{
	popup = window.open(ruta, 'Leyend',
	'toolbar=0,location=0,directories=0,status=0,menubar=0,' 
	+ 'scrollbars=1,resizable=0,width=490,height=550');
	popup.focus();
}

function CheckFormCont(obj)
{
	if (obj.txtNombre.value == "" || obj.txtMail.value == "" || obj.txtConsulta.value == "")
	{
			alert ('you must write in all textfields');
			return false;
	}
	if (obj.txtdireccion.value == "0")
	{
		alert ('You must select a departament.');
		return false;
	} 
	return true;
}
function CheckFormLogin(obj)
{
	if (obj.Tnombre.value == "" || obj.Tpass.value == "")
	{
		alert('You must write your Login name and your Passwoerd');
		return false;
	}
	return true;
}

function AntiSpam(usuario,host)
{
	document.write('<a class="a_black" href="mailto:' + usuario + '&#64;' + host + '">' + usuario + '&#64;' + host + '</a>');
}
