function openPopup(strng, sirkaOk, vyskaOk, x, y, resize, copyfce) {	
 // --------- default hodnoty
	if (sirkaOk == undefined) { sirkaOk = 600; } 
	if (vyskaOk == undefined) { vyskaOk = 400; }
	if (x == undefined) { x = 10; }		
	if (y == undefined) { y = 10; }
	if (resize == undefined) { resize = 1; }

	var s = window.open('', 'IBA','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable='+resize)
	s.moveTo(2000,2000);s.resizeTo(sirkaOk,vyskaOk); 
	s.document.open();
		astr ='<?xml version="1.0" encoding="iso-8859-2"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">	<head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-2" />';
		astr +='<link rel="stylesheet" href="styles/style.css" type="text/css" /></head>';
		astr +='<body onload="focus()"><p style="margin:25px">'; 
		astr += strng;  
		astr +='</p><div style="text-align:center">';
		astr +=' <button style="margin:5px" onclick="window.close();">Zavøít / Close</button></div></body></html>';
	s.document.write(astr); 
	s.document.close();
	s.moveTo(x,y);
}

function Mailto(jmeno, domena, atrib, text) {
	zavinac = "@";
	switch (Mailto.arguments.length) {
				case 1:
            document.write("<a href='mailto:"+jmeno+""+zavinac+"iba.muni.cz"+"'>"+jmeno+""+zavinac+""+"iba.muni.cz"+"</a>");	
				break;
				case 2:
            document.write("<a href='mailto:"+jmeno+""+zavinac+""+domena+""+"'>"+jmeno+""+zavinac+""+domena+"</a>");	
				break;
				case 3:
            document.write("<a "+atrib+" href='mailto:"+jmeno+""+zavinac+""+domena+""+"'>"+jmeno+""+zavinac+""+domena+"</a>");	
				break;
				case 4:
            document.write("<a "+atrib+" href='mailto:"+jmeno+""+zavinac+""+domena+"'>"+text+"</a>");			
				break;
	}
} 

