 (function () {

 NC.widget.JobMatchManager = function() {
	/* private variables and methods */
		var StrMatchDetailDiv = NC.util.AjaxDialogDisplay.DialogWrapper;
		var StrJobInformationErrorDiv = 'JobInformationError';
		var StrJobInfoDiv = 'JobInfoDiv';
		var StrJobLocationDiv = 'JobLocationDiv';
		var StrJobCategoryDiv = 'JobCategoryDiv';
		var StrJobLocationErrorDiv = 'JobLocationError';
		var StrJobCategoryErrorDiv = 'JobCategoryError';
		var StrExperienceDiv = 'ExperienceDiv';
		var StrExperienceErrorDiv = 'ExperienceError';
		var StrEducationDiv = 'EducationDiv';
		var StrEducationErrorDiv = 'EducationError';
		var StrDistanceDiv = 'DistanceDiv';
		var StrDistanceErrorDiv = 'DistanceError';
		var StrMatchDiv = 'MatchDiv';
		var StrMatchErrorDiv = 'MatchError';
		var StrJobActionDiv = 'JobAction';
		var StrJobActionErrorDiv = 'JobActionError';
		var StrShowActiveStateDiv = 'ShowActiveStateDiv';
		var StrKeywordSearchDiv = 'KeywordSearchDiv';
		var StrJobPostDiv = 'JobPost';

		var StrJobId = 'JobId';
		var StrJobTitle = 'JobTitle';
		var StrJobReqNumber = 'JobReqNumber';
		var StrResponseEmail = 'ResponseEmail';
		var StrPreviousResponseEmail = 'PreviousResponseEmail';
		var StrSpecificSchools = 'SpecificSchools';

		var StrPrimaryCategory = 'PrimaryCategory';
		var StrPrimaryCategoryScore = 'PrimaryCategoryScore';
		var StrSecondaryCategory = 'SecondaryCategory';
		var StrSecondaryCategoryScore = 'SecondaryCategoryScore';

		var StrLocation = 'Location';
		var StrZipCode = 'ZipCode';
		var StrCityState = 'CityState';

		var StrMinExperience = 'MinExperience';
		var StrMaxExperience = 'MaxExperience';
		var StrSpecificCompanies = 'SpecificCompanies';

		var StrRequiredDegree = 'RequiredDegree';
		var StrSchoolRank = 'SchoolRank';
		var StrSpecificSchools = 'SpecificSchools';

		var StrDistance = 'Distance';
		var StrRestrictToState = 'RestrictToState';

		var StrAcceptScore = 'AcceptScore';
		var StrUseMatch = 'UseMatch';

		var StrBroadcast = 'Broadcast';
		var StrEmailSelected = 'EmailSelected';

		var StrActive = 'Active';

		var StrSearchKeyWords = 'SearchKeyWords';
		var StrSearchType = 'SearchType';
		var StrSearchIndustry = 'SearchIndustry';
		var StrSearchDaysBack = 'SearchDaysBack';
		
		// these variables are only valid during the time that the dialog is visible
		var keywordDialog = null;
		var workstatusDialog = null;
		var travelDialog = null;
		var jobinfoDialog = null;
		var getLocationDialog = null;
		var categoryDialog = null;
		var experienceDialog = null;
		var educationDialog = null;
		var distanceDialog = null;
		var matchDialog = null;
		var jobPostDialog = null;
		 	
 	 	return {
			showKeywordSearchPopup: function ( event, baseFormName)
			{
				var pars = 'SearchKeyWords=' + NC.util.Dom.getElementValue( baseFormName, StrSearchKeyWords);
				pars += '&SearchType=' + NC.util.Dom.getElementValue( baseFormName, StrSearchType);
				pars += '&SearchIndustry=' + NC.util.Dom.getElementValue( baseFormName, StrSearchIndustry);
				pars += '&SearchDaysBack=' + NC.util.Dom.getElementValue( baseFormName, StrSearchDaysBack);
				pars = encodeURI( pars);
			
				this.dialog = new NC.widget.XferModalDialog(
					'enterKeywordSearch.php?', 				// sourceUrl, 
					pars,									// parameters, 
					StrMatchDetailDiv, 						// targetDiv, 
					'JsSearchForm',							// targetForm, 
					baseFormName,							// xferForm, 
					function ( formName, updateDiv)			// updateFunc,
					{
						url = 'showSearchInfo.php?';
						url += 'SearchKeyWords=' + NC.util.Dom.getElementValue( formName, StrSearchKeyWords);
						url += '&SearchType=' + NC.util.Dom.getElementValue( formName, StrSearchType);
						url += '&SearchIndustry=' + NC.util.Dom.getElementValue( formName, StrSearchIndustry);
						url += '&SearchDaysBack=' + NC.util.Dom.getElementValue( formName, StrSearchDaysBack);
						url = encodeURI( url);
						NC.util.AjaxManager._xmlHttpGet(url, updateDiv, false );
					},
					'KeywordSearchDiv');					// updateTarget);
				keywordDialog = this.dialog;
				this.dialog.show( event.clientX, event.clientY - 100, 425);		
			},
			
			getKeywordDialog: function() {
			  	return keywordDialog;
			},
			
			showWorkStatusPopup: function ( event, baseFormName)
			{
				var pars = 'WorkStatus=' + NC.util.Dom.getElementValue( baseFormName, 'WorkStatus');
				pars += '&SecurityClearanceCountry=' + NC.util.Dom.getElementValue( baseFormName, 'SecurityClearanceCountry');
				pars += '&SecurityClearanceType=' + NC.util.Dom.getElementValue( baseFormName, 'SecurityClearanceType');
				pars += '&SecurityClearanceStatus=' + NC.util.Dom.getElementValue( baseFormName, 'SecurityClearanceStatus');
				pars = encodeURI( pars);
			
				this.dialog = new NC.widget.XferModalDialog(
					'selectWorkStatus.php?', 				// sourceUrl, 
					pars,									// parameters, 
					StrMatchDetailDiv, 						// targetDiv, 
					'JsWorkStatusForm',							// targetForm, 
					baseFormName,							// xferForm, 
					function ( formName, updateDiv)			// updateFunc,
					{
						url = 'showWorkStatus.php?';
						url += '&WorkStatus=' + NC.util.Dom.getElementValue( baseFormName, 'WorkStatus');
						url += '&SecurityClearanceCountry=' + NC.util.Dom.getElementValue( baseFormName, 'SecurityClearanceCountry');
						url += '&SecurityClearanceType=' + NC.util.Dom.getElementValue( baseFormName, 'SecurityClearanceType');
						url += '&SecurityClearanceLevel=' + NC.util.Dom.getElementValue( baseFormName, 'SecurityClearanceLevel');
						url += '&SecurityClearanceStatus=' + NC.util.Dom.getElementValue( baseFormName, 'SecurityClearanceStatus');
						url = encodeURI( url);
						NC.util.AjaxManager._xmlHttpGet(url, updateDiv, false);
					},
					'WorkStatusDiv');					// updateTarget);
				workstatusDialog = this.dialog;
				this.dialog.show( event.clientX, event.clientY,  300);		
			},
			
			getWorkstatusDialog: function() {
				return workstatusDialog;
			},
			
			showTravelPopup: function ( event, baseFormName)
			{
				var pars = 'WillRelocate=' + NC.util.Dom.getElementValue( baseFormName, 'WillRelocate');
				pars += '&TravelPercent=' + NC.util.Dom.getElementValue( baseFormName, 'TravelPercent');
				pars = encodeURI( pars);
			
				this.dialog = new NC.widget.XferModalDialog(
					'selectRelocation.php', 				// sourceUrl, 
					pars,									// parameters, 
					StrMatchDetailDiv, 						// targetDiv, 
					'JsRelocationForm',						// targetForm, 
					baseFormName,							// xferForm, 
					function ( formName, updateDiv)			// updateFunc,
					{
						url = 'showRelocation.php?';
						url += '&WillRelocate=' + NC.util.Dom.getElementValue( baseFormName, 'WillRelocate');
						url += '&TravelPercent=' + NC.util.Dom.getElementValue( baseFormName, 'TravelPercent');
						url = encodeURI( url);
						NC.util.AjaxManager._xmlHttpGet(url, updateDiv, false);
					},
					'RelocationDiv');					// updateTarget);
				travelDialog = this.dialog;
				this.dialog.show( event.clientX, event.clientY,   250);		
			},
			
			getTravelDialog: function() {
				return travelDialog;
			},
			
			showJobInfoPopup: function ( event, baseFormName)
			{
				var pars = 'JobTitle=' + NC.util.Dom.getElementValue( baseFormName, StrJobTitle);
				pars += '&JobReqNumber=' + NC.util.Dom.getElementValue( baseFormName, StrJobReqNumber);
				pars += '&ResponseEmail=' + NC.util.Dom.getElementValue( baseFormName, StrResponseEmail);
				pars = encodeURI( pars);
			
				this.dialog = new NC.widget.XferModalDialog(
					'enterJobInfo.php', 				// sourceUrl, 
					pars,									// parameters, 
					StrMatchDetailDiv, 						// targetDiv, 
					'JsJobInfoForm',						// targetForm, 
					baseFormName,							// xferForm, 
					function ( formName, updateDiv)			// updateFunc,
					{
						var jobTitle = NC.util.Dom.getElementValue( baseFormName, StrJobTitle);
						var jobReqNumber = NC.util.Dom.getElementValue( baseFormName, StrJobReqNumber);
						var responseEmail = NC.util.Dom.getElementValue( baseFormName, StrResponseEmail);
					    var jobInfo = 'Job Title:&nbsp;' + jobTitle + '<br>';
					    jobInfo += 'Requisition #:&nbsp;' + jobReqNumber + '<br>';
					    jobInfo += 'Send resumes to:&nbsp;' + responseEmail;
						copyToDiv(StrJobInfoDiv, jobInfo);
					},
					StrJobInfoDiv);					// updateTarget);
				jobinfoDialog = this.dialog;
				this.dialog.show( event.clientX, event.clientY, 300);		
			},
			
			getJobinfoDialog: function() {
				return jobinfoDialog;
			},
			
			showLocationPopup: function ( event, baseFormName)
			{
 
				var pars =  'Location=' + NC.util.Dom.getElementValue( baseFormName, StrLocation);
				pars += '&ZipCode=' + NC.util.Dom.getElementValue( baseFormName, StrZipCode);
				pars += '&CityState=' + NC.util.Dom.getElementValue( baseFormName, StrCityState);
				pars = encodeURI( pars);
			
				this.dialog = new NC.widget.XferModalDialog(
					'selectLocation.php', 				// sourceUrl, 
					pars,									// parameters, 
					StrMatchDetailDiv, 						// targetDiv, 
					'JsLocationForm',						// targetForm, 
					baseFormName,							// xferForm, 
					function ( formName, updateDiv)			// updateFunc,
					{
						var zipCodeValue = NC.util.Dom.getElementValue(baseFormName, StrZipCode);
						url = './zipinfo.php?ZipCode=' + zipCodeValue;
						url = encodeURI( url);
						NC.util.AjaxManager._xmlHttpGet(url, updateDiv, false);
					},
					StrJobLocationDiv);					// updateTarget);
				locationDialog = this.dialog;
				this.dialog.show( event.clientX, event.clientY, 230);		
			},
			
			getLocationDialog: function() {
				return locationDialog;
			},
			
			showCategoryPopup: function ( event, baseFormName)
			{
				var pars = 'PrimaryCategory=' + NC.util.Dom.getElementValue( baseFormName, StrPrimaryCategory);
				pars += '&PrimaryCategoryScore=' + NC.util.Dom.getElementValue( baseFormName, StrPrimaryCategoryScore);
				pars += '&SecondaryCategory=' + NC.util.Dom.getElementValue( baseFormName, StrSecondaryCategory);
				pars += '&SecondaryCategoryScore=' + NC.util.Dom.getElementValue( baseFormName, StrSecondaryCategoryScore);
				pars = encodeURI( pars);
			
				this.dialog = new NC.widget.XferModalDialog(
					'selectCategory.php', 				// sourceUrl, 
					pars,									// parameters, 
					StrMatchDetailDiv, 						// targetDiv, 
					'JsCategoryForm',						// targetForm, 
					baseFormName,							// xferForm, 
					function ( formName, updateDiv)			// updateFunc,
					{
						var primaryCategoryValue = NC.util.Dom.getElementValue( baseFormName, StrPrimaryCategory);
						var primaryCategoryScore = NC.util.Dom.getElementValue( baseFormName, StrPrimaryCategoryScore);
						var secondaryCategoryValue = NC.util.Dom.getElementValue( baseFormName, StrSecondaryCategory);
						var secondaryCategoryScore = NC.util.Dom.getElementValue( baseFormName, StrSecondaryCategoryScore);
						url = './categoryinfo.php?PrimaryCategoryId=' + primaryCategoryValue;
						url += '&SecondaryCategoryId=' + secondaryCategoryValue;
						url += '&PrimaryCategoryScore=' + primaryCategoryScore;
						url += '&SecondaryCategoryScore=' + secondaryCategoryScore;
						NC.util.AjaxManager._xmlHttpGet(url, updateDiv, false);
					},
					StrJobCategoryDiv);					// updateTarget);
				categoryDialog = this.dialog;
				this.dialog.show( event.clientX, event.clientY, 450);		
			},
			
			getCategoryDialog: function() {
				return categoryDialog;
			},
			
			showExperiencePopup: function ( event, baseFormName)
			{
				var pars = 'MinExperience=' + NC.util.Dom.getElementValue( baseFormName, StrMinExperience);
				pars += '&MaxExperience=' + NC.util.Dom.getElementValue( baseFormName, StrMaxExperience);
				pars += '&SpecificCompanies=' + NC.util.Dom.getElementValue( baseFormName, StrSpecificCompanies);
				pars = encodeURI( pars);
			
				this.dialog = new NC.widget.XferModalDialog(
					'selectExperience.php', 				// sourceUrl, 
					pars,									// parameters, 
					StrMatchDetailDiv, 						// targetDiv, 
					'JsExperienceForm',						// targetForm, 
					baseFormName,							// xferForm, 
					function ( formName, updateDiv)			// updateFunc,
					{
						var minExperienceValue = NC.util.Dom.getElementValue( baseFormName, StrMinExperience);
						var maxExperienceValue = NC.util.Dom.getElementValue( baseFormName, StrMaxExperience);
						var specificCompanies = NC.util.Dom.getElementValue( baseFormName, StrSpecificCompanies);
					    expInfo = '';
					    if (minExperienceValue > 0 && maxExperienceValue > 0) {
					    	expInfo += minExperienceValue + ' - ' + maxExperienceValue + ' years.<br>';
					    }
					    else if (minExperienceValue > 0) {
					    	expInfo += 'At least ' + minExperienceValue + ' years.<br>';
					    }
					    else if (maxExperienceValue > 0) {
					    	expInfo += 'Less than ' + maxExperienceValue + ' years.<br>';
					    }
					    if (specificCompanies.length > 0) {
					    	expInfo += 'Experience at: ' + specificCompanies;
					    }
					    if (expInfo.length <= 0) {
					    	expInfo = 'No specific requirement.';
					    }
						copyToDiv(StrExperienceDiv, expInfo);
					},
					StrExperienceDiv);					// updateTarget);
				experienceDialog = this.dialog;
				this.dialog.show( event.clientX, event.clientY, 400);		
			},
			
			getExperienceDialog: function() {
				return experienceDialog;
			},
			
			showEducationPopup: function ( event, baseFormName)
			{
				var pars = 'RequiredDegree=' + NC.util.Dom.getElementValue( baseFormName, StrRequiredDegree);
				pars += '&SchoolRank=' + NC.util.Dom.getElementValue( baseFormName, StrSchoolRank);
				pars += '&SpecificSchools=' + NC.util.Dom.getElementValue( baseFormName, StrSpecificSchools);
				pars = encodeURI( pars);
			
				this.dialog = new NC.widget.XferModalDialog(
					'selectEducation.php', 				// sourceUrl, 
					pars,									// parameters, 
					StrMatchDetailDiv, 						// targetDiv, 
					'JsEducationForm',						// targetForm, 
					baseFormName,							// xferForm, 
					function ( formName, updateDiv)			// updateFunc,
					{
						var degreeList = new Array;
						degreeList[0] = 'No';
						degreeList[1] = 'Associates'; 
						degreeList[2] = 'Bachelors'; 
						degreeList[3] = 'Masters'; 
						degreeList[4] = 'Doctoral';
						
						var rankList = new Array;
						rankList[0] = 'No rank';
						rankList[1] = '0.5%';
						rankList[2] = '1%';
						rankList[3] = '2%'; 
						rankList[4] = '5%';
					
						var degreeValue = NC.util.Dom.getElementValue( baseFormName, StrRequiredDegree);
						var schoolRankValue = NC.util.Dom.getElementValue( baseFormName, StrSchoolRank);
						var specificSchools = NC.util.Dom.getElementValue( baseFormName, StrSpecificSchools);
						nDegreeValue = Number(degreeValue);
						if (nDegreeValue > 0) {
							educationInfo = degreeList[nDegreeValue] + ' degree required<br>';
						}
						else {
							educationInfo = 'No degree required<br>';
						}
						nRank = Number( schoolRankValue);
						if (nRank == 0) {
					//	nothing
						}
						else {
							educationInfo += 'School in top ' + rankList[nRank] + '.<br>';
						}
						if (specificSchools.length > 0) {
							educationInfo += 'Required: ' + specificSchools;
						}
						copyToDiv(StrEducationDiv, educationInfo);
					},
					StrEducationDiv);					// updateTarget);
				educationDialog = this.dialog;
				this.dialog.show( event.clientX, event.clientY, 300);		
			},
			
			getEducationDialog: function() {
				return educationDialog;
			},
			
			showDistancePopup: function ( event, baseFormName)
			{
				var pars = 'Distance=' + NC.util.Dom.getElementValue( baseFormName, StrDistance);
				pars += '&RestrictToState=' + NC.util.Dom.getElementValue( baseFormName, StrRestrictToState);
				pars = encodeURI( pars);
			
				this.dialog = new NC.widget.XferModalDialog(
					'selectDistance.php', 				// sourceUrl, 
					pars,									// parameters, 
					StrMatchDetailDiv, 						// targetDiv, 
					'JsDistanceForm',						// targetForm, 
					baseFormName,							// xferForm, 
					function ( formName, updateDiv)			// updateFunc,
					{
						var distanceList = new Array;
						distanceList[0] = 'Don\'t care';
						distanceList[1] = '5 miles';
						distanceList[2] = '10 miles';
						distanceList[3] = '15 miles'; 
						distanceList[4] = '20 miles';
						distanceList[5] = '25 miles';
						distanceList[6] = '50 miles';
						distanceList[7] = '100 miles';
					
						var distanceValue = NC.util.Dom.getElementValue( baseFormName, StrDistance);
						var restrictToState = NC.util.Dom.getElementValue( baseFormName, StrRestrictToState);
						distanceInfo = '';
						nDistance = Number(distanceValue);
						if (nDistance > 0) {
							distanceInfo = 'Distance from job less than ' + distanceList[nDistance] + '.';
						}
						else {
							distanceInfo = 'Distance from job not specified.';
						}
						if (restrictToState > 0) {
							distanceInfo += '<br>In-state candidates only.';
						}		
						copyToDiv(StrDistanceDiv, distanceInfo);
					},
					StrDistanceDiv);					// updateTarget);
				distanceDialog = this.dialog;
				this.dialog.show( event.clientX, event.clientY, 300);		
			},
			
			getDistanceDialog: function() {
				return distanceDialog;
			},
			
						showEducationPopup: function ( event, baseFormName)
			{
				var pars = 'RequiredDegree=' + NC.util.Dom.getElementValue( baseFormName, StrRequiredDegree);
				pars += '&SchoolRank=' + NC.util.Dom.getElementValue( baseFormName, StrSchoolRank);
				pars += '&SpecificSchools=' + NC.util.Dom.getElementValue( baseFormName, StrSpecificSchools);
				pars = encodeURI( pars);
			
				this.dialog = new NC.widget.XferModalDialog(
					'selectEducation.php', 				// sourceUrl, 
					pars,									// parameters, 
					StrMatchDetailDiv, 						// targetDiv, 
					'JsEducationForm',						// targetForm, 
					baseFormName,							// xferForm, 
					function ( formName, updateDiv)			// updateFunc,
					{
						var degreeList = new Array;
						degreeList[0] = 'No';
						degreeList[1] = 'Associates'; 
						degreeList[2] = 'Bachelors'; 
						degreeList[3] = 'Masters'; 
						degreeList[4] = 'Doctoral';
						
						var rankList = new Array;
						rankList[0] = 'No rank';
						rankList[1] = '0.5%';
						rankList[2] = '1%';
						rankList[3] = '2%'; 
						rankList[4] = '5%';
					
						var degreeValue = NC.util.Dom.getElementValue( baseFormName, StrRequiredDegree);
						var schoolRankValue = NC.util.Dom.getElementValue( baseFormName, StrSchoolRank);
						var specificSchools = NC.util.Dom.getElementValue( baseFormName, StrSpecificSchools);
						nDegreeValue = Number(degreeValue);
						if (nDegreeValue > 0) {
							educationInfo = degreeList[nDegreeValue] + ' degree required<br>';
						}
						else {
							educationInfo = 'No degree required<br>';
						}
						nRank = Number( schoolRankValue);
						if (nRank == 0) {
					//	nothing
						}
						else {
							educationInfo += 'School in top ' + rankList[nRank] + '.<br>';
						}
						if (specificSchools.length > 0) {
							educationInfo += 'Required: ' + specificSchools;
						}
						copyToDiv(StrEducationDiv, educationInfo);
					},
					StrEducationDiv);					// updateTarget);
				educationDialog = this.dialog;
				this.dialog.show( event.clientX, event.clientY, 300);		
			},
			
			getEducationDialog: function() {
				return educationDialog;
			},
			
			showMatchPopup: function ( event, baseFormName)
			{
				var pars = 'AcceptScore=' + NC.util.Dom.getElementValue( baseFormName, StrAcceptScore);
				var useMatch = NC.util.Dom.getElementValue( baseFormName, StrUseMatch);
				if (useMatch != 1) {
					useMatch = 0;
				}
				pars += '&UseMatch=' + useMatch;
				pars = encodeURI( pars);
			
				this.dialog = new NC.widget.XferModalDialog(
					'selectMatch.php', 				// sourceUrl, 
					pars,									// parameters, 
					StrMatchDetailDiv, 						// targetDiv, 
					'JsMatchForm',						// targetForm, 
					baseFormName,							// xferForm, 
					function ( formName, updateDiv)			// updateFunc,
					{
						var acceptScore = NC.util.Dom.getElementValue( baseFormName, StrAcceptScore);
						var useMatch = NC.util.Dom.getElementValue( baseFormName, StrUseMatch);
						if (useMatch != 1) {
							useMatch = 0;
						}
					    var matchInfo = '';
					    if (acceptScore == 0) {
					    	matchInfo = "Don't use the NimbleCat score.";
					    }
					    else {
						    if (useMatch == 1) {
						    	matchInfo = 'Job match score greater than ' + acceptScore;
						    }
						    else {
						    	matchInfo = 'NimbleCat score greater than ' + acceptScore;
						    }
					    }
						copyToDiv(StrMatchDiv, matchInfo);
					},
					StrMatchDiv);					// updateTarget);
				matchDialog = this.dialog;
				this.dialog.show( event.clientX, event.clientY, 300);		
			},
			
			getMatchDialog: function() {
				return matchDialog;
			},
			
			showJobPostPopup: function ( event, baseFormName)
			{
				var pars = 'JobId=' + NC.util.Dom.getElementValue( baseFormName, StrJobId);
				pars = encodeURI( pars);
			
				this.dialog = new NC.widget.XferModalDialog(
					'editJobPost.php', 				// sourceUrl, 
					pars,									// parameters, 
					StrMatchDetailDiv, 						// targetDiv, 
					'JsJobPostForm',						// targetForm, 
					baseFormName,							// xferForm, 
					function ( formName, updateDiv)			// updateFunc,
					{
						NC.util.AjaxManager._postRequest( 'JsJobPostForm', './updatejobpost.php', StrJobPostDiv);
					},
					StrJobPostDiv);					// updateTarget);
				jobPostDialog = this.dialog;
				this.dialog.show( event.clientX, event.clientY-300, 550);		
			},
			
			getJobPostDialog: function() {
				return jobPostDialog;
			},
			
			onActivateJobSuccess: function( o) {
				showPreviousMainFrameContent();
			},
			
			onActivateJobFailure: function( o) {
				alert( "Job deletion failed. Please contact NimbleCat Customer Support");
			},
		
			activateJob: function( jobId, activate)
			{
				var parms = 'Activate=' + activate + '&JobId=' + jobId;
				var updateUrl = './do_activatejob_ajax.php?' + parms;
// 				xmlHttpGet(updateUrl, false);
				var callback =
				{
	  				success:this.onActivateJobSuccess,
	  				failure:this.onActivateJobFailure,
					scope: this    				
				};
				var connection = new NC.util.AjaxConnection( 'GET', updateUrl, null);
				connection.executeMethod( callback);
			}
			
  	 	}
  }
  
();

})(); 	
 
