function synchronizeSelectBoxes(from, to)
{
	if (from=='' || to==''){
		return;
	}

	var fromSel = document.getElementById(from);
	var toSel = document.getElementById(to);
	var fromValue = fromSel.options[fromSel.selectedIndex].value
	var i;
		
	for (i = 1; i < toSel.length; i++)// run over all options in select
	{
		if (toSel.options[i].value == fromValue) 
		{		
			  toSel.selectedIndex = i;
			  return;
		}
	}
	toSel.selectedIndex=-1
}
//------------------------------------------------------------------------------------------------
function isInt( tested,name)
{
	if ( !tested.value ||  /\d+/.test(tested.value)) return true ;
	else{
		tested.value='';
		tested.focus();
		return false ;
	}
}
//------------------------------------------------------------------------------------------------
