add: lng = '' lat = '' } else { 
context: function report_post(f) {    if (state!='reporting') return; /* Not in reporting mode, shouldn't be able to submit */    pass = true//    if (!add_marker) {//        pass = false//        var str = '<b style="color: #ff0000">Please select somewhere</b>'//        document.getElementById('show_where').innerHTML = str//        document.getElementById('show_where2').innerHTML = str//    } else {        lng = add_marker.point.x        lat = add_marker.point.y//    }    name = encodeURIComponent(f.name.value)    email = encodeURIComponent(f.email.value)    report_id = document.getElementById('report_id').value    zoom = map.getZoomLevel()    if (!name) { pass = false; field_error(f.name, 'nameerror', 'Please give your name') } else field_unerror(f.name, 'nameerror')    if (!email) { pass = false; field_error(f.email, 'emailerror', 'Please give your email address') } else field_unerror(f.email, 'emailerror')    if (!pass) return;    var d = document.getElementById('report_submit')    d.value = 'Submitting...'; d.disabled = true    var r = GXmlHttp.create();    var url = "/cgi-bin/submit-correction.cgi"    var post_data = "name="+name+";email="+email+";id="+report_id+";lng="+lng+";lat="+lat+";zoom="+zoom    r.open("POST", url, true);    r.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")    r.onreadystatechange = function(){        if (r.readyState == 4) {            x = r.responseXML            var d = document.getElementById('report_submit')            d.value = 'Submit'; d.disabled = false            errors = x.getElementsByTagName('error')            if (errors.length) {                form = document.getElementById('f2')                for (e=0; e<errors.length; e++) {                    field = errors[e].getAttribute('field')                    error = GXml.value(errors[e])                    var errspan = ''                    if (field=='email') errspan = 'emailerror2'                    field_error(form[field], errspan, error)                }                return;            }            state = 'reportsuccess'            document.getElementById('incorrect_entry').style.display='none'            document.getElementById('report_success').style.display='block'            map.removeOverlay(add_marker)            add_marker = 0        }    }    r.send(post_data);}
meta: 4679	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4679/e8e473e28658da9d9dcefa4b4ef3e61db39f326f/pop.js/clean/docs/js/pop.js