function over(argument){
argument.style.backgroundColor = "#CFD5E3";
}
function out(argument){
argument.style.backgroundColor = "#FFFFFF";
}
function doIt()
{
	box = document.prijava.spol; 
	if(box.options[box.selectedIndex].value == "M")
	{
		document.getElementById('kategorijaMM').style.display = 'block';
		document.getElementById('kategorijaZZ').style.display = 'none';		
			}
	else
	{
		document.getElementById('kategorijaMM').style.display = 'none';
		document.getElementById('kategorijaZZ').style.display = 'block';
	}
}

function validate(argument){
var vzami_input = document.getElementById('ime_ekipe');
var vzami_input1 = document.getElementById('geslo');
var vzami_input2 = document.getElementById('ime');
var vzami_input3 = document.getElementById('naslov');
var vzami_input4 = document.getElementById('rojen');
var vzami_input5 = document.getElementById('telefon');
var vzami_input6 = document.getElementById('ime1');
var vzami_input7 = document.getElementById('rojen1');
var vzami_input8 = document.getElementById('ime2');
var vzami_input9 = document.getElementById('rojen2');
var vzami_input10 = document.prijava.spol; 
var output = "Niste vpisali:\n";
var preglej = 0;
if (vzami_input.value == "" || vzami_input.value == " ") 
{output = output + "- Imena ekipe\n";
preglej = 1;}
if (vzami_input1.value == "") 
{output = output + "- Gesla\n";
preglej = 1;}
if (vzami_input2.value == "") 
{output = output + "- Imena vodje ekipe\n";
preglej = 1;}
if (vzami_input3.value == "") 
{output = output + "- Naslova vodje ekipe\n";
preglej = 1;}
if (vzami_input4.value == "") 
{output = output + "- Datuma rojstva vodje ekipe\n";
preglej = 1;}
if (vzami_input5.value == "") 
{output = output + "- Telefona vodje ekipe\n";
preglej = 1;}
if (vzami_input6.value == "") 
{output = output + "- Imena prvega clana\n";
preglej = 1;}
if (vzami_input7.value == "") 
{output = output + "- Datuma rojstva prvega clana\n";
preglej = 1;}
if (vzami_input8.value == "") 
{output = output + "- Imena drugega clana\n";
preglej = 1;}
if (vzami_input9.value == "") 
{output = output + "- Datuma rojstva drugega clana\n";
preglej = 1;}	
if (vzami_input10.options[vzami_input10.selectedIndex].value == "0" ) 
{output = output + "- Izberi kategorijo!\n";
preglej = 1;}
if (vzami_input10.options[vzami_input10.selectedIndex].value == "M" ) 
{   
	var vzami_input11 = document.prijava.kategorijaM; 
	if (vzami_input11.options[vzami_input11.selectedIndex].value == "0"){
	output = output + "- Izberi kategorijo za moske!\n";
	preglej = 1;
	}
}


if (preglej == 1){
	alert(output);
	return false;
} else {
	return true;
}
}

