求js传递url参数格式,马上给分
function   showmodal2() 
 {    
 var   id=document.getElementById   ( "tb_ownerid ").value;    
 alert(id);    
 var   ret   =   window.showModalDialog( 'SUB.aspx?ownerid=id ',null, 'dialogWidth:350px;dialogHeight:300px;help:no;status:no;scroll:no ');    
 document.all.tb_weight.value   =   ret[0];   }   
 我想把id做为参数ownerid传过去,现在过去的是字符串id
------解决方案--------------------没明白LZ出了什么问题!   
------解决方案--------------------var ret = window.showModalDialog( 'SUB.aspx?ownerid= '+id,null, 'dialogWidth:350px;dialogHeight:300px;help:no;status:no;scroll:no ');  
 document.all.tb_weight.value = ret[0]; }