function openWizard(exitURL)
{
    var url;
    
    url = "exit.html?";
    url += "exitURL=" + exitURL;
                                                
    var sFeatures = "dialogHeight:250px;";
    sFeatures += "dialogWidth:500px;";
    sFeatures += "center:yes;";
    sFeatures += "help:no;";
    sFeatures += "resizable:no;";
    sFeatures += "scroll:yes;";
    sFeatures += "status:no;";  
    window.showModalDialog(url,window,sFeatures);
}

function querySt(ji) 
{
    hu = window.location.search.substring(1);
    gy = hu.split("&");
    for (i=0;i<gy.length;i++) 
    {
        ft = gy[i].split("=");
        if (ft[0] == ji) 
        {
            return ft[1];
        }
    }
}
       
function openNewURL()
{
    var exitURL = querySt("exitURL");
    var sData = dialogArguments;
    sData.exitURLvalue = exitURL;
    sData.fnUpdate();
    window.close();
}

function fnUpdate()
{
    if (exitURLvalue != '')
    {
        window.open(exitURLvalue, '','');
    }
}
