
function MenuEprocServices()
{
//var url='modules/?id=eproc&svr=s01';$.getScript(url);return
var url='modules/?id=eproc&svr=s02';$.getScript(url);return

}

function Eproc_modules(svr,idreg,idBUMN,idVacancy,currentPage,sdate,edate,ctgr,key,nametitle) {
var fopts ="";
var showsfilters="";
judul =nametitle;
showsfilters=false;

fopts = { id: "eporc" };
		  var url  = "modules/";
		  var pctgr = function() {
               	 $("a.detaileproc").bremote("EprocDetail-",ServicesVac);
		  }
		var options = {title : judul,url: "modules/",filterOptions : fopts, id : idreg ,postCtgr : pctgr, postKey : pctgr, postPrd : pctgr, showfilter: false};
		var pars = {currentPage : currentPage, idVacancy : idVacancy , ctgr : ctgr , key: key, sdate : sdate, edate : edate, svr : svr , id : idreg };
              Container.displayOnView(options,pars,function( ) {

		});

}

function ServicesVac(el) {

       if (el.clientX) {
            el = $(this).get(0);
           // alert(el);
      }


	var ideproc = $(el).attr("ideprog");
	var idreg = $(el).attr("idreg");
	var svr = $(el).attr("svr");
	var idprog = $(el).attr("idprog");

	if(jumpPage == '1')
	{
		var currentPage = input;
		if (currentPage > totalPages ) {alert("Halaman Terakhir adalah "+ totPage); }
		else {Vacancy_modules(svr,idreg,idBUMN,idVacancy,currentPage,sdate,edate,ctgr,key,nametitle);}
	}
		else {Vacancy_modules(svr,idreg,idBUMN,idVacancy,currentPage,sdate,edate,ctgr,key,nametitle);}


}

