function openView(s) {
	document.cookie="wopen=1;domain=hottours.spb.ru;path=/";
	var width = 800;
	var height = 700;
	var left = screen.availWidth/2 - width/2;
	var top = screen.availHeight/2 - height/2;
	activeModalWin = window.open("/w"+s+".html", "", "width="+width+"px,height="+height+",left="+left+",top="+top+",scrollbars=yes");
	window.onfocus = function(){if (activeModalWin.closed == false){activeModalWin.focus();};};
	return false;
}

function getXmlHttp(){
  var xmlhttp;
  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (e) {
    try {
      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (E) {
      xmlhttp = false;
    }
  }
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }
  return xmlhttp;
}
function page(a,b,c,d) {
	var req = getXmlHttp();  
    req.onreadystatechange = function() {  
        if (req.readyState == 4) {
			if (req.status == 200) {
				document.getElementById('div_list').className='td_list';
				document.getElementById('div_list').innerHTML = req.responseText;
			}
        }
    }
    req.open('GET', 'lst.php?page='+a+'&c='+b+'&t='+c+'&f='+d, true);
	document.getElementById('div_list').innerHTML = '<center><img src=/pic/pol.gif align=center alt=\'Идет загрузка\'></center>';
	document.getElementById('div_list').className='div_list';
    req.send();
}
function vc(a,b) {
	var req = getXmlHttp();  
    req.onreadystatechange = function() {  
        if (req.readyState == 4) {
			if (req.status == 200) {
				document.getElementById('td_vc').className='td_list';
				document.getElementById('td_vc').innerHTML = req.responseText;
			}
        }
    }
    req.open('GET', 'vc.php?type='+a+'&cid='+b, true);
    req.send();
}

