function showmobmenu() { if (document.getElementById('mobmenu1').style.display == 'block'){ document.getElementById('mobmenu1').style.display = 'none';} else{document.getElementById('mobmenu1').style.display = 'block';} } function del_message(URL) { if (confirm('Вы уверены?')) {window.location.href=URL;} else { } } function add_tags(tag){ document.form1.source.value= document.form1.source.value+' '+ tag +' ' } function msg_length(){ document.msgform.simbols_left.value=200-document.msgform.msg_txt.value.length } function check_question(){ valid = true; if (document.questionform.clientname.value.length<1){ valid = false; alert('Введите Ваше имя') /* $("#name_tel_input").css({'visibility' : 'visible'}) .animate({backgroundColor: "red"}, "slow") .animate({top: "50%"}, "slow") return false; */ } else{ if (document.questionform.contacts.value.length<1){alert ('Введите Ваш телефон или адрес электронной почты'); valid = false; } } return valid; } var popUpWin=0; function popUpWindow(URLStr, left, top, width, height) { if(popUpWin) { if(!popUpWin.closed) popUpWin.close(); } popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+''); }