	var popWin = null;	
	strQueryString = new Array();
	
	//*********************************************
	// Name: OpenACSWindow()
	// Arthor: Josh T Rojas
	// Date: 09/26/2007
	// Purpose: Open the ACS site in a new window
	//*********************************************	
	function OpenACSWindow(SiteToOpen)
	{	
		//check to see if the window is already opened
		if(!popWin || popWin.closed)
		{		
			var AvailWidth = screen.availWidth-100;
			var AvailHeight = screen.availHeight-150;
			var WindowSize = "status=1, menubar=1, toolbar=1, resizable=1, scrollbars=1, width=" + AvailWidth + ", height=" + AvailHeight + ", left=50, top=50";
			popWin = window.open(SiteToOpen,"",WindowSize,true);
			//if (popWin) {
			//  if (window.focus){popWin.focus()};
			//} else {
			//  alert("Popup Blocker ON");
			//}
		} else {
			//if opened already, bring it to the foreground			
			popWin.focus();
		}
		return false;
	}

	function Redirect(Site)
	{
	  try{
	  	top.location.href = Site;
		return true;
	  }catch(err){
			txt="There was an error on this page.\n\n";
			txt+="Error Description: " + err.description + "\n\n";
			txt+="Click Ok to continute.\n\n";
			alert(txt);
			return false;
	  }
	}
	
	function RequestQuery()
	{
		var query = window.location.search.substring(1);
		var parms = query.split('&');
		for(var i=0; i<parms.length; i++)
		{
			var pos = parms[i].indexOf('=');
			if(pos > 0)
			{
				var key = parms[i].substring(0,pos);
				var val = parms[i].substring(pos+1);
				strQueryString[key] = val;
			}
		}
	}


