function RedirectJobSeekerToMoreJobs(strPageWithQueryString, strTopJobs) {
		
	if (strTopJobs == "1"){
		window.location = "/JobSeekerX/" + strPageWithQueryString;
	}
	else{
		if (top.opener == null){
			window.location = strPageWithQueryString;
		}
		else{
			top.opener.location = "http://" + top.opener.location.hostname + "/JobSeekerX/" + strPageWithQueryString;
			top.opener.focus();
		}
	}
}

function RedirectAdministratorToMoreJobs(strPageWithQueryString, strTopJobs) {
		
	if (strTopJobs == "1"){
		window.location = "/Administrator/" + strPageWithQueryString;
	}
	else{
		if (top.opener == null){
			window.location = strPageWithQueryString;
		}
		else{
			top.opener.location = "http://" + top.opener.location.hostname + "/Administrator/" + strPageWithQueryString;
			top.opener.focus();
		}
	}
}

//dynamically displays top jobs on destination website
function showTopJobs(containerElemId, strSiteUrl, strPageWithQueryString ){
    var url = strSiteUrl + strPageWithQueryString;
    var msgWait = "Loading Jobs...", msgFail = "Unable to load Top Jobs!";
    
    //makeAjaxRequest( strPlaceHolderElemId, strURL, strParams, strWaitMsg, strResponseMsg, strNoResultMsg )
    makeAjaxRequest( containerElemId ,url,"", msgWait, "", msgFail );
}


function RedirectToMoreJobs(strPageWithQueryString, strTopJobs, strSection) {
		
	if (strTopJobs == "1"){
		window.location = "/" + strSection + "/" + strPageWithQueryString;
	}
	else{
		if (top.opener == null){
			window.location = strPageWithQueryString;
		}
		else{
			top.opener.location = "http://" + top.opener.location.hostname + "/" + strSection + "/" + strPageWithQueryString;
			top.opener.focus();
		}
	}
}