// Show the new form in the right box. $('#div_<%= instance_name %>_details').html("<%%= escape_javascript(render(:partial=>"new")) %>"); validate<%= model_class %>Form();