function reshowdt(id)
{
	for(var i=0; i < id.length; i++){
		//alert('section id='+id[i]);
		if (document.getElementById("dv"+id[i]).style.display=="none")
			document.getElementById("dv"+id[i]).style.display = "";
		else
			document.getElementById("dv"+id[i]).style.display = "none";
	}
}
function opendt(id)
{
	window.open("details.php?id="+id, "details", "left=200,top=150,width=500,height=300,scrollbars=yes");
}

// Открывает окно с возможностью изменения размеров
function OpenWindowResizable(url, name, width, height) {
	window.open(url, name, 'width=' + width + ', height=' + height + ', toolbar=no, status=no, resizable=yes, scrollbars=yes, left=100, top=' + ((screen.height - height)/2));
//	window.open(url, name, 'width=' + width + ', height=' + height + ', scrollbars=1, resizable=1, left=' + ((screen.width - width)/2) + ', top=' + ((screen.height - height)/2));
}

// Изменяет размер по размеру контента
function imgResize(){
 w = document.getElementById("getWidth").width;
 h = document.getElementById("imgHght").height;
 h = h + 80;
// alert(top.outerHeight);
 if (h>500)
 	h = 500;
 scroll_sz = 33;
 if (parseInt(navigator.appVersion)>3) {
   if (navigator.appName=="Netscape") {
    top.outerWidth=w+scroll_sz;
    top.outerHeight=h;
   }
   else 
   {
    top.resizeTo(w+scroll_sz,h);
   }
 }
//	alert(document.getElementById("getSz").width);
}
