function go_comnav_url(){ box = document.getElementById('comnav'); destination = box.options[box.selectedIndex].value; if (destination) location.href = destination; } function go_umenu_url(){ box = document.getElementById('user_nav'); destination = box.options[box.selectedIndex].value; if (destination) location.href = destination; } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i\n" +"\n" +"
" +"" +"
\n" +"" ); new_window.document.close(); new_window.focus(); } // Subsribe function for Kajubus (don't move) function ChangeBold (field) { var data_check = document.getElementById(field); if (data_check.value=='1') { document.getElementById('flag1_check').style.fontWeight = "Bolder"; document.getElementById('flag2_check').style.fontWeight = "normal"; } else { document.getElementById('flag2_check').style.fontWeight = "Bolder"; document.getElementById('flag1_check').style.fontWeight = "normal"; } } function CheckSubForm () { var is_error=0; if (CheckEMail(document.subscribe.smail, 10) == false || document.subscribe.smail.value =="") { is_error = 1; document.getElementById("email_s_check").style.color = "#FF0000"; document.getElementById('email_s_check').innerHTML = "Невірнo введений E-mail"; } else { document.getElementById("email_s_check").style.color = "#000000"; document.getElementById('email_s_check').innerHTML = ""; } if(is_error == 1) { return false; } return true; } function CheckEMail(field) { str_email = field.value.toString(); t = str_email.indexOf("@"); if ((str_email.indexOf(".") == -1) || (t == -1) || (t < 1) || (t > str_email.length - 5) || (str_email.charAt(t - 1) == '.') || (str_email.charAt(t + 1) == '.')) { return false; } return true; }