function getPos(o){
	var oPos = new Object();
	oPos.X = 0;
	oPos.Y = 0;
	while(o){
		oPos.X += o.offsetLeft;
		oPos.Y += o.offsetTop;
		o = o.offsetParent;
	}
	return oPos;
}

function getObj(idn){
	return document.getElementById(idn);
}

function displayElem(idn,val){
	getObj(idn).style.display = val;
}

var winPictDetail;
function showPictDetail(val){
	if(winPictDetail){
		winPictDetail.close();
	}
	winPictDetail = window.open('about:blank','pictDetail','width=245,height=185');
	winPictDetail.document.open();
	winPictDetail.document.write('<htm'+'l><bo'+'dy bgcolor="#000000" style="margin: 0px" onClick="self.close();" onBlur="self.close();">'+
									'<table border=0 cellpadding=0 cellspacing=0 width="100%" height="99%"><tr><td width="100%" height="100%" align="center"><img id="imgDetail" src="'+val+'" style="cursor:pointer"></td></tr></table>'+
									'<scr'+'ipt type="text/javascript">function isloaded(){'+
									'if(document.getElementById(\'imgDetail\') && document.getElementById(\'imgDetail\').offsetWidth+30>100){'+
										'window.resizeTo(document.getElementById(\'imgDetail\').offsetWidth+30,document.getElementById(\'imgDetail\').offsetHeight+60);'+
									'}else{'+
										'setTimeout(\'isloaded()\',100);'+
									'}}isloaded();</scr'+'ipt></bod'+'y></htm'+'l>');
	winPictDetail.document.close();
	winPictDetail.focus();
}
