Remove Warehouse('footer_plain')
Move popup & not_ajax HTML code to Warehouse('header')
Remove $_REQUEST['_ROSARIO_PDF'] commented
Replace check if $_REQUEST['_ROSARIO_PDF']=='true'
Array keys strings
Remove Side_PHP_SELF
Move $_SESSION['_REQUEST_vars'] init up