
/* -----------------------------------------------------------------------

   RJO.com e-mail confirm function

   -----------------------------------------------------------------------
   Christopher Gronbeck
   Sustainable By Design
   christopher@susdesign.com
   11 April 2007
   ----------------------------------------------------------------------- */


	/////////////////////////////////////////////////////////
	//
	//  documentation
	//
	/////////////////////////////////////////////////////////
	
		/*
		
			PURPOSE
		
			This JavaScript function is used to invoke a browser alert when a mailto: link
			is clicked.  The alert box has OK and Cancel buttons...clicking OK allows the
			e-mail message to be created;  clicking Cancel takes you back to the web page
			without sending e-mail.
			
			IMPLEMENTATION
			
			Two things are required for this function to work:
			
				-----------------------
				Include JavaScript File
				-----------------------
				
				The <head> portion of the document with the mailto: link must include this
				file.  This can be accomplished by adding the following <script> line:
				
					<head>
					
						(...other head code...)
					
						<script language="JavaScript" src="e-mail-confirm.js"></script>
						
					</head>
					
				This can be done in each individual file, or, if you're using Dreamweaver 
				templates, you can probably just change each template.
				
				Note that the above link to this file assumes that this file is located in
				the same directory as the file with the mailto: link...if this isn't the case,
				the above link needs to correctly specify the location of this file.
				
				-------------------
				Modify Mailto: Link
				-------------------
				
				The <a> tag containing the mailto: link needs to call the confirm function.  This entails
				adding the following event handler to each <a> mailto: tag:
				
					onClick="return EmailConfirm();"
				
				For instance:
				
					BEFORE:  <a href="mailto:info@rjo.com">click me</a>

					 AFTER:  <a href="mailto:info@rjo.com" onClick="return EmailConfirm();">click me</a>
					 
			TEST DOCUMENT
			
			The following document is an example of the e-mail confirm function:
			
				http://rjo.com/e-mail-confirm-test.html
			
			TECHNICAL SUPPORT
			
			Please contact Christopher Gronbeck (christopher@susdesign.com, 206-925-9290) with questions.
		
		*/
	
	
	/////////////////////////////////////////////////////////
	//
	//  FUNCTION:  EmailConfirm
	//
	/////////////////////////////////////////////////////////
	
		function EmailConfirm () {
		
			var alertText = "Unsolicted e-mails and information sent to Rogers Joseph O'Donnell will not be considered confidential, may be disclosed to others, may not receive a response, and do not create an attorney-client relationship with Rogers Joseph O'Donnell.  If you are not already a client of Rogers Joseph O'Donnell, do not include any confidential information in the e-mail.  Also, please note that our attorneys do not seek to practice law in any jurisdiction in which they are not properly authorized to do so.";
	
			return confirm (alertText);
		}
