context: function PrintXML(){  var root = xmldoc.getElementsByTagName('root').item(0);  //root  //alert(xmldoc.getElementsByTagName('root').item(1));  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);    //alert(xmldoc.getElementsByTagName('root')[0].attributes[0].nodeValue);    //xmldoc.getElementsByTagName('root')[0].getAttribute("act")        if(root.getAttribute('act') == 'save_pos')      alert(strLang[root.getAttribute('return')]);    if(root.getAttribute('act') == 'relation_upd')    {      alert(strLang[root.getAttribute('return')]);      if(root.getAttribute('b')=='1')      {        contr.splice(root.getAttribute('K'), 1);        Re_load();      }    }    if(root.getAttribute('act') == 'relation_new')    {      alert(strLang[root.getAttribute('return')]);      if(root.getAttribute('b')=='1')      {        var i  = contr.length;        var t1 = root.getAttribute('DB1') + '.' + root.getAttribute('T1');        var f1 = root.getAttribute('F1');        var t2 = root.getAttribute('DB2') + '.' + root.getAttribute('T2');        var f2 = root.getAttribute('F2');        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/374abd5173baac3ed0f6912dfd48568b3eef8365/ajax.js/clean/pmd/scripts/ajax.js