var click = false; function naviback(url){ if (history.length>0) history.back(); else goToURL(urlback);} function goToURL(url){ if (url) document.location.href=url;} function focusFForm(){ document.getElementById('imienazwisko').focus();} function hideMsg(){ document.getElementById('messageBox').style.visibility='hidden';} function menuMEvnt(id,img){ if (document.getElementById(id) && img) document.getElementById(id).src = img;} function sendFForm(){ if (click) return false; var info = ""; var p =/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; var f = document.getElementById('formFMessage'); if (!f.imienazwisko.value) info+='\n- imię i nazwisko osoby kontaktowej'; if (!p.test(f.mail.value)) info+='\n- poprawny adres e-mail'; if (!f.telefon1.value) info+='\n- numer telefonu'; if (info) { info = "Wiadomość nie może zostać wysłana, ponieważ\nnie wszystkie wymagane pola zostały wypełnione.\n\nBrakujące informacje:" + info + ".\n\nProszę uzupełnić dane i ponownie wysłać wiadomość."; alert (info); } else {click = true; f.submit();}} function showAZLocalization(){ var w=469; var h=608; var x=(screen.width-w)/2; var y=(screen.height-h)/2; var op="scrollbars=no,resizable=no,menubar=no,status=no,left="+x+",top="+y+",width="+w+",height="+h; var src=_url + "lokalizacja.html"; img=window.open(src,"image",op); img.focus();} function debug(){ var obj = document.getElementById('debug'); var shd = document.getElementById('shd'); if (obj.style.display=='block'){ shd.innerHTML='Show Debuger'; obj.style.display='none';} else{ shd.innerHTML='Hide Debuger'; obj.style.display='block';}} function mIMGHover(id,h){ if (document.getElementById(id)) {if (h) document.getElementById(id).className='mIMGon'; else document.getElementById(id).className='mIMGoff';}}