//This file includes the core javascript required for the portal. 
//It also sets up HTTP headers that force visitors browsers to cache the javascript and will gzip compress the javascript if the zlib library is available in PHP
//The files included are:
// prototype.js
// scriptaculous/effects.js
// DynamicOptionList.js (used for drill down custom fields)
// jscalendar/calendar_stripped.js (used for date custom fields)
// jscalendar/lang/calendar-en.js (used for date custom fields)
// jscalendar/calendar-setup.js (used for date custom fields)
document.write('<script type="text/javascript" src="http://www.getcellranger.com/helpdesk/js/c_portaljs_2.4.2.php"></script>');

//Function that shows appropriate custom fields for each category
function ShowCategoryCustomFields(category_id){

	//Find the ID of the currently selected category
	var selected_category = category_id ? category_id : ($("xCategory") ? $F("xCategory") : 0);
	
	//Create javascript array of custom field ID's, excludes always visible custom fields
	var custom_field_ids = new Array("