function ff_validemail_repeat(element, message)
{
    var check =
    /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
    if (!check.test(element.value)){
        if (message=='') message = element.name+" is no valid email address.\n";
        ff_validationFocus(element.name);
        return message;
    } // if
	
    try{
	    var repeat = element.name.split("ff_nm_")[1].split("[]")[0];
	
	    if(!ff_getElementByName(repeat + '_repeat')){
	     	if (message=='') message = repeat+" has no repeat email field.\n";
	        ff_validationFocus(element.name);
	        return message;
	    } else {
	        if(ff_getElementByName(repeat + '_repeat').value != element.value){
	           if (message=='') message = element.name+" and " + repeat + "_repeat do not match.\n";
	           ff_validationFocus(repeat + '_repeat');
	           return message;
	        }
	    }
    }catch(e){
        return e.description;
    }

    return '';
} // ff_validemail