var page_url = "http://www.katerinalucka.cz"; function inc_script(name) { document.write(''); //alert(''); } inc_script('jquery'); inc_script('jtip'); inc_script('thickbox'); function loadLang(lng) { document.write(''); } loadLang('cs_CZ'); function okno(stranka,w,h,tit,sc) { if (stranka =="") stranka= this.href; if (sc == "") sc = 'no'; a=window.open(stranka,tit,'toolbar=no,location=no,directories=no,status=no,resizable=yes,copyhistory=no,width='+w+',height='+h+',scrollbars='+sc); return false; } //window.onload.change_mod_type(0); function check_post(formular) { if (formular.prijemce_input.value=="" && formular.prijemce.value=="") { alert("Jméno příjemce musíte vyplnit!"); formular.prijemce_input.focus(); return false; } else if (formular.msg_text.value=="") { alert("Zpráva bez obsahu není zpráva!"); formular.msg_text.focus(); return false; } else return true; } // form validation function // function check_register(form) { var name = form.reg_login.value; var email = form.reg_mail.value; var pass1 = form.reg_pass1.value; var pass2 = form.reg_pass2.value; var nameRegex = /^[a-zA-Z]+(([\'\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*$/; var emailRegex = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/; var passRegex = /^[_a-z0-9*\-ěščřžýáíé]{5,55}$/; if(name == "") { inlineMsg('reg_login','You must enter your name.',2); return false; } if(!name.match(nameRegex)) { inlineMsg('reg_login','You have entered an invalid name.',2); return false; } if(email == "") { inlineMsg('reg_mail','Error
You must enter your email.',2); return false; } if(!email.match(emailRegex)) { inlineMsg('reg_mail','Error
You have entered an invalid email.',2); return false; } if(pass1 == "") { inlineMsg('reg_pass1','You must enter a password.'); return false; } if(!pass1.match(passRegex)){ inlineMsg('reg_pass1','You have entered an invalid password'); return false; } if(pass2 == "") { inlineMsg('reg_pass2','You must enter a password again.'); return false; } if(pass1 != pass2) { inlineMsg('reg_pass2','Passwords don\'t match'); return false; } if(message.match(messageRegex)) { inlineMsg('message','You have entered an invalid message.'); return false; } return true; } inc_script('messages'); function check_comment(formular){ if (formular.author.value==""){ alert(_USERLANG6); formular.author.focus(); return false; }else if (window.RegExp){ re = new RegExp("^[^.]+(\.[^.]+)*@([^.]+[.])+[a-z]{2,4}$"); if (!re.test(formular.email.value)){ alert(_USERLANG5); formular.email.focus(); return false; } }else if (formular.comment.value==""){ alert(_USERLANG7); formular.comment.focus(); return false; } } function change_mod_type(mod_type){ if (mod_type == 0) { //module document.menu_item_form.new_name.disabled = false; document.menu_item_form.new_desc.disabled = false; document.menu_item_form.new_path.disabled = true; var cont = document.getElementById('td_content'); cont.style.display = 'none'; cont.style.height = '0'; } if (mod_type == 1) { //html document.menu_item_form.new_name.disabled = false; document.menu_item_form.new_desc.disabled = false; document.menu_item_form.new_path.disabled = true; var cont = document.getElementById('td_content'); cont.style.display = ''; } if (mod_type == 2){ //odkaz document.menu_item_form.new_name.disabled = false; document.menu_item_form.new_desc.disabled = true; document.menu_item_form.new_path.disabled = false; var cont = document.getElementById('td_content'); cont.style.display = 'none'; cont.style.height = '0'; } } inc_script('md5'); //MD5 script oddelen //nastaveni hoveru menu pro IE function markRowsInit() { var rows = document.getElementsByTagName('li'); for ( var i = 0; i < rows.length; i++ ) { if ( navigator.appName == 'Microsoft Internet Explorer' ) { rows[i].onmouseover = function() { if ( 'activated' != this.className.substr(0,9) ) { this.className += 'active'; } } rows[i].onmouseout = function() { this.className = this.className.replace( 'active', '' ); } } } } window.onload=markRowsInit;