function showperson(divname)
{
	var objDiv = document.getElementById(divname);
	var allDivs = document.all ?   document.all.tags('DIV') :     document.getElementsByTagName ?    document.getElementsByTagName('DIV') : new Array();
	var strDivName ='';
	 for (var r = 0; r < allDivs.length; r++)
	 {
		strDivName = allDivs[r].id;
		if(matchMe('person_', strDivName))
		{			
			if (strDivName != divname )
			{
				document.getElementById(strDivName).style.visibility ='hidden';
				document.getElementById(strDivName).style.display ='none';
			}
		}
	 }
	if (objDiv)
	{
			objDiv.style.visibility ='visible';
			objDiv.style.display ='block';
	}
}
function matchMe(re, str) {
	var pattern = new RegExp (re,'ig');
	return str.match(pattern);
}

function OpenPopup(url,width,height, left, top,debug) 
{
	var curWinLeft = 0;
	var curWinTop = 0;
	var resizable = 'no';
	if(width==null||height==null)
	{
		width = 600;
		height = 400;
		resizable = 'yes';
	}
	curWinLeft = screen.availWidth/2-(width/2);
	curWinTop = screen.availHeight/2-(height/2);
	if (left >= 0 && top >=0 )
	{
	
		if (navigator.appName=="Microsoft Internet Explorer")
		{
			curWinLeft =  window.screenLeft;
			curWinTop =  window.screenTop;
		} else {
			curWinLeft =    window.screenX;
			curWinTop = window.screenY;
		}		
		curWinLeft += left;
		curWinTop += top;
	}
	
	if(debug)
	{
		var popup = window.open(url,'New_Window','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height + ', left=' + curWinLeft+',top=' + curWinTop);
	}
	else
	{
		var popup = window.open(url,'New_Window','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable='+resizable+',copyhistory=no,width='+width+',height='+height + ', left=' + curWinLeft+',top=' + curWinTop);
	} 
}