<!--

function highlight_search_option(id)
{
//	var search_type = new Array();
	var search_type_image = new Array();
	var search_suggestion = new Array();

//	search_type[0]		 = '<b>[ All ]</b>';
	search_type_image[0] = '/images/new/icon-all.gif';
	search_suggestion[0] = 'Search for anything related to Indian Astrology';

//	search_type[1]		 = '<b>[ Ask ]</b>';
	search_type_image[1] = '/images/new/icon-ask.gif';
	search_suggestion[1] = 'Ask a question to our experts';

//	search_type[2]		 = '<b>[ Reports ]</b>';
	search_type_image[2] = '/images/new/icon-report.gif';
	search_suggestion[2] = 'Interpretive reports for every area of your life';

//	search_type[3]		 = '<b>[ Learn ]</b>';
	search_type_image[3] = '/images/new/icon-books.gif';
	search_suggestion[3] = 'Books, software and courses for you to learn';

//	search_type[4]		 = '<b>[ Remedies ]</b>';
	search_type_image[4] = '/images/new/icon-remedies.gif';
	search_suggestion[4] = 'Find solutions for your issues in your life';

	var element1 = document.getElementById('1');
	var element2 = document.getElementById('2');
	var element3 = document.getElementById('3');
	var element4 = document.getElementById('4');
	var element5 = document.getElementById('5');
	
//	var element_search_type		  = document.getElementById('search_type');
	var element_search_type_image = document.getElementById('search_type_image');
	var element_search_suggestion = document.getElementById('search_suggestion');
	
//	element_search_type.innerHTML			= search_type[id];			
	element_search_type_image.src			= search_type_image[id];			
	element_search_suggestion.innerHTML		= search_suggestion[id];			
	document.forms['astrosearch'].cat.value = id;

	switch(id)
	{
		case '1':
					element1.style.font = 'normal 11px Verdana';			
					element1.style.color = '#0000FF';			
					
					element2.style.font = 'normal 11px Verdana';			
					element2.style.color = '#000000';			
					
					element3.style.font = 'normal 11px Verdana';			
					element3.style.color = '#000000';			
					
					element4.style.font = 'normal 11px Verdana';			
					element4.style.color = '#000000';			
					
					element5.style.font = 'normal 11px Verdana';			
					element5.style.color = '#000000';			
					
					break;
		
		case '2':
					element1.style.font = 'normal 11px Verdana';			
					element1.style.color = '#000000';			
					
					element2.style.font = 'normal 11px Verdana';			
					element2.style.color = '#0000FF';			
					
					element3.style.font = 'normal 11px Verdana';			
					element3.style.color = '#000000';			
					
					element4.style.font = 'normal 11px Verdana';			
					element4.style.color = '#000000';			
					
					element5.style.font = 'normal 11px Verdana';			
					element5.style.color = '#000000';	
					
					break;
		
		case '3':
					element1.style.font = 'normal 11px Verdana';			
					element1.style.color = '#000000';			
					
					element2.style.font = 'normal 11px Verdana';			
					element2.style.color = '#000000';			
					
					element3.style.font = 'normal 11px Verdana';			
					element3.style.color = '#0000FF';			
					
					element4.style.font = 'normal 11px Verdana';			
					element4.style.color = '#000000';			
					
					element5.style.font = 'normal 11px Verdana';			
					element5.style.color = '#000000';	
					
					break;
		
		case '4':
					element1.style.font = 'normal 11px Verdana';			
					element1.style.color = '#000000';			
					
					element2.style.font = 'normal 11px Verdana';			
					element2.style.color = '#000000';			
					
					element3.style.font = 'normal 11px Verdana';			
					element3.style.color = '#000000';			
					
					element4.style.font = 'normal 11px Verdana';			
					element4.style.color = '#0000FF';			
					
					element5.style.font = 'normal 11px Verdana';			
					element5.style.color = '#000000';	
					
					break;

		case '0':
					element1.style.font = 'normal 11px Verdana';			
					element1.style.color = '#000000';			
					
					element2.style.font = 'normal 11px Verdana';			
					element2.style.color = '#000000';			
					
					element3.style.font = 'normal 11px Verdana';			
					element3.style.color = '#000000';			
					
					element4.style.font = 'normal 11px Verdana';			
					element4.style.color = '#000000';			
					
					element5.style.font = 'normal 11px Verdana';			
					element5.style.color = '#0000FF';			
					
					break;
	}

	var query = document.forms['astrosearch'].q.value.replace(/^\s+|\s+$/, ''); 

	if(query)
	{
		document.forms['astrosearch'].submit();
	}
}

function validate_astrosearch_form()
{
	if('' == document.astrosearch.q.value)
	{
		alert('Please provide the search criteria.');
		return false;
	}

	return true;
}

//-->