rem: if (publish) param.online = 2; else if (content.flNotOnHomePage && param.topic) param.online = 1; else param.online = 0; param.discussions = content.discussions == 0 ? 0 : null; 
add: param.publish = publish; param.addToFront = (content.flNotOnHomePage && param.topic) ? false : true; param.discussions = content.discussions == 0 ? 0 : 1; 
context: function newPost (blogid, username, password, content, publish) {   var usr = root.blogger.getUser(username, password);   var blog = root.blogger.getBlog(blogid.toString());   if (!blog)      throw("Couldn't find the blog " + blogid);   try {      blog.stories.checkAdd(usr, blog.members.getMembershipLevel(usr));   } catch (deny) {      throw("You don't have permission to post to this site");   }   var param = new Object();   param.content_title = content.title;   param.content_text  = content.description;   if (content.dateCreated)      param.createtime = content.dateCreated.format("yyyy-MM-dd HH:mm");   if (content.categories && content.categories.length>0)      param.topic = content.categories[0];   if (publish)       param.online = 2;   else if (content.flNotOnHomePage && param.topic)       param.online = 1;   else       param.online = 0;   param.discussions = content.discussions == 0 ? 0 : null;   var result = blog.stories.evalNewStory(param, usr);   if (result.error)      throw(result.message);   return result.id;}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/8c9c36e2df5742257556e109fef07a3e65a33c99/metaWeblogAPI.js/clean/code/MetaWeblogApi/metaWeblogAPI.js