

function cosmoService(service, params, serviceResult)
{
    var url = "/service/" + service + "?client=skreened";
    for (var key in params)
    {
        url += "&" + key + "=" + encodeURIComponent(params[key]);
    }
    var a = new Ajax.Request(url, {method: 'get', onSuccess: serviceResult});
}
function cosmoHelpPopup(context)
{
    cosmoPopup('/static/help_' + context,'helpWindow','location=no,status=no,scrollbars=no,resizable=no,width=500,height=392');
}
function cosmoPopup(theURL) 
{
    options = "status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=500,height=450";
    window.open(theURL, "", options);
}
function cosmoPopup(theURL,winName,features)
{
    window.open(theURL,winName,features);
}
