function wnew(o){
	window.open(o);
}
	
function JSL(url, jmeno, w, h)
{
    okno = window.open("", jmeno, 'resizable=0,top=50,left=50,menubar=0,width=' + w + ',height=' + h);
        okno.document.write("<html><body style='margin:0px;padding:0px;' ><img src='"+url+"' onclick='window.close();' style='cursor: hand'></body></html>");
}

	function testEmail(strIn) {
		re = /^[^.]+(\.[^.]+)*@([^.]+[.])+[a-z]{2,5}$/;
		return strIn.search(re) == 0;
	}
	function validate(f) {
		if (f.email.value == "" || f.email.value == "@") {
			alert("Vyplňte prosím emailovou adresu!");
			f.email.focus();
			return false;
		} else if (!testEmail(f.email.value)) {
			alert("V emailové adrese je pravděpodobně chyba!");
			f.email.focus();
			return false;
		} else if (f.telefon.value == "") {
			alert("Vyplňte prosím telefonní číslo!");
			f.telefon.focus();
			return false;
		}
		return true;
	}