function fcs_fld_update(o, strFieldName, strTableName, strIDFieldName, checkresult) {
    $('#fcs_idMessage2').append('changed '+o.id+":="+o.value+'('+checkresult+')');
    if(checkresult) {
        var x=(
'?type=upd'+
'&sid='+$('input#sid').get(0).value+
'&id='+$('#fcs_objectid').get(0).value+
'&ot='+'sym_project'+
'&oif='+'projectID'+
'&oi='+o.id+
'&ov='+o.value
        );  
//        $('#fcs_idMessage2').append('posting...'+x);
        $('#fcs_idMessage2').append('posting...');
        $.post('/web/bla/fcs_field_srv.asp', {
            type: 'upd',
                 sid: $('input#sid').get(0).value,
                 id:  $('#fcs_objectid').get(0).value,
                 ot:   strTableName,
                 oif:  strIDFieldName,
                 oi:   strFieldName,
                 ov:   o.value
            },
            sym_prj_update_complete );       
    }
    return checkresult;
}

function fcs_fld_update_v(newValue, strFieldName, strTableName, strIDFieldName, checkresult) {
    $('#fcs_idMessage2').append('changed '+strFieldName+":="+newValue+'('+checkresult+')');
    if(checkresult) {
        var x=(
'?type=upd'+
'&sid='+$('input#sid').get(0).value+
'&id='+$('#fcs_objectid').get(0).value+
'&ot='+'sym_project'+
'&oif='+'projectID'+
'&oi='+strFieldName+
'&ov='+newValue
        );  
//        $('#fcs_idMessage2').append('posting...'+x);
        $('#fcs_idMessage2').append('posting...');
        $.post('/web/bla/fcs_field_srv.asp', {
            type: 'upd',
                 sid: $('input#sid').get(0).value,
                 id:  $('#fcs_objectid').get(0).value,
                 ot:   strTableName,
                 oif:  strIDFieldName,
                 oi:   strFieldName,
                 ov:   newValue
            },
            sym_prj_update_complete );       
    }
    return checkresult;
}

var gcallback=function(x){alert(x)};

function fcs_fld_update_geo(strFieldNameLat, strFieldNameLon, strTableName, strIDFieldName, strIDFieldValue, callback) {
    gcallback=callback;
    $('#fcs_idMessage2').append('fld_update_geo( '+newLat+", "+newLon+ ')' );
	checkresult=true;
    if(checkresult) {
alert('a');
        var x=(
'?type=upd'+
'&sid='+$('input#sid').get(0).value+
'&id='+strIDFieldValue+
'&ot='+strTableName+
'&oif='+strIDFieldName+
'&latf='+strFieldNameLat+
'&lonf='+strFieldNameLon
        );  
alert(x);
        $('#fcs_idMessage2').append('...posting...');
        $.post('/web/bla/fcs_field_srv.asp', {
            type: 'updgeo',
                 lat: $('#'+strFieldNameLat).get(0).value,
                 lon: $('#'+strFieldNameLon).get(0).value,
                 latf: strFieldNameLat,
                 lonf: strFieldNameLon,
                 sid: $('input#sid').get(0).value,
                 ot:   strTableName,
                 oif:  strIDFieldName,
                 id:  strIDFieldValue
            },
            function(r){ $('#fcs_idMessage2').html('result=\n'+r); gcallback(r); } );       
    }
    return checkresult;
}





