function OpenPopupWindow(source, windowName, opts, isContainer)
{
	var ua          = navigator.userAgent.toLowerCase();
	var url         = '';
	var name        = '';
	var options     = '';
		
	//
	// There are two types of sources: containers (i.e. <a> tags with an href) or
	// generic urls. If we have a container, we get its href, otherwise we just
	// use the url passed to us.
	//
	if(isContainer == false)
	{
		url = source;
	} else {
		url = source.getAttribute('href');	
	}
	
	//
	// Did the user pass a name for the window? If so, use it.
	//
	if(windowName != '')
	{
		name = windowName;
	}
	
	//
	// Netscape Navigator and other Mozilla-based browsers use a different
	// syntax to specify the left,top coords of the window.
	//
	// Currently disabled and under review.
	//
	//if(ua.indexOf('msie') != -1)
	//{
	//	options = 'left=0,top=0';
	//} else {
	//	options = 'screenX=0,screenY=0';	
	//}
	
	//
	// Add any user-defined options that may have been specified.
	//
	if(opts != '')
	{		
		//
		// Add the other user-defined options.
		//
		if(options != '')
		{
			options += (',' + opts);
		} else {
			options = opts;
		}
	}
		
	//
	// Open the window with all applicable options.
	//
	var popup = window.open(url,name,options);
	
	//if(windowName == '')
	//{
	//	if(options != '')
	//	{
	//		var popup = window.open(url,'',options);
	//	} else {
	//		var popup = window.open(url);
	//	}
	//} else {
	//	if(options != '')
	//	{
	//		var popup = window.open(url,windowName,options);
	//	} else {
	//		var popup = window.open(url,windowName);
	//	}
	//}
	
	//
	// A bug in Opera returns early if the window is focused, so don't
	// focus if Opera is the browser.
	//
	//if(popup && (ua.indexOf('opera') == -1))
	//{
	//	window.focus();
	//}
	
	//
	// Return our result. The return value is false if the window
	// was created, true otherwise. Returning false cancels the
	// link in the calling window and allows the url to be shown
	// in the popup window.
	//
	if(popup)
	{
		return false;
	} else {
		return true;
	}
}

function ShowAnswer(answerId, buttonId)
{
	var faqAnswer      = document.getElementById(answerId);
	var elementClicked = document.getElementById(buttonId);
	
	if(elementClicked.value == '+')
	{
		elementClicked.src   = 'images/DownTriangle.gif';
		elementClicked.value = '-';
	} else {
		elementClicked.src   = 'images/UpTriangle.gif';	
		elementClicked.value = '+';
	}

	if(faqAnswer.style.display == 'none')
	{
		faqAnswer.style.display = '';
	} else {
		faqAnswer.style.display = 'none';
	}
}

function DoPrecache()
{
	var imgArray = new Array();

	imgArray["down"]     = new image(20,19);
	imgArray["down"].src = "images/DownTriangle.jpg";
	
	imgArray["up"]       = new Image(20,19);
	imgArray["up"].src   = "images/UpTriangle.jpg";
}

function ResizeWindow(width, height)
{
	var w = width;
	var h = height;
	
	if(w == 0)
	{
	   w = 800;
	}
	
	if(h == 0)
	{
	   h = 600;
	}
	
	window.resize(w,h);
}