
function openModalBoxScheme(oid, scheme, jsp, width, top, afterLoad, sectionId, extraParams) {

   if (jsp==null)jsp="view";
   var url = ccs.contextPath + '/modletInclude/modalbox/jsp/' + jsp + '.jsp?sectionId=' + sectionId + '&oid=' + oid + '&scheme=' + scheme + '&' + extraParams;

   if (top != null) {


      Modalbox.show(url, {width:width, afterLoad:function() {
         $('MB_window').style.top = top;
         if (afterLoad) afterLoad();
         $('MB_content').style.padding = "0";
         }
      });

   } else {
      Modalbox.show(url, {width:width, afterLoad:function() {
        if (afterLoad) afterLoad();
         $('MB_content').style.padding = "0";
      }
      });

   }
}


function openModalBoxPage(urlToShow, jsp, width, height, top, afterLoad, sectionId, extraParams) {

   if (jsp==null)jsp="view";
   if (extraParams==null)extraParams="";
   var url = ccs.contextPath + '/modletInclude/modalbox/jsp/' + jsp + '.jsp?sectionId=' + sectionId + '&height=' + height + '&width=' + width + '&urlToShow=' + encodeURIComponent(urlToShow + "?" + extraParams);
   if (top != null) {

      Modalbox.show(url, {width:width, afterLoad:function() {
         $('MB_window').style.top = top;
         if (afterLoad) afterLoad();
         $('MB_content').style.padding = "0";
         }
      });

   } else {
      Modalbox.show(url, {width:width, afterLoad:function() {
        if (afterLoad) afterLoad();
         $('MB_content').style.padding = "0";
      }
      });

   }
}

