	
	// Quote Function ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	
	function quoteStyle( quoteString )
	{
		// Variables
		this.quote = this.originalQuote = quoteString;
		this.regex = /\(\d\*\)\w*/g;
		
		// Methods
		this.format = _formatQuote;
		
	}
	
	function _formatQuote()
	{
		var quoteArray = this.quote.match( this.regex );
		
		if( quoteArray.length > 0 )
		{
			for( var formatIndex = 0; formatIndex < quoteArray.length; formatIndex++ )
			{
				var quoteReplacement = '';
				var quote = quoteArray[ formatIndex ];
				textStyle = quote.substr( 1, 1 ); 
				content = quote.substr( 4 );
				 
				switch( textStyle )
				{
					case '1':
						quoteReplacement = '<span class="quote1">' + content + '</span>';
						break;
					
					case '2':
						quoteReplacement = '<span class="quote2">' + content + '</span>';
						break;
						
					case '3':
						quoteReplacement = '<span class="quote3">' + content + '</span>';
						break;
						
					case '4':
						quoteReplacement = '<span class="quote4">' + content + '</span>';
						break;
				}
				
				this.quote = this.quote.replace( quote, quoteReplacement );
			}
		}
		else
		{
			this.quote = this.originalQuote;
		}		
		
		return this.quote;
	}
	
	///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	
	function forgotPassword() {
		var emailHdl = document.getElementById( '__m__email' );
		if( emailHdl.value == '' || emailHdl.value.length < 6 )
		{
			window.alert( 'Please Enter a Valid Email Address' );
			emailHdl.style.backgroundColor = '#FFE891';
			emailHdl.focus();
		}
		else
		{
			// if email is valid send to script
			linkUrl = "/cgi-bin/memberScript/common/retrievePassword.cgi?__memberTypeName__=Consultant&__m__email=";
			finalPath = linkUrl + emailHdl.value;
			window.location = finalPath;
		}
	}