function okno(misto) {
window.open(misto,'','width=650,height=450,scrollbars=no,resizable=1');
return false
}

function okno1(misto) {
window.open(misto,'','width=355,height=530,scrollbars=no,resizable=1');
return false
}

function okno2(misto) {
window.open(misto,'','width=530,height=370,scrollbars=no,resizable=1');
return false
}

function okno3(misto) {
window.open(misto,'','width=624,height=405,scrollbars=no,resizable=1');
return false
}

function okno4(misto) {
window.open(misto,'','width=623,height=455,scrollbars=no,resizable=1');
return false
}

function okno5(misto) {
window.open(misto,'','width=565,height=435,scrollbars=no,resizable=1');
return false
}

function okno6(misto) {
window.open(misto,'','width=660,height=510,scrollbars=no,resizable=1');
return false
}

function okno7(misto) {
window.open(misto,'','width=480,height=600,scrollbars=no,resizable=1');
return false
}

function oknocele(misto) {
window.open(misto,'');
return false
}

function chbb(misto) {
window.open(misto,'','width=300,height=300,scrollbars=0,resizable=0');
return false
}

function dtvypln(co,hl) {
	var navrat = '';
	if (co=='') {
		navrat=hl;
		return navrat;
	}
	var delka=co.length;
	var pocetmezer=0;
	for (var i=0; i<delka; i++) {
		if (co.charAt(i)==' ') pocetmezer++
	}
	if (pocetmezer==delka) navrat=hl;
	return navrat;
}

function dtmail(co,hl) {
	var navrat = '';
	var filter=/^.+@.+\..{2,4}$/;
	if (! (filter.test(co))) navrat=hl;
	return navrat;
}

function test(mf) {
// Globální testovací funkce
	var chyba = '';
	chyba = chyba + dtvypln(mf.jmeno.value,'Nebylo vyplněno jméno.\n');
	chyba = chyba + dtmail(mf.mail.value,'Email nemá platnou strukturu.\n');
	chyba = chyba + dtvypln(mf.zprava.value,'Napište Vaši zprávu.\n');
	if (chyba == '') 
		return true;
	chyba='Opravte prosím:\n\n'+chyba+'\n';
	window.alert(chyba);
	return false;
}