function gall(c,sirka,vyska)
{

 sirka_obr=screen.width;
 vyska_obr=screen.height;

 	var okno=window.open('','okno','scrollbars=no, left=' + (sirka_obr-sirka)/2 + ', top=' + (vyska_obr-vyska)/2.5 + ', width=' + sirka + ', height=' + vyska + ', resizable=no');
	okno.document.write('<html><head>');
	okno.document.write('<title>FS Zobor - Fotogaleria</title>');
	okno.document.write('</head>');
	okno.document.write('<body style="margin: 0px; padding: 0px;" onClick="self.close()">');
	okno.document.write('<div>');
	okno.document.write('<img src="'+c+'" title="Kliknutím zatvor Okno" style="cursor:pointer;">');
	okno.document.write('</div>');
	okno.document.write('</body>');
	okno.document.write('</html>');
	okno.document.close();

}



function datum(){
      var thismonth = new Array(12);
      thismonth[0]  = "január";
      thismonth[1]  = "február";
      thismonth[2]  = "marec";
      thismonth[3]  = "apríl";
      thismonth[4]  = "máj";
      thismonth[5]  = "jún";
      thismonth[6]  = "júl";
      thismonth[7]  = "august";
      thismonth[8]  = "september";
      thismonth[9]  = "október";
      thismonth[10] = "november";
      thismonth[11] = "december";
      var today = new Date();
      var day   = today.getDate();
      var month = today.getMonth();
      var year  = today.getYear();
      if (year < 1900){
         year += 1900;
      }
      return(day+" "+thismonth[month]+" " +year);
    }
	 
	 
	 
	 
	 function insertAtCaret (textEl, text) {
 if (textEl.createTextRange && textEl.caretPos) {
    var caretPos = textEl.caretPos;
    caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
  } else {
    textEl.value += text;
  }  
}

function add_tag(kod) {
//  document.form.item_message.value += kod;
  insertAtCaret(document.form.zprava,kod);
  document.form.zprava.focus();
}



