function printmail(indmail)
{
	var pos1=indmail.indexOf("[");
	var ind=indmail;
	if(pos1!=-1)
	{
		var pos2=indmail.indexOf("]",pos1);
		/* [*at*] */
		if(pos2!=-1 && pos2==pos1+5 && indmail.charAt(pos1+1)=='*')
		{
			var s=indmail.substr(0,pos1);
			s+='@'+indmail.substr(pos2+1);
		 	if(checkemail(s)) ind=s;
		}
		else ind=indmail;
	}
 	document.write(ind);	
}

function checkemail(str)
{
	if (document.layers||document.getElementById||document.all)
	{
	    if (window.RegExp)
	    {
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		if (filter.test(str))
			return true;
		else return false
	    }
	    else return (str.indexOf("@")!=-1)
	}
	else return (str.indexOf("@")!=-1)
}
