// JavaScript Document
function barvatam(pole){
	pole.style.backgroundColor='#ccccff'
	pole.style.borderstyle='solid'
}
function barvazpetvalid(pole){
	if(!pole.value=="")
	{
		pole.style.backgroundColor='#ffffff';
	}
	else if(pole.value=="")
	pole.style.background='#FF0000';
}
function barvazpet(pole){
	pole.style.backgroundColor='#ffffff'
}
function changeMenu(sel)
{
	var f = sel.form;
	var opt = sel.options[sel.selectedIndex].value;
	if(opt=="1")
	{
		document.getElementById("a1").style.display = "block";
		document.getElementById("a2").style.display = "none";
	}
	else if (opt=="2")
	{
		document.getElementById("a2").style.display = "block";
		document.getElementById("a1").style.display = "none";
	}
	else if (opt=="0")
	{
		document.getElementById("a2").style.display = "block";
		document.getElementById("a1").style.display = "block";
	}
	return true;
}
function changeMenu2(sel)
{
	if(sel.options[sel.selectedIndex].value=="1")
	{
		document.getElementById("DeparturePoints").selectedIndex=11;
	}
	return true;
}
function checkAll(){
	for (var i=0;i<document.forms[0].elements.length;i++)
	{
		var e=document.forms[0].elements[i];
		if ((e.name != 'allbox') && (e.type=='checkbox') && (e.name!='chceucet'))
		{
			e.checked=document.forms[0].allbox.checked;
		}
	}
}

