hi
i am trying to send the parameters to the popup window from js function.
Now this is my js function and i am trying to send parameters to popup.

var newwindow = '';
function popitup(url,st,ed)
{
newwindow=window.open(url,'name','height=400,width=350');
var txt = st+'<br>'+ed
newwindow.document.body.innerHTML += txt;
}

this is the call to the function
popitup("\main.html","10","20");

This is javascript in my popup window(html) page
var begin = ' ';
var end = ' ';
document.write(begin)
document.write("<br>")
document.write(end)
document.write("<br>")


but this is not working......
whats the problem?how should i send the parameters?i want to write that paaramets in popup window.