rem: if (button.form.elements['mform_showadvanced_last'].value == '0') { 
add: if (button.form.elements['mform_showadvanced_last'].value == '0' ||  button.form.elements['mform_showadvanced_last'].value == '' ) { 
context: function showAdvancedOnClick(button, hidetext, showtext){    var toSet=findChildNodes(button.form, null, 'advanced');    var buttontext = '';    if (button.form.elements['mform_showadvanced_last'].value == '0') {        elementShowAdvanced(toSet, true);        buttontext = hidetext;        button.form.elements['mform_showadvanced_last'].value = '1';    } else {        elementShowAdvanced(toSet, false);        buttontext = showtext;        button.form.elements['mform_showadvanced_last'].value = '0';    }    var formelements = button.form.elements;    for (var i in formelements){        if (formelements[i].name=='mform_showadvanced'){            formelements[i].value = buttontext;        }    }    //never submit the form if js is enabled.    return false;}
meta: 2641	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2641/74d15d359d09fb7ce902d32b13b7512f9aa3e148/javascript-static.js/buggy/lib/javascript-static.js