function Popup( url, width, height, x )
{
	var x = window.open( url, "popup" + x, "width=" + width + ",height=" + height + ",resizable,scrollbars" );
	if( !x.opener )
		x.opener = self;
	return false;
}

function ToggleDisplay( id, img, cook )
{
	var i = document.getElementById( id ).style;
	if( i.display == 'block' || i.display == '' )
	{
		if( img )
			img.src = '/themes/collapsed.gif';
		i.display = 'none';
		if( cook )
			SetCookie( cook, '1', 365 );
	}
	else if( i.display == 'none' )
	{
		if( img )
			img.src = '/themes/expanded.gif';
		i.display = 'block';
		if( cook )
			SetCookie( cook, '0', 365 );
	}
	return false;
}

function SetCookie( n, v, d )
{
	var today = new Date();
	var expire = new Date();
	if( d == null || d == 0 )
		d = 365;
	expire.setTime( today.getTime() + 3600000 * 24 * d );
	document.cookie = n + '=' + escape( v ) + ';expires=' + expire.toGMTString();
	return false;
}

function E(x)
{
	x.className='even';
}

function O(x)
{
	x.className='odd';
}

