function showNews(id) { var t = document.getElementById('news' + id); if (t.style.display == 'none') {t.style.display = '';} else {t.style.display = 'none';} } function _mapShow(id) { document.getElementById('ms' + checked).style.display = 'none'; document.getElementById('open' + checked).style.display = 'none'; document.getElementById('to_open' + checked).style.display = ''; checked = id; document.getElementById('ms' + checked).style.display = ''; document.getElementById('open' + checked).style.display = ''; document.getElementById('to_open' + checked).style.display = 'none'; } function _reloadPic(obj, s, w, h, s1, w1, h1){ if (picture) {picture.parentNode.className = 'view_default';} picture = obj; if (picture) {picture.parentNode.className = 'view_this_pic';} //document.getElementById('chPic').src = s; //document.getElementById('chPic').style.width = w +"px"; //document.getElementById('chPic').style.height = h +"px"; var text = '
'; document.getElementById('chPicDiv').innerHTML = text; } function _toGo() { var getVar = document.getElementById('city').selectedIndex; if (document.getElementById('city')[getVar].value=="none") {alert('Укажите город');} else {location.href = document.getElementById('city')[getVar].value;} } function changeCity(rul) {setOptions(rul);} function setOptions(rul) { var strDB = optiondb[rul]; var option = document.getElementById('city'); while (option.childNodes.length > 0) option.removeChild(option.childNodes[0]); var node = document.createElement('option'); node.value = "none"; node.appendChild(document.createTextNode("выберите...")); option.appendChild(node); for (var i = 0; i < strDB.length; i++) { var db = strDB; var node = document.createElement('option'); node.value = db[i].value; node.appendChild(document.createTextNode(db[i].text)); option.appendChild(node); } } function maxpic(img, w, h){ var win = window.open('','_blank',"location=0, toolbar=0, directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width="+w+",height="+h); win.document.open("text/html"); with (win.document) { write("