doSearch = function(){
	var i, cl, c, url, pt;
	
	cl = $F('scatslist').split(',');
	c = [];
	for(i=0;i<cl.length;i++){
		if($('scat_'+custnavencode(cl[i])).checked) c.push(cl[i]);
	}
	
	pt = [];
	if($F('s_pubtime_ms').length > 0 && $F('s_pubtime_ms') != 'mm') pt[0] = $F('s_pubtime_ms');
	else pt[0] = '%'; 
	if($F('s_pubtime_ys').length > 0 && $F('s_pubtime_ys') != 'yyyy') pt[1] = $F('s_pubtime_ys');
	else pt[1] = '%';
	
	if($F('s_pubtime_me').length > 0 && $F('s_pubtime_me') != 'mm') pt[2] = $F('s_pubtime_me');
	else pt[2] = '%'; 
	if($F('s_pubtime_ye').length > 0 && $F('s_pubtime_ye') != 'yyyy') pt[3] = $F('s_pubtime_ye');
	else pt[3] = '%';
	
	
	url = '/search/?s='+custnavencode($F('s'))+'&';
	if(c.length > 0) url += 'mediacats='+c.join(',')+'&';
	if(pt[0] != '%' || pt[1] != '%' || pt[2] != '%' || pt[3] != '%') url += 'date='+custnavencode(pt.join('-'))+'&';
	
	dcsMultiTrack('WT.oss', escape($F('s')));
	
	SWFAddress.setValue(url);
};

