function highlight()
{
var t=document.getElementById("s");
t.onfocus=function()
	{
	if (t.value==t.defaultValue) t.value='';
	};
}
function initSelect(selector)
	{
		var theSelect = document.getElementById(selector);
		theSelect.changed = true;
		theSelect.onfocus = selectFocussed;
		theSelect.onchange = selectChanged;
		theSelect.onclick = selectClicked;

		return true;
	}
	
	
function selectChanged(theElement)
{
	var theSelect;

	if (theElement && theElement.value)
	{
		theSelect = theElement;
	}
	else
	{
		theSelect = this;
	}

	if (!theSelect.changed)
	{
		return false;
	}
	document.combo.submit();

	return true;
}



function selectClicked()
{
	this.changed = true;
}
function selectFocussed()
{
	this.initValue = this.value;

	return true;
}


//////////////////////////////////

function init() {
	if (document.getElementById('pais')){
	initSelect('pais');
	}
	if (document.getElementById('sector')){
	initSelect('sector');
	}
	if (document.getElementById('TecnicoPais')){
	initSelect('TecnicoPais');
	}
	if (document.getElementById('s')){
	highlight();
	}
}