//<!--
function CtrlEmail(mail)
{
	var strmail = new String(mail);
	posat = strmail.indexOf("@");
	if(posat != 0)
	{
		posp  = strmail.indexOf(".",posat);
		lung  = strmail.length;
	}
	else
	{
		posp  = -1;
		lung  = -1;
	}

	if(posat > 0 && posp > 0 && posp < lung) 
		alert('thank you for subscribing to the news letter');
	else
		alert('"' + mail + '" email address error');	
}
//-->