var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1 var ns6=document.getElementById&&!document.all var ns4=document.layers function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&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&&i57) return false; if ((code<48||code>57)&&(code!=46)) return false; else return true; } function update_journal(object_name){ // function for subscribe for impressmedia value1 = MM_findObj(object_name).checked; if (value1) value2=false; else value2=true; // window.alert(object_name); // window.alert(value); MM_findObj(object_name+'_month').disabled = value2; MM_findObj(object_name+'_year').disabled = value2; MM_findObj(object_name+'_period').disabled = value2; num = MM_findObj(object_name+'_count').value; for (i=1; i<=num; i++ ) { MM_findObj(object_name+'_special['+i+']').disabled = value2; // window.alert(MM_findObj(object_name+'_special['+i+']').checked); } } function popup(url,w,h,sb) { atr = ''; atr = atr + 'toolbar=no,'; if (sb) { atr = atr + 'scrollbars=no,'; } else { atr = atr + 'scrollbars=yes,'; } atr = atr + 'location=no,'; atr = atr + 'statusbar=no,'; atr = atr + 'menubar=no,'; atr = atr + 'resizable=no,'; atr = atr + 'status=no,'; atr = atr + 'toolbar=no,'; atr = atr + 'menubar=no,'; if (w) { atr = atr + 'width='+w+','; atr = atr + 'height='+h+','; } else{ atr = atr + 'width=700,'; atr = atr + 'height=700,'; } atr = atr + ' left='+String((screen.width-w)/2)+', top='+String((screen.height-h)/2); new_window=window.open(url,'_blank',atr); new_window.focus(); } function show_nl(news_id) { tmpobj = MM_findObj('ndata_'+news_id); if (tmpobj != null) tmpobj.style.display= 'inline'; tmpobj = MM_findObj('hide_'+news_id); if (tmpobj != null) tmpobj.style.display = 'inline'; tmpobj = MM_findObj('more_'+news_id); if (tmpobj != null) tmpobj.style.display = 'none'; } function hide_nl(news_id) { tmpobj = MM_findObj('ndata_'+news_id); if (tmpobj != null) tmpobj.style.display= 'none'; tmpobj = MM_findObj('hide_'+news_id); if (tmpobj != null) tmpobj.style.display = 'none'; tmpobj = MM_findObj('more_'+news_id); if (tmpobj != null) tmpobj.style.display = 'inline'; } function img_popup(img) { atr = ''; atr = atr + 'scrollbars=no,'; atr = atr + 'location=no,'; atr = atr + 'statusbar=yes,'; atr = atr + 'menubar=no,'; atr = atr + 'status=yes,'; atr = atr + 'toolbar=no,'; atr = atr + 'resizable=no,'; atr = atr + 'width=300,'; atr = atr + 'height=300,'; atr = atr + ' left=150, top=150'; html = '
закрыть окно
'; win=window.open('','',atr); win.document.write(html); win.focus(); return(false); } function set_img_src(obj_id, img_src) { tmpobj = MM_findObj(obj_id); if (tmpobj != null) { tmpobj.src = img_src; } } function check_contact_submit() { tmpobj = MM_findObj('fio'); if (tmpobj != null) { if (tmpobj.value == "") { alert('Вы не заполнили поле "Фамилия, Имя".'); return(false); } } else { return(true); } tmpobj = MM_findObj('email'); if (tmpobj != null) { if (tmpobj.value == "") { alert('Вы не заполнили поле "Контактный e-mail".'); return(false); } } else { return(true); } tmpobj = MM_findObj('phone'); if (tmpobj != null) { if (tmpobj.value == "") { alert('Вы не заполнили поле "Контактный телефон".'); return(false); } } else { return(true); } } function show_block(block_name) { tmpobj = MM_findObj(block_name); if (tmpobj != null) tmpobj.style.display= 'inline'; return false; } function hide_block(block_name) { tmpobj = MM_findObj(block_name); if (tmpobj != null) tmpobj.style.display= 'none'; return false; }