$(document).ready(function(){
	try
	{
		if ($('#btnRegistrate').length)
		{
			$('#btnRegistrate').click(function(){
				location = 'registrate.php';
			});
		}

		if ($('#btnBuscar').length)
		{
			$('#btnBuscar').click(function(){
				location = 'buscar.php';
			});
		}

		if ($('#btnPublicar').length)
		{
			$('#btnPublicar').click(function(){
				location = 'publicar.php';
			});
		}

		if ($('#btnLogIn').length)
		{
			$('#btnLogIn').click(function(){
				location = 'iniciarSesion.php';
			});
		}

		if ($('#usr').val() != '' )
			$('#pwd').focus();
		else
			$('#usr').focus();
	}
	catch(e){}
});