function zobrazSkryj(idecko){
 el=document.getElementById(idecko).style;el.display=(el.display == 'block')?'none':'block';
}
function skryjZobraz(idecko){
 el=document.getElementById(idecko).style;el.display=(el.display == 'none')?'block':'none';
}
function code(text) {
 if (document.formular.obsah.createTextRange && document.formular.obsah.caretPos){
  var caretPos = document.formular.obsah.caretPos;
  caretPos.text =  caretPos.textstary.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
 }else{ 
  document.formular.obsah.value += text;
  document.formular.obsah.focus(caretPos);
 }
}
function checkUncheckSome(controller,theElements) {
     var formElements = theElements.split(',');
	 var theController = document.getElementById(controller);
	 for(var z=0; z<formElements.length;z++){
	  theItem = document.getElementById(formElements[z]);
	  if(theItem.type){
	    if (theItem.type=='checkbox') {
	    	theItem.checked=theController.checked;
	    }
	  } else {
	  	  theInputs = theItem.getElementsByTagName('input');
	  for(var y=0; y<theInputs.length; y++){
	  if(theInputs[y].type == 'checkbox' && theInputs[y].id != theController.id){
	     theInputs[y].checked = theController.checked;
	    }
	  }
	  }
    }
} 

function swaparrows(obj) {
   			  var x=document.images

 				 if (x[0].src=="") {
 			 	 x[0].src="http://www.superobrazy.cz/images/plus.gif";
   				  }

   				 else  {
 			 	 x[0].src="http://www.superobrazy.cz/images/minus.gif";
   				  }
   		  }

