


	function getAdjustmentsReportFilterOptions()
	{
			
			
			var filter = $F('filter');

			if (filter == 'tech' )
			{	
				$('userId').style.display = 'block';
				$('locationId').style.display = 'none';
			}else if (filter == 'location' )
			{	
				$('userId').style.display = 'none';
				$('locationId').style.display = 'block';
			}else{
				$('userId').style.display = 'none';
				$('locationId').style.display = 'none';
			}
	}

	function test()
	{
			if(!$F('jobDate')) { alert('doh!'); return false; }

			if(confirm('Delete all jobs from ' + $F('jobDate') + '?')) { 
				$('div1').update(); 
				new Ajax.Updater('div1', 'processWo.php', {asynchronous:true, evalScripts:true, parameters:Form.serialize(form)}); 
			}
	
		
		return false;
	}

	function dispForm(objSel) {
	switch (objSel.options[objSel.selectedIndex].value) {
		case "CompSum" :
		case "CompAlpha" :
		case "CompID" :
			$("locationOptions").style.display='none';
			$("userOptions").style.display='none';
			$("projectOptions").style.display='none';
		break
		case "OffSum" :
		case "OffAlpha" :
		case "OffID" :
			$("locationOptions").style.display='block';
			$("userOptions").style.display='none';
			$("projectOptions").style.display='none';
		break
		case "ProAlpha" :
			$("locationOptions").style.display='none';
			$("userOptions").style.display='none';
			$("projectOptions").style.display='block';
		break
		case "Tech" :
			$("locationOptions").style.display='none';
			$("userOptions").style.display='block';
			$("projectOptions").style.display='none';
		break
	}
}