﻿

	Tload[TCounts] = "ReceptyInit";
	TCounts ++;


        function ReceptyInit()
	{
        	var s = location.href;
		if (s.indexOf("recepty") != -1)
		{
			var ix = s.indexOf("?");
			if (ix != -1)
			{
				s = s.substr(ix+1, s.length-ix-1);
				ix = s.indexOf("=");
				if (ix != -1)
				{
					s = s.substr(ix+1, s.length-ix-1);
					if (s == 'OK') alert('Děkujeme za zaslání receptu');
					else alert('Chyba při zaslání receptu');
				}
			}
		}
	}


	function ReceptOdesli(t)
	{

		t.disabled = true;
		document.forms[0].submit();

	}


