window.save == function(resultset){ ... }
This puts it in the global scope, so you could just call save()
from another script. To namespace it under YAHOO.User, I suppose it would be:
window.YAHOO.User.save = function(resultset){ ... }
... then you can call YAHOO.User.save(resultset)
from outside.