function do_changeListWineries(region)
{
	x_changeListWineries(region, changeListWineries_cb)
}


function AddToOptionList(OptionList, txt, val) 
{
	OptionList[OptionList.length] = new Option(txt, val);
}

function ClearOptions(OptionList) 
{
	if(OptionList == undefined || OptionList == null || OptionList == "") return;
	for (x = OptionList.length; x >= 0; x = x - 1) {
		OptionList[x] = null;
	}
}

function do_logout(page)
{
	x_logoutRequest(page,do_logout_cb);
}

function do_logout_cb(page)
{		
	window.location.href = page; 
}

function submitSearch(type)
{
    if (document.formSearch.name.value != "" && 
    	document.formSearch.name.value != "Effettua una ricerca")
    {
		document.getElementById('modeSearch').value=type;
		document.getElementById('formSearch').submit();
	}
}
