
<!-- Begin

function openBrWindow(myurl, myparams) 
{
	var id = day.getTime();
	eval("page" + id + " = window.open(myurl, '" + id + "', myparams);");
}

function QueryString(FieldName) 
{
	var QueryString = '' 
	var FieldValue = '' 
	var Start = 0 
	var End = 0 
	
	// Grab the querystring 
	QueryString = window.location.search 
	// Convert field name and querystring to lowercase so that 
	// function is not case sensitive. 
	FieldName = FieldName.toLowerCase() 
	QueryString = QueryString.toLowerCase() 
	// Look for field as first item ... 
	Start = QueryString.indexOf(FieldName + '=') 
	
	// If field is not the first ... 
	if(Start!=1) 
	{ 
		// Search appended fields 
		Start = QueryString.indexOf('&' + FieldName + '=') 
		// If field wasn't found at all, return empty string. 
		if(Start==-1)
		{
			return(FieldValue)
		} 
		// Setup start position after equal sign 
		Start += FieldName.length + 2 
	} 
	else 
	{ 
		// Setup start position after equal sign 
		Start = FieldName.length + 2 
	} 
	
	// Search for beginning of next field 
	
	
	//End = QueryString.indexOf('&', Start + 1) 
	// change by karolt
	End = QueryString.indexOf('&', Start) 
	
	// if another field was not defined, set end to length of querystring 
	if(End==-1)
	{
		End=QueryString.length
	} 
	
	// Parse the field value 
	FieldValue = window.location.search.substring(Start, End) 
	
	// unescape special characters within the value (such as %20 = space character) 
	FieldValue = unescape(FieldValue) 
	
	// Return the results 
	return(FieldValue) 
} 

var selectedDiv = "";

function showDiv(name)
{
  if(selectedDiv != "")
  {
    hideDiv(selectedDiv);
  }
  document.getElementById(name).style.display = 'block';
  selectedDiv = name;
}

function hideDiv(name)
{
  document.getElementById(name).style.display = 'none';
}

function showPanel( theSrc, thePanel )
{
var srcTop =findAbsTop( theSrc );
var srcLeft = findAbsLeft( theSrc );
thePanel.style.top = srcTop-130;
thePanel.style.left = srcLeft-100;
thePanel.style.display = 'block';
}

function hidePanel( thePanel )
{
thePanel.style.display = 'none';
}

/**
* Utility functions for determining menu positions
*/
function findAbsTop( o )
{
var objTop=0, tempObj=o;
while(tempObj.offsetParent)
{
objTop+=tempObj.offsetTop;
tempObj=tempObj.offsetParent
}
return objTop;
}

function findAbsLeft( o )
{
var objLeft=0, tempObj=o;
while(tempObj.offsetParent)
{
objLeft+=tempObj.offsetLeft;
tempObj=tempObj.offsetParent
}
return objLeft;
}


//  End -->

