if (questionAt > -1) {
search = search.substring(questionAt + 1);
}
user.getSavedSearches().put(name, search);
user.save();
page.writeStart("div", "id", page.createId());
page.writeEnd();
page.writeStart("script", "type", "text/javascript");
page.writeRaw("$('#").writeRaw(page.getId()).writeRaw("').popup('close');");