function subForm( obj_id ) { var obj = document.getElementById(obj_id); if( obj ) obj.submit(); } function newwin(url,w,h) { var window_name = 'myWin_' + Math.round( Math.random()*1000 ) ; var myWin = open(url, window_name, 'location=0,menubar=0,toolbar=0,resizable=1,scrollbars=1,width='+w+',height='+h+''); if ( myWin ) myWin.focus(); } function showLayer( obj ) { if ( obj ) { obj.style.display = (obj.style.display == 'none') ? '' : 'none'; } } function changeOption( targ,selObj ) { eval(targ + ".location='"+selObj.options[selObj.selectedIndex].value + "'"); } function goTo(link, select) { var str = ""; if(select.options[select.selectedIndex].value != "") { str += "&" + select.options[select.selectedIndex].value } window.location = link + str; } function switchVisibility( obj_id ) { var obj = (typeof obj_id == 'object') ? obj_id : document.getElementById(obj_id); if( obj ) { obj.style.display = ( obj.style.display == 'block' ) ? 'none' : 'block'; } } function checkMail( obj_id ) { var obj = (typeof obj_id == 'object') ? obj_id : document.getElementById( obj_id ); if( ! obj ) { return false; } var is_valid_mail = ( /^[A-Za-z0-9\-\_\.]{2,50}@\w+\.?[a-z0-9\-\_]{1,30}\.[a-z]{2,4}$/.test( obj.value ) ) ? true : false; return is_valid_mail; } function subscribe( unsubscribe_action ) { var the_form = $('subscribe_form'); var elements = Form.getElements(the_form); for(var i=0; i'; str += ''; str += '
'; str += ' '; //str += ' \"'+'; str += '
'; str += ''; myWin.document.write( str ); } /* function hasEnabledFlashPlugin() { var has_flash = false; for (i=0; i < navigator.plugins.length; i++) { if (navigator.plugins[i].name.indexOf("Shockwave Flash") != -1) { has_flash = true; } } return has_flash; } function showFlash( t_name, t_width, t_height, t_params ) { if( hasEnabledFlashPlugin ) { output_str = ''; output_str += ''; output_str += ''; output_str += ''; output_str += ''; output_str += ''; output_str += ''; } else { output_str = 'No ShockWave Flash Plugin Installed'; } document.write( '\n\t' + '
' + output_str + '
' + '\n' ); } */ function showLocationForPrint() { document.write( '
Источник:<\/span> ' + document.location + '<\/span>'); }