Driver (UNDSS) – Baidoa

UNDP Career Opportunities

try {
document.domain = “partneragencies.net”;
}
catch(err) {;}

function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}

function is_int(value){
if((parseFloat(value) == parseInt(value)) && !isNaN(value)){
return true;
} else {
return false;
}
}

function setsource() {
var JobOpeningId = getUrlVars()[“JobOpeningId”];
var urlSiteId = getUrlVars()[“hrs_site_id”];
var urlPostingSeq = getUrlVars()[“hrs_jo_pst_seq”];
var PostingSeq = 1;
var SiteId = 2;

if (is_int(urlSiteId) == true)
{
SiteId = urlSiteId
}

if (is_int(urlPostingSeq) == true)
{
PostingSeq = urlPostingSeq
}

//alert(‘https://jobs.partneragencies.net/psc/UNDPP1HRE2/EMPLOYEE/HRMS/c/HRS_HRAM.HRS_CE.GBL?Page=HRS_CE_JOB_DTL&Action=A&JobOpeningId=’ + JobOpeningId + ‘&SiteId=’ + SiteId + ‘&PostingSeq=’ + PostingSeq);

if (is_int(JobOpeningId) == true)
{
document.getElementById(‘container’).src =’https://jobs.partneragencies.net/psc/UNDPP1HRE2/EMPLOYEE/HRMS/c/HRS_HRAM.HRS_CE.GBL?Page=HRS_CE_JOB_DTL&Action=A&JobOpeningId=’ + JobOpeningId + ‘&SiteId=’ + SiteId + ‘&PostingSeq=’ + PostingSeq;
}
else
{
document.getElementById(‘container’).src =’https://jobs.partneragencies.net/psc/UNDPP1HRE2/EMPLOYEE/HRMS/c/HRS_HRAM.HRS_CE.GBL?Page=HRS_CE_HM_PRE&Action=A&SiteId=2′;
}
}

Read Original Article