if (parsed.host != document.domain) { 
if (parsed.host == "" || parsed.host == document.domain) { var updater = RSF.getAJAXLinkUpdater(link, callback);  RSF.addEventToElement(link, "click", updater); updatedElements.push(link); } else { 
    transformActionDomToAJAX: function (parentNode) {      var type = parentNode.nodeName.toLowerCase();      RSF.log("transformActionDomToAJAX: node=" + parentNode);      var updatedElements = [];      // define the callback function for the ajax response      var callback = function(results) {         // specifically purge the existing items before putting in the new stuff         while (parentNode.childNodes[0])  {            parentNode.removeChild(parentNode.childNodes[0]);         }         // now drop in the new xhtml result into this node         parentNode.innerHTML = results;         // rerun the dom transformer on the replacement xhtml         RSF.transformActionDomToAJAX(parentNode);      }      // get elementsbyname to get the forms      var forms = parentNode.getElementsByTagName("form");      for (var i=0; i < forms.length; i++) {         var form = forms[i];         var updater = RSF.getAJAXFormUpdater(form, callback);         RSF.addEventToElement(form, "submit", updater);         updatedElements.push(form);      }      // get elementsbyname to get the links (a)      var links = parentNode.getElementsByTagName("a");      for (var i=0; i < links.length; i++) {         var link = links[i];         if (!link.href || link.href.length == 0) {            RSF.log("link is empty or appears to be invalid so skipping it: " + link.href);            continue;                     }                  var parsed = parseUri(link.href);         if (parsed.host != document.domain) {            RSF.log("link is not in this domain so skipping it: " + link.href);            continue;         }         var updater = RSF.getAJAXLinkUpdater(link, callback);         RSF.addEventToElement(link, "click", updater);         updatedElements.push(link);      }      return updatedElements;    }
7245	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7245/70be962445b1677ffdeca163a5037488d24ccd65/rsf.js/buggy/templates/src/webapp/content/js/rsf.js