
	// JavaScript E-Mail Address Include File
	// Version 1
	// April 1, 2008
	
<!-- Hide script from older browsers

	// emailRedir takes an e-mail address and domain and combines it into a 'mailto'
	// hyperlink.
	
	// Parameters / Usage:
	//	emailName: REQUIRED. The e-mail address name. For example, in 'name@domain.com',
	//			   the emailName field would contain 'name'.
	//	uDomain: The address domain. In the previous example, that would be 'domain.com'.
	//			 DO NOT INCLUDE THE '@' SYMBOL IN THIS PARAMETER.
	//			 This parameter isn't required. If you do not pass a value, the function
	//			 assumes 'climatictesting.com'.
	//
	// If neither parameter is passed (i.e., no e-mail address is given), the function
	// will not do anything.
	//
	// See Contacts_page.htm for specific usage examples.
	
	function emailRedir(emailName, uDomain)
	{
		var mailto = 'mailto:';
		var domain;
		
		// Get the domain, if it was passed
		if (!uDomain)
		{
			domain = '@climatictesting.com';
		}
		else
		{
			domain = '@' + uDomain;
		}
		
		// Put together the email address and do redirect
		if (!emailName)
		{
			window.location.href = '#';
		}
		else
		{
			window.location.href = (mailto + emailName + domain);
		}
	}

// end hiding script -->