function joemailfv(email0, joemail0, emailsema)
{
	//emailsema = /\w+\@\w+\.\w+/g;
	
	if(emailsema+"" == "undefined")
	{
		emailsema = /\w+\@\w+\.\w+/g;
	}
	//alert(email0+"\n"+joemail0)
	if(email0.value.match(emailsema) != null)
	{
		joemail0.style.backgroundColor = "#008000";
		joemail0.value = "ok";
	}
	else
	{
		if(email0.value == "")
		{
			joemail0.style.backgroundColor = "#808000";
			joemail0.value = "";
		}
		else
		{
			joemail0.style.backgroundColor = "#800000";
			joemail0.value = "X";
		}
	}
}

