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 cfReset(o){ var f = document.getElementById('formFSearch'); if (f[o]){ f[o].value=0; document.getElementById('sphc-'+o).className='off';}} function csReset(){ var f = document.getElementById('formFSearch'); if (f['s']){ f['s'].value=''; document.getElementById('sphc-s').className='off';}} function mProdTab(o){ if (o=='k') {document.getElementById('mptbg').className='tabBGK'; document.getElementById('mboxk').style.display='block'; document.getElementById('mboxz').style.display='none';} if (o=='z') {document.getElementById('mptbg').className='tabBGZ'; document.getElementById('mboxz').style.display='block'; document.getElementById('mboxk').style.display='none';}} function sendQForm(){ 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('formFAQuestion'); if (!p.test(f.e.value)) info+='\n- poprawny adres e-mail'; if (!f.q.value) info+='\n- treść pytania'; if (info) { info = "Pytanie nie może zostać wysłane, ponieważ\nnie wszystkie wymagane pola zostały wypełnione.\n\nBrakujące informacje:" + info + ".\n\nProszę uzupełnić dane i ponownie wysłać pytanie."; alert (info); } else {click = true; f.submit();}} 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 (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 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).hover=true; else document.getElementById(id).hover=false;}}