rem: if(root.attributes['act'].nodeValue == 'relation_new') 
add: if(root.getAttribute('act') == 'relation_new') 
context: function PrintXML(){  var root = xmldoc.getElementsByTagName('root').item(0);  //root    if(root==null) // if error  {    myWin=window.open('','Report','width=400, height=250, resizable=1, scrollbars=1, status=1');    var tmp = myWin.document;    tmp.write(textdoc);    tmp.close();  }  else  {    //alert(xmldoc.getElementsByTagName('root')[0]);    //alert(root.attributes[0].nodeValue);    if(root.attributes['act'].nodeValue == 'save_pos')      alert(root.attributes['return'].nodeValue);    if(root.attributes['act'].nodeValue == 'relation_upd')    {      alert(root.attributes['return'].nodeValue);      if(root.attributes['b'].nodeValue=='1')      {        contr.splice(root.attributes['K'].nodeValue, 1);        Re_load();      }    }    if(root.attributes['act'].nodeValue == 'relation_new')    {      alert(root.attributes['return'].nodeValue);      if(root.attributes['b'].nodeValue=='1')      {        var i  = contr.length;        var t1 = root.attributes['DB1'].nodeValue + '.' + root.attributes['T1'].nodeValue;        var f1 = root.attributes['F1'].nodeValue;        var t2 = root.attributes['DB2'].nodeValue + '.' + root.attributes['T2'].nodeValue;        var f2 = root.attributes['F2'].nodeValue;        contr[i] = new Array();        contr[i][''] = new Array();         contr[i][''][t2] = new Array();           contr[i][''][t2][f2] = new Array();           contr[i][''][t2][f2][0] = t1;           contr[i][''][t2][f2][1] = f1;        Re_load();      }    }  }}
meta: 8858	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8858/af31d1e079a34e628213040b7c8e19b7fbe1c6f8/ajax.js/buggy/pmd/scripts/ajax.js