IE4u=((document.all)&&(parseInt(navigator.appVersion)>=4))? true : false;

function T(el)
{ 
	if (IE4u)
	{
		ele=eval('E'+el);
		if(ele.style.display != "block"){ele.style.display="block";}
		else{ele.style.display = "none";}
	}
}

function nw(oFile,wWidth,wHeight)
{
	var cWidth=window.screen.width;
	var cHeight=window.screen.height;
	if(cHeight && cWidth){
		var leftOffset=Math.ceil((cWidth-wWidth)/2);
		var topOffset=Math.ceil((cHeight-wHeight)/2);
		var a=window.open(oFile, "nw", 'width='+wWidth+',height='+wHeight+',top='+topOffset+',left=' + leftOffset);
		a.focus();
	}
	return false;
}

function ShowPhoto(pid,w,h)
{
	var a=window.open("/photo2.php?id="+pid,"photo","width="+w+",height="+h+",scrollbars=0");
	a.focus();
	return false;
}
