function ff_validate_prevpage(element, action)
{
    if(typeof bfUseErrorAlerts != 'undefined'){
     JQuery(".bfErrorMessage").html('');
     JQuery(".bfErrorMessage").css("display","none");
    }

    error = ff_validation(ff_currentpage);
    if (error != '') {
       if(typeof bfUseErrorAlerts == 'undefined'){
           alert(error);
        } else {
           bfShowErrors(error);
        }
        ff_validationFocus('');
    } else{
    	if(ff_currentpage > 1){
	 ff_switchpage(ff_currentpage-1);
	 self.scrollTo(0,0);
        }
    }
} // ff_validate_prevpage