动态生成的div层中的表单怎么提交

动态生成的div层中的表单如何提交
我做个层里是登录的连接,点击后动态生成个新的层,新层里有一个登录用的表单,但动态生成的div层中的表单如何提交呢?
我是通过:var   newDiv= " <div   style= 'height:28px;   z-index:999;   border-bottom:1px   #c0d4db   solid;   background:#e7f0f7;FILTER:   progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#f7fcff,endColorStr=#e7f0f9) '> </div> <div   style= 'line-height:30px;float:left;   margin-top:-28px;   padding-left:12px;   font-family:simsun;   font-size:12px;   color:#0198cf '> 用户登陆 </div> <div   onclick= 'close_lw(login_win.id) '   style= 'float:right;   cursor:pointer;margin:-23px   3px   0px   0px   ;   padding:   1px   0px   0px   1px;   height:8px;   width:46px;   color:#0198cf;   font:12px; '> <div   style= 'float:right;width:16px;height:16px;background-image:url(images/leftall.gif)   ;background-position:   -14px   -0px; '> </div> <b   style= 'display:block;margin-top:4px; '> 关闭 </B> </div> <div   id= 'login_error_div_back '   style= 'width:100%;font-size:12px;   height:12px;color:#000 '> <center   id= 'login_error_div '> </center> </div> <div   style= 'margin:20px   auto   10px   60px;width:210px;   font-size:14px;color:#0198cf '> 用户名: <input   id= 'user_name '   style= 'border:#0198cf   1px   solid;   width:120px;   height:16px; '   type= 'text '   /> </div> <div   style= 'margin:0px   auto   10px   60px;;width:210px;   font-size:14px;   color:#0198cf '> 密&nbsp;&nbsp;码: <input   id= 'pass_word '   style= 'border:#0198cf   1px   solid;   width:120px;   height:16px; '   type= 'password '   /> </div> <div   style= 'margin:0px   0px   0px   60px;width:210px;   text-align:right; '> <input   id= 'login_button '   onclick= 'layout_login() '   style= 'border:#009ace   1px   solid;background:#0198cf;   width:100px;   height:22px;   margin-right:23px;   color:#FFF;   TabIndex= '0 '   padding-top:2px; '   type= 'submit '   value= '登   录 '   /> </div> ";来定义新的层的,然后调用动态生成的代码实现动态的生成,请问,这时的表单如何提交?

------解决方案--------------------
反全部代码贴出来