function bover( o ) { o.style.backgroundPosition = '0 42px'; }

function bout( o ) { o.style.backgroundPosition = '0 0'; }

function f( objName ) {
	var el = document.getElementById( objName );
	if( el ) { el.focus(); }
	else {
		el = document.getElementById( 'q' );
		if( el ) { el.focus(); }
	}
}

function checkFormOcijeni() {
	var ret = false;
	if( anyRadioChecked( document.ocijeni.grade ) ) { ret = true; }
	return ret;
}

function anyRadioChecked( r ) {
	var ret = false;
	for( var i=0; i<r.length; i++ ) { if( r[ i ].checked ) { ret = true; } }
	return ret;
}

var nextYoutube = 1;

function checkSearch() {
	if( document.searchForm.lq.value.length < 2 ) { return false; }
	return true;
}

function submitSearch() {
	if( checkSearch() ) { document.searchForm.submit(); }
	else { document.searchForm.lq.focus(); }
}

function ytn( p, w, h ) {
	document.getElementById( 'yv' ).innerHTML = '<iframe frameborder="0" width="' + w + '" height="' + h + '" src="' + p + 'video/' + youtubes[ nextYoutube++ ] + '"></iframe>';
	document.getElementById( 'yn' ).innerHTML = nextYoutube;
	if( nextYoutube >= youtubes.length ) { nextYoutube = 0; }
}

