function change_astro(astro_type)
	{
		var astroid = document.getElementById('astroid').innerHTML;
		if(astro_type == 'Daily')
		{
			document.getElementById('astro_wait').style.display = '';	
			document.getElementById('astro_title').innerHTML = 'My Daily Astro';			
			clientSideInclude('astro_result', 'ajax/daily_astro_res.php?q=Daily&t='+astroid);
			clientSideInclude('astro_select', 'ajax/astro_select.php?q=Daily');
			document.getElementById('astro_wait').style.display = 'none';
		}
		if(astro_type == 'Weekly')
		{
			document.getElementById('astro_wait').style.display = '';	
			document.getElementById('astro_title').innerHTML = 'My Weekly Astro';
			clientSideInclude('astro_result', 'ajax/daily_astro_res.php?q=Weekly&t='+astroid);
			clientSideInclude('astro_select', 'ajax/astro_select.php?q=Weekly');
			document.getElementById('astro_wait').style.display = 'none';
		}
		if(astro_type == 'Monthly')
		{
			document.getElementById('astro_wait').style.display = '';	
			document.getElementById('astro_title').innerHTML = 'My Monthly Astro';
			clientSideInclude('astro_result', 'ajax/daily_astro_res.php?q=Monthly&t='+astroid);
			clientSideInclude('astro_select', 'ajax/astro_select.php?q=Monthly');
			document.getElementById('astro_wait').style.display = 'none';
		}
		if(astro_type == 'Yearly')
		{
			document.getElementById('astro_wait').style.display = '';	
			document.getElementById('astro_title').innerHTML = 'My Yearly Astro';
			clientSideInclude('astro_result', 'ajax/daily_astro_res.php?q=Yearly&t='+astroid);
			clientSideInclude('astro_select', 'ajax/astro_select.php?q=Yearly');
			document.getElementById('astro_wait').style.display = 'none';
		}
	}
	function set_astro(astro_sel)
	{
		var astro_val = document.getElementById(astro_sel).value;
		var astro_val1 = astro_val.replace(/_/g," ");
		var astroid = document.getElementById('astroid').innerHTML;
		if(astro_val != '')
		{
			document.getElementById('astro_wait').style.display = '';	
			document.getElementById('astro_title').innerHTML = 'My ' + astro_val1 +' Prediction';
			clientSideInclude('astro_result', 'ajax/daily_astro_res.php?q='+astro_val+'&t='+astroid);
			document.getElementById('astro_wait').style.display = 'none';
		}
	}
	function set_type(type_name)
	{
		var type_val = document.getElementById(type_name).value;
		change_astro(type_val);	
	}
