var odp = 0;



function klik(obj,i)
{
	odp = i;
	document.getElementById('hlas').className = "submitinvalid2";
	document.getElementById('odp1').className = "odpoved";
	document.getElementById('odp2').className = "odpoved";
	document.getElementById('odp3').className = "odpoved";
	//alert(obj);
	document.getElementById('odp' + i).className = "odpovedsel";
}


var step = 1;
var image1 = new Image();
image1.src="../../images/logo1.jpg";
var image2 = new Image();
image2.src = "../../images/logo2.jpg";
var image3 = new Image();
image3.src = "../../images/logo3.jpg";
var image4 = new Image()
image4.src = "../../images/logo4.jpg";

function slideit() {
	if (!document.images)
		return;
	document.images.slide.src=eval("image"+step+".src");
	if (step < 4)
		step++;
	else
		step = 1;
	setTimeout("slideit()",10000)
}

function initInputlist() {
	var s = document.getElementsByTagName("input");
	for (var j = 0; j < s.length; j++) {
		var is = s[j];
		var c = is.style.backgroundColor;
		var c2 = is.style.borderColor;
		//a9bd58
		is.onfocus = function() { this.style.backgroundColor = '#eefaff'; this.style.borderColor = '#a9bd58'; this.style.borderWidth = '1px'; };
		is.onblur = function() { this.style.backgroundColor = c; this.style.borderColor = c2; this.style.borderWidth = '1px'; };
		//console.log(is.name);
	}
	var s = document.getElementsByTagName("textarea");
	for (var j = 0; j < s.length; j++) {
		var is = s[j];
		var c = is.style.backgroundColor;
		var c2 = is.style.borderColor;
		//a9bd58
		is.onfocus = function() { this.style.backgroundColor = '#eefaff'; this.style.borderColor = '#a9bd58'; this.style.borderWidth = '1px'; };
		is.onblur = function() { this.style.backgroundColor = c; this.style.borderColor = c2; this.style.borderWidth = '1px'; };
		//console.log(is.name);
	}
}


function myload()
{
	// farebny input
	// slideit();
	initInputlist();
	if (document.myForm3)
		document.myForm3.odesilatel.focus();
	if (document.myForm2)
		document.myForm2.email2.focus();

}




