function ff_mySetSelected($name, $value, $field='value')
{
    global $ff_processor;
    foreach($ff_processor->rows as $row) {
        if ($row->name==$name){
			$row->data2 = '';
			foreach($row->selectList as $var){
				if($var->{$field}==$value){
					$var->selected = 1;
				}else{
					$var->selected = 0;
				}
				$row->data2 .= $var->selected.";".$var->label.";".$var->value."\n";
			}
			break;
		}
        unset($row);
    }
}