/** 
 * Popup for riool.
 * 
 * depends on Ext available.
 *  
 **/

var RIOOL_POP_UP_ACTION = "/remote/popup.do";
  
/** load the riool popup inside a named div.
 *  path: contextpath of the request
 *  parameters and object with the parameters to handle the popup.
 *  
 *  parameters are
 *  close: action to be performed when close is clicked.
 *  url: action loading the content of the popup
 *  title: title of the popup screen
 *   
 *  
 */  

function doRioolPopup(parameters, path){
    var elementid = parameters.elementid;
    var url = path + RIOOL_POP_UP_ACTION;
    Ext.get(elementid).load({
        url: url
        ,scripts: true
        ,params: parameters
        ,method: 'POST'
    });
}
 