
function loadSelectFromArray(sArrayName, sSelectId) {
	var counter;

	clearSelect(sSelectId);
	var oArray = eval(sArrayName);
	for (counter=0; counter<oArray.length; counter++) 
	{
		var oOption = new Option( oArray[counter].field1, oArray[counter].field2);		
		document.getElementById(sSelectId).options[counter] = oOption;
	} 
} 

function clearSelect(sSelectId) {
	document.getElementById(sSelectId).length = 0;
}

function Tupla ( field1, field2)
{
	this.field1 = field1;
	this.field2 = field2;
}


