//////////////////////////////////////////////////////////////////
// Sets "hilight" color for when a button is brought into focus //
//////////////////////////////////////////////////////////////////

function btnFocus(obj)
{	
	obj.style.backgroundColor='#AA2B00'; 
	obj.style.color='white';
}

///////////////////////////////////////////////////////////////////////////
// Sets "hilight return" color for when a button is brought out of focus //
///////////////////////////////////////////////////////////////////////////

function btnBlur(obj)
{
	
	obj.style.backgroundColor=''; 
	obj.style.color='';	
}

///////////////////////////////////////////////////////////
// Sets "hilight" color for when a button is moused-over //
///////////////////////////////////////////////////////////

function btnOver(obj)
{	
	obj.style.backgroundColor='#AA2B00'; 
	obj.style.color='white';
	obj.style.cursor = "pointer";
}

/////////////////////////////////////////////////////////////////
// Sets "hilight return" color for when a button is moused-out //
/////////////////////////////////////////////////////////////////

function btnOut(obj)
{	
	obj.style.backgroundColor=''; 
	obj.style.color='';
	obj.style.cursor = "";
}

/////////////////////////////
// Submits the page's form //
/////////////////////////////

function submit()
{
	document.getElementById("frmPNR").submit();
}

//////////////////////////////////////////////////////
// Returns the specified value from the querystring //
//////////////////////////////////////////////////////

function GetFromQueryString(obj)
{
	var querystr = window.location.search;
	querystr = querystr.substring(1);

	var returnvalue = "";

	if(querystr != "")
	{
		var querystrvalues = querystr.split("%26");

		for(i=0; i<querystrvalues.length; i++)
		{
			tempvalues = querystrvalues[i].split("=");
			if(tempvalues[0] == obj)
				returnvalue = tempvalues[1];
		}
	}

	return returnvalue;
}
