// Logs an admin member in
function redirect_success()
{
	window.location = '/doctors_your_results.asp';
}

function admin_login() 
{ 
	var query = $('login').toQueryString();
	//alert(query);
	new Ajax('ajaxlogin.asp', {
							method: 'post', 
							data: query, 
							onComplete: function(resp) {
								
								if (resp == 'fail')
								{
									Growl.Smoke({
										title: 'Authentication Failed !',
										text: 'Please Try Again',
										image: '/Images/fail.jpg',
										duration: 5
									});
								}
								if (resp == 'success')
								{
									Growl.Smoke({
										title: 'Authentication Successful !',
										text: 'Redirecting to the Doctors Section',
										image: '/Images/success.jpg',
										duration: 5
									});
									setTimeout('redirect_success()', 4000)
									
								}
							} 
							
						  }).request();
}



