function focused(box)
{
	box.style.color = '#303030';
	box.style.fontStyle = 'normal';
	if (box.value == 'Buscar...')
	{
		box.value  = '';
	}
}

function unfocused(box)
{
	box.style.color = '#303030';
	box.style.fontStyle = 'normal';
	if (trim(box.value) == '')
	{
		box.value  = 'Buscar...';
		box.style.color = '#9c9c9c';
		box.style.fontStyle = 'italic';
	}
}


function trim(str)
{
	s = str.replace(/^(\s)*/, '');
	s = s.replace(/(\s)*$/, '');
	return s;
}


function showBlock(b)
{
	var hB = document.getElementById("hide_" + b);
	var sB = document.getElementById("show_" + b);
	var d = document.getElementById("div_" + b);
	hB.style.display = "block";
	sB.style.display = "none";
	d.style.display = "block";
}
	
function hideBlock(b)
{
	var hB = document.getElementById("hide_" + b);
	var sB = document.getElementById("show_" + b);
	var d = document.getElementById("div_" + b);
	hB.style.display = "none";
	sB.style.display = "block";
	d.style.display = "none";
}