function winSize()
{
	var x,y;
	if (self.innerHeight) // all except Explorer
	{
		x = self.innerWidth;
		y = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
	{
		x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
		x = document.body.clientWidth;
		y = document.body.clientHeight;
	}
	
	var w=new Array(x,y);
	return w;
}

function opendetails(loc)
{
	var leftPos=100;
	var w=screen.availWidth-leftPos;
	var h=parseInt(screen.availHeight*.75);
	var poppedWindow;

	var windowProp="width="+w+",height="+h+",scrollbars=1,resizable=1,top=0,"+
	"left="+leftPos+",toolbar=1,menubar=1";
	
	if(!poppedWindow || poppedWindow.closed)
	{
		poppedWindow=window.open(loc,'infowin',windowProp);

		if(poppedWindow)
		{
			poppedWindow.focus();	
		}
		else
		{
			location.href=loc;
		}
	}
	else
	{
		poppedWindow.location.href=loc;
		poppedWindow.focus();	
	}
}

function changeHref(thelink)
{
	var loc=thelink.href;
	//thelink.href="#";
	
	opendetails(loc);
}
