function showImage(name,width,height) { var newWindowFeatures="dependent=1,Height="+height+",Width="+width+",scrollbars=yes,status=no,resizable=yes"; var board=window.open("window.html",1283733997,newWindowFeatures); board.document.open(); board.document.write(""); board.document.write("Картинка"); board.document.write("

© www.beton4you.ru
"); board.document.write(""); board.document.close(); } function showVideo(name) { var newWindowFeatures="dependent=1,Height=360,Width=520,scrollbars=yes,status=no,resizable=yes"; var board=window.open("/video.php?name="+name,1283733997,newWindowFeatures); } function show_menu(id) { document.getElementById(id).style.display='block'; } function check() { if (document.getElementById('cont').value=='') { alert("Укажите контакную информацию");} else {document.getElementById('zapr').submit();} } function IsValidEmail(email){ if (email=="") {return true;} var r, re; //Declare variables. re = "[.a-z0-9_-]+@[.a-z0-9_-]+"; r = email.match(re); //Attempt match on search string. if(r==null) {return false;} else {return true;} } function check_feed() { var k=0; var msg=''; if (document.getElementById('name').value=='') { msg+='Укажите Ваше имя\r\n'; k+=1;} if (document.getElementById('email').value=='') { msg+='Укажите Ваш e-mail\r\n'; k+=1;} if (!IsValidEmail(document.getElementById('email').value)) { msg+='Укажите Ваш e-mail\r\n'; k+=1;} if (document.getElementById('tel').value=='') { msg+='Укажите Ваш телефон\r\n'; k+=1;} if (document.getElementById('text').value=='') { msg+='Задайте вопрос\r\n'; k+=1;} if(k==0) { document.getElementById('feed_form').submit();} else { alert(msg); } } function show(id) { if(document.getElementById('sloy_'+id)) { var sloy=document.getElementById('sloy_'+id).style; if(sloy.display=='none') { sloy.display='block'; } else { sloy.display='none'; } } else { } } function hl(id1) { if(document.getElementById('bb_'+id1)) { document.getElementById('bb_'+id1).style.background='#CDE0E7'; } else {} } function hl2(id2) { if(document.getElementById('bc_'+id2)) { document.getElementById('bc_'+id2).style.color='#BD1111'; document.getElementById('bc_'+id2).style.textDecoration='Underline'; } }