function ParseQueryString(key) 
{	
	var queryString, queryArray, item, i;
	var returnValue = "";
	
	queryString = window.location.search.substring(1);
	queryArray = queryString.split("&");
	if(queryArray)
	{
		for (i=0; i < queryArray.length; i++)
		{
			item = queryArray[i].split("=");
			if (item && item[0].toLowerCase() == key.toLowerCase()) 
			{
				returnValue = item[1].toLowerCase();
				break;
			}
		}
	}
	return returnValue;
}

function popup(url, target, features) {
  if (typeof features == 'undefined') {
    features = 'location=1, status=0, menubar=0, scrollbars=1, resizable=1, width=780, height=700';
  }
  if (typeof target == 'undefined') {
    target = 'legal';
  }
  window.open(url, target, features).focus();
  //return theWindow;
}

function popup2(url, target, features) {
  alert(frames['flashframe'].document.getElementById('popper').onclick());
}
