you can use:
Richfaces.showModalPanel('pnl', {top:'10px', left:'10px', height:'400px'});
Richfaces.hideModalPanel('pnl');
Look at this link http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_modalPanel.html for the details