Everything you need for this is here http://www.unleashed-technologies.com/blog/2010/07/16/drupal-6-insertin…
Take a note that you can also use node_object_prepare($node); to automaticly prepend node with some defaults and one glitch is that if you have node type with a name like
mm-evid when you put it in node type it has to be downscore
$node->type = 'mm_evid';