function showstatus_updating(area){
	document.getElementById(area).innerHTML = "<img src='/images/ajax-loader.gif' style='margin-left:2px;'>";
}
function show_advanced_options(timespan_dropdown,section_dropdown,date_range_input){
	if(timespan_dropdown || section_dropdown || date_range_input){
		document.getElementById('advanced').innerHTML = "<div class='advancedbar'><table cellpadding=0 cellspacing=0 border=0><tr><td valign='top'>Category:</td><td width=15>&nbsp;</td><td>" + section_dropdown + "</td></tr><tr><td colspan=2>&nbsp;</td></tr><tr><td valign='top'>Date Options:</td><td width=15>&nbsp;</td><td>" + timespan_dropdown + "<br><span class='subtitle' style='color:#000000;'>Date Range (mm/dd/yyyy):<br>" + date_range_input + "</span></td></tr></table></div>";
		document.getElementById('advanced_link').innerHTML = "";
	}
}
function process_dates_stuff(fields_off_str){
	fields_off = new Array();
	fields_off = fields_off_str.split(",");
	for (i=0;i<fields_off.length;i++){
		if(fields_off[i] == 'search_timespan'){
			document.getElementById(fields_off[i]).selectedIndex=0;
		}
		else if(fields_off[i] == 'search_range_from'){
			document.getElementById(fields_off[i]).value = "from";
		}
		else if(fields_off[i] == 'search_range_to'){
			document.getElementById(fields_off[i]).value = "to";
		}
		//alert(document.getElementById(fields_off[i]).value);
	}	
}
function checksearchform(){
	if (document.mysearch.search_range_from.value=='from'){
		document.mysearch.search_range_from.value = '';
	}
	if (document.mysearch.search_range_to.value=='to'){
		document.mysearch.search_range_to.value = '';
	}
	return true;
}

