function loadInterviewLocations(eventCtrl)
{
	var intType = eventCtrl.value;
	var appId = document.getElementById("applicationid").value;
	var jobId = document.getElementById("jobid").value;
	var location = document.getElementById(clientId + "ddlLocation");
	var dates = document.getElementById(clientId + "ddlDate");
	var times = document.getElementById(clientId + "ddlTime");
	
	
	var url = "xml/applicationinterviewlocations.ashx?jId=" + jobId + "&aid=" + appId + "&type=" + intType;
	var xPath = "//store/Interview_Locations[@id='" + intType + "']";
	var dataStore = "xmlDataStore";
	var xmlTagName = "Location";
	var textAttribute = "Text";
	var valueAttribute = "Value";
		
	var load = new populateList(location, url, xPath, dataStore, xmlTagName, textAttribute, valueAttribute, 1);
	
	dates.value = "-1";
	dates.disabled = true;
	times.value = "-1";
	times.disabled = true;
}

function loadInterviewDates(eventCtrl)
{
	var id = eventCtrl.value;
	var intType = document.getElementById(clientId + "ddlInterviewType").value;
	var appId = document.getElementById("applicationid").value;
	var jobId = document.getElementById("jobid").value;
	var dates = document.getElementById(clientId + "ddlDate");
	var times = document.getElementById(clientId + "ddlTime");
	
	
	var url = "xml/applicationinterviewdates.ashx?id=" + id + "&jId=" + jobId + "&aid=" + appId + "&type=" + intType;
	var xPath = "//store/Interview_Dates[@id='" + id + "_" + intType + "']";
	var dataStore = "xmlDataStore";
	var xmlTagName = "Date";
	var textAttribute = "Text";
	var valueAttribute = "Value";
		
	var load = new populateList(dates, url, xPath, dataStore, xmlTagName, textAttribute, valueAttribute, 1);
	
	
	times.value = "-1";
	times.disabled = true;
}

function loadInterviewTimes(eventCtrl)
{
	var date = eventCtrl.value;
	var intType = document.getElementById(clientId + "ddlInterviewType").value;
	var appId = document.getElementById("applicationid").value;
	var jobId = document.getElementById("jobid").value;
	var times = document.getElementById(clientId + "ddlTime");
	
	
	var url = "xml/applicationinterviewtimes.ashx?date=" + date + "&jId=" + jobId + "&aid=" + appId + "&type=" + intType;
	var xPath = "//store/Interview_Times[@id='" + date + "_" + intType + "']";
	var dataStore = "xmlDataStore";
	var xmlTagName = "Time";
	var textAttribute = "Text";
	var valueAttribute = "Value";
			
	var load = new populateList(times, url, xPath, dataStore, xmlTagName, textAttribute, valueAttribute, 1);
}

function deleteApplication()
{
	return confirm("Are you sure you wish to delete this application?");
}