<!--
function validate(form) //kontrola formularu
{
	var elm=form.elements['name'];
    if(elm.value=="")
	{
		alert("Jméno a příjmení - údaj nebyl zadán.");
		elm.focus();
		return(false);
	}
	txt=new RegExp("^[^.]+(\.[^.]+)*@([^.]+[.])+[a-z]{2,3}$");
	var elm=form.elements['email'];
	if(!txt.test(elm.value)) { 
		alert("E-mail - údaj nebyl zadán, nebo e-mail nemá platný formát."); 
		elm.focus(); 
       		return false;
       	} 
	var elm=form.elements['message'];
    if(elm.value=="")
	{
		alert("Váš vzkaz - údaj nebyl zadán.");
		elm.focus();
		return(false);
	}
	else {
		return(true);
	}
}

var okno, x, y, sbar, resize, tbar, mbar, statbar, locbar;

function enlarge(objpath,x,y,sbar,resize,tbar,mbar,statbar,locbar) //otevre okno s rozmery, s/bez toolbaru, menubaru, s/bez posuvniku, ne/zvetsovatelne, se statuslinkou a lokaci
{
	if(sbar=='1') {	sbar='scrollbars=yes'; 	}
	else { sbar='scrollbars=no'; }
	if(resize=='1') { resize='resizable=yes'; }
	else { resize='resizable=no'; }
	if(tbar=='1') {	tbar='toolbar=yes'; }
	else { tbar='toolbar=no'; }
	if(mbar=='1') {	mbar='menubar=yes'; }
	else { mbar='menubar=no'; }
	if(statbar=='1') { statbar='status=yes'; }
	else { statbar='status=no'; }
	if(locbar=='1') { locbar='location=yes'; }
	else { locbar='location=no'; }
	if(okno) { okno.close(); }
	okno=window.open(objpath,'window','' + sbar + ',' + resize + ',' + tbar +',' + mbar +',' + statbar + ',' + locbar + ',width=' + x + ',height=' + y + '');
	okno.focus();
}

function winclose()  //zavre okno
{
	if(okno) { okno.close(); }
}

/*function checkframe(wheretogo)  //zjisti, zda stranka je/neni soucasti ramu
{
	if(self==parent) {
		self.location=wheretogo;
	};
}*/

/*function updateframes(url1,url2)  //updatuje x ramu ve framesetu, cisla ramu dle poradi ve framesetu
{
	parent.frames[2].location=url2;
	parent.frames[0].location=url1;
}*/

/*function wintimeclose() {
	var timeout=x;
	setTimeout("self.close()",timeout);	
}*/

/*function follow(where) {
	self.opener.parent.location=where;
	self.close();
}*/
//-->