		function setSmile(add,where)
		{
			document.getElementById(where).value = document.getElementById(where).value + (' '+add+' ');
		}
		function openpicture(file,width,height)
		{
			var param = "width="+width+",height="+height+",statusbar=0,menubar=0";
			newwin = window.open(file,"preview",param);
			newwin.moveTo(screen.width/2-width/2,200);
			return false;
		}
		function openprint(idecko, formPrint, formUserId)
		{
			var screenW = 640;
			if (parseInt(navigator.appVersion)>3) {
			 screenW = screen.width;
			}
			else if (navigator.appName == "Netscape"
			    && parseInt(navigator.appVersion)==3
			    && navigator.javaEnabled()
			   )
			{
			 var jToolkit = java.awt.Toolkit.getDefaultToolkit();
			 var jScreenSize = jToolkit.getScreenSize();
			 screenW = jScreenSize.width;
			}


			var param = "width=700,height=700,statusbar=0,menubar=0,scrollbars=1";
			var file = "";
			if(formPrint != 1)
			{
				file = "/print.php?id=" + idecko;
			}
			else
			{
				file = "/print.php?id=" + idecko + "&formPrint=1&formUserId=" + formUserId;
			}
			newwin = window.open(file,"print",param);
			newwin.moveTo(screenW.width/2-screenW/2,200);
			return false;
		}