/**************************************************************************************************
 $Revision: 5 $
 
 DESC:		JavaScript mailto function.
 
 **************************************************************************************************
 NOTICE OF COPYRIGHT AND OWNERSHIP:

 COPYRIGHT: Copyright (c) 2007-2009, A lot of Ltd. All Rights Reserved.
 
 Any use, copy, publication, distribution, display, modification, or transmission of this file in 
 whole or in part in any form or by any means without the prior express written permission of 
 A lot of Ltd. is strictly prohibited.
 
 Except when expressly provided by A lot of Ltd. in writing, possession of this 
 file shall not be construed to confer any license or rights under any of A lot of Ltd. 
 intellectual property rights, whether by estoppel, implication, or otherwise.
 
 ALL COPIES OF THIS PROGRAM MUST DISPLAY THIS NOTICE OF COPYRIGHT AND OWNERSHIP IN FULL.
 **************************************************************************************************
 $NoKeywords: $
 **************************************************************************************************/

function JSMail(Name)
{
	var Domain = window.location.hostname;

	var Pos = Domain.indexOf("www.");
	if (Pos >= 0)
	{
		var Domain = Domain.slice(Pos + 4);
	}

	var Pos = Domain.indexOf("corporate.");
	if (Pos >= 0)
	{
		var Domain = Domain.slice(Pos + 10);
	}

	var Pos = Domain.indexOf("corporates.");
	if (Pos >= 0)
	{
		var Domain = Domain.slice(Pos + 11);
	}

	var Location = 'mailto:'+Name+'@'+Domain;
	window.location.href = Location;
}