function defpopup(url,popname,w,h,scrbr)
{
paramtrs="width="+w+",height="+h+",scrollbars="+scrbr;
win = window.open(url, popname, paramtrs);
win.focus(); // bring the pop-up window to the top of the desktop
}
window.onload = function()
{
if(!document.getElementById) return;
var f = document.getElementById('checkoutStage');
if(f)
{
for(var i=0; i