function oknor(o)
{
	okn=window.open('','','status=yes,toolbar=no,location=no,menu=no,resizable=yes,width=450,height=280,top=15,left=50');
	okn.document.write("<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-2\" /><title>RP tuning - Produkt - Foto<\/title>\n");
	okn.document.write("<style type=\"text\/css\">\nbody { background: #fff;margin:0;padding:0 } img { cursor:pointer }\n<\/style>\n");
	okn.document.write("<scr"+"ipt type=\"text\/javascript\"> function set() { window.resizeTo(document.images.im.width+20,document.images.im.height+55); }\n<\/scr"+"ipt>\n<\/head>\n");
	okn.document.write("<body>\n<div align=\"center\"><img onclick=\"window.close()\" src=\""+o+"\" name=\"im\" onload=\"set();\" alt=\"\" title=\"Kliknutim zavrete toto okno\" /></div>\n<\/body>\n<\/html>");
	okn.document.close();
}
function email(jmeno, server)
{
	var adresa = "mailto:" + jmeno + "@" + server;
	document.location.href = adresa;
	return false;
}
var maxs = 0;
function pridej(n,p)
{
   if (p != 0)
   {
   var df = document.forms.formular.vzkaz.value;
   var df = df.length;
   if (n == "b") { document.forms.formular.vzkaz.value += '<b></b>'; }
   if (n == "i") { document.forms.formular.vzkaz.value += '<i></i>'; }
   if (n == "u") { document.forms.formular.vzkaz.value += '<u></u>'; }
   }
   else
   {
    maxs++;
	if (maxs <= 5) { document.forms.formular.vzkaz.value += '~' + n + ' '; }
	else { document.forms.formular.vzkaz.focus(); }
   }
	document.forms.formular.vzkaz.focus();
}
function okno_odkaz()
{
	okn=window.open('odkaz.php','oko','dependent=yes, width=410, height=65, top=80, left=190, menubar=0, personalbar=0, status=0');
	okn.document.close();
}