function Reagovat(str,id){
 x=document.getElementById("forumnadpis");
 x.innerHTML="Reakce na příspěvek od: "+str;
 document.formforum.id.value=id;
 document.formforum.text.focus();
 return true;
}

function KontrolaForum() {
 var chyba="";
  re = /^[_a-zA-Z0-9\-:\(\)@#&\{\}\\\<\>\?\^\+\-\/%\$\[\]\!]|^$/;
  if (!re.test(document.formforum.jmeno.value)) chyba+="Jméno začíná nepovoleným znakem<br />";
  re = /^.{2,}/;
  if (!re.test(document.formforum.jmeno.value)) chyba+="Jméno musí obsahovat alespoň 2 znaky<br />";
  re = /^[_a-zA-Z0-9\-:\*\(\)@#&\{\}\\\<\>\?\^\+\-\/%\$\[\]\!!\n]|^$/; 
  if (!re.test(document.formforum.text.value)) chyba+="Příspěvek začína nepovoleným znakem<br />";
  re = /^.{2,}/; 
  if (!re.test(document.formforum.text.value)) chyba+="Příspěvěk musí obsahovat alespoň 2 znaky<br />";
  re = /^[_a-zA-Z0-9\.\-]+@[_a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,4}$|^$/; 
  if (!re.test(document.formforum.email.value)) chyba+="Zadejte správný nebo žádny email<br />";
  
  
  if (chyba.length>0){var x=document.getElementById("forumchyba");
	                    x.innerHTML=chyba;                                             
                      x.style.display="block"; 
                      return false;}
   return true;
 }
 
 function zobrazinterni(cis){
  x=document.getElementById("interni");
  if (cis==0) x.style.display="block";
             
         else x.style.display="none";
               
 }