function toggleDiv(divid){
 if(document.getElementById(divid).style.display == 'none'){
    document.getElementById(divid).style.display = 'block';
  }else{
    document.getElementById(divid).style.display = 'none';
  }
}
function bookmarksite(title,url){
	if (window.sidebar) // firefox
		window.sidebar.addPanel(title, url, "");
	else if(window.opera && window.print){ // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	}else if(document.all)// ie
		window.external.AddFavorite(url, title);
}
function onSelection1(selectobj) {
	self.location='index.php?page=s_sign&samp_id='+selectobj.options[selectobj.selectedIndex].value;	
}

function onSelection2(selectobj) {
	document.getElementById('ud_id').value = selectobj.options[selectobj.selectedIndex].value;
}

function onSelection3(selectobj) {
	self.location='index.php?page=s_a_result&samp_id='+selectobj.options[selectobj.selectedIndex].value+'&id='+ document.getElementById('r_id').value;
}

function onSelection4(selectobj) {
	document.getElementById('pilot').value = selectobj.options[selectobj.selectedIndex].value;
}

function onSelection5(selectobj) {
	document.getElementById('dnf').value = selectobj.options[selectobj.selectedIndex].value;
	if ((selectobj.options[selectobj.selectedIndex].value == "1") || (selectobj.options[selectobj.selectedIndex].value == "2")) {
		document.getElementById('pozicia').value = "0";
		document.getElementById('points').value = "0";
	}
	if (selectobj.options[selectobj.selectedIndex].value == "2") {
		document.getElementById('kvalpos').value = "0";
	}	
	
}

function Forum_DisplayMessage(me, eid)
{
	var e = document.getElementById(eid);
	if(e && me)
	{
		if(e.style.display == "none")
		{
			e.style.display = "";
			me.src = "images/forum/minus.gif";
		}
		else
		{
			e.style.display = "none";
			me.src = "images/forum/plus.gif";
		}
	}
}

