function typewriter()
{
    news = document.getElementById('flash_news');
    if(cmpt < text.length)
	{
         current = news.innerHTML.substring(0, news.innerHTML.length -1);
         current += text.charAt(cmpt)+"_";
         news.innerHTML = current;
    }
	else
	{
		news.innerHTML = news.innerHTML.substring(0, news.innerHTML.length -1);
		return;
	}
    cmpt++;
    setTimeout("typewriter()",100);
}

/***********************************************
* Email Validation script- © Dynamic Drive (www.dynamicdrive.com) / modifications by GweNa (http://www.twix-compote.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

function checkmail(e, e2) //e2 added by Gwena
{	
	if(e.value != e2.value) // added by Gwena
	{
		alert("Email addresses don't match.");
		e2.select();
		return false;
	}
	var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i
	var returnval=emailfilter.test(e.value);
	if (returnval==false)
	{
		alert("Invalid email address.")
		e.select();
		return false; // added by Gwena
	}
	
	return returnval;
}
					