/**
 *		setTitle()
 *
 *		Sets the title of the page.
 **/
function setTitle( strTitle )
{
	// Change title
	document.title = strTitle;
}



/**
 *		parseStringToBoolean()
 *
 *		Compares the value of a string, makes it boolean.
 *		NOTE: "1" will return TRUE.
 **/
function parseStringToBoolean( strString )
{
	// Reverse values, check for a ZERO.
	return ( strString.indexOf( "0" ) == -1 ? true : false );
}



/**
 *		getXmlChildElementValue()
 *
 *		Retreives the values of a child element in a XML document.
 *
 *
 *		@param			XML			XML Document
 *		@param			String		Iterative Element
 *		@param			String		Child Element
 *		@return			String		Child value
 **/
function getXmlChildElementValue( XmlDocument, strIterativeElement, strChildElement )
{
	// Placeholder for value
	var strChildValue = "";
	
	// Find root element
	$( XmlDocument ).find( strIterativeElement ).each(function() 
	{ 	
		// Find child element
		var strValue = $(this).find( strChildElement ).text();
		
		// Trim value
		strValue = jQuery.trim( strValue );
		
		// Set value
		strChildValue = strValue;
	}); 
	
	// Return found value
	return strChildValue;
}