	function cfConfirm(msg,url) {
		if (confirm(msg)) {
			location.href = url;
		}
	}
	
	function viewInstructions() {
		$('#instructions').slideToggle();
	}
	
	
	function lookupEmp(path) {
	
		var lName = $('#last_name').val();
		var fName = $('#first_name').val();			
		
		$.getJSON(path + "remote/getEmpInfo.cfm",
			{ 
				last_name: lName
				,first_name: fName
			},
			  function(json) {
				  if (json.recordCount==0) {
				    alert('Sorry, no records found!\n\nPlease try entering in just a partial first name and/or last name');
				  }
				  else {
				    for (var i=0; i<json.recordCount; i++) {
						$("#first_name").val(json.data.first_name[i]);
						$("#last_name").val(json.data.last_name[i]);
						$("#report_end_date").val(json.data.report_end_date[i]);	
						$("#item_num").val(json.data.item_num[i]);	
						$("#negotiating_unit").val(json.data.negotiating_unit[i]);	
						$("#grade").val(json.data.grade[i]);	
						$("#ssn_4").val(json.data.ssn_4[i]);	
						$("#title").val(json.data.title[i]);			
						
						agencyCodeDropDown = document.getElementById("agency_code");
						for (ii = 0; ii < agencyCodeDropDown.options.length; ii++) {
							if (agencyCodeDropDown.options[ii].value == json.data.agency_code[i]) {
								agencyCodeDropDown.options[ii].selected = true;
							}
						}
				    }
				  }
			  } // end inner function
		); // end Ajax post
	}			
	
	
