// JavaScript Document
var xmlHttp

function stateChanged2() 
{ 
if (xmlHttp.readyState==4)
{ 
	//document.getElementById("errormsg_email").innerHTML=xmlHttp.responseText;

	document.getElementById("days_list2").innerHTML=xmlHttp.responseText;
	
	showTime2(document.getElementById("days2").value,document.getElementById("doctors").value,3);
	
	
	
}
}

function showHint2(str)
{

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="date2.php";

url=url+"?days="+str;

xmlHttp.onreadystatechange=stateChanged2;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}


function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}