
var xmlHttp
function Timer(){
	document.getElementById('loader').style.display='none';
	}

function findCity(cityname)

{ 

var date="";
var fulladdress="";


if ((document.getElementById('location').value == ''))
{
    alert("Please Select the City");
	document.getElementById('location').focus();
		
	return(false);
}


if ((document.getElementById('location').style.display == 'none'))
{

document.getElementById('courses').style.display = 'inline';
} else {
document.getElementById('courses').style.display = 'none';
}

if (cityname != "")
{
	
}
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
 document.getElementById('loader').style.display='block'; 
var url="getCourses.asp";
url=url+"?city="+cityname;
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}


function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
}
}

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;
}



function findDate(date)
{ 

var cityname="";
var fulladdress="";


if ((document.getElementById('dates').value == ''))
{
    alert("Please Select the Dates");
	document.getElementById('dates').focus();
	return(false);
}
 document.getElementById('loader').style.display='block'; 
if ((document.getElementById('dates').style.display == 'none'))
{
document.getElementById('courses').style.display = 'inline';
} else {
document.getElementById('courses').style.display = 'none';
}


	
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="getCourses.asp";
url=url+"?date="+date;
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}


function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
}
}

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;
}


function findCountry(countryname)
{ 

var cityname="";
var date="";
var fulladdress="";

if ((document.getElementById('country').value == ''))
{
    alert("Please Select the country");
	document.getElementById('country').focus();
	return(false);
}
 document.getElementById('loader').style.display='block'; 
if ((document.getElementById('country').style.display == 'none'))
{
document.getElementById('courses').style.display = 'inline';
} else {
document.getElementById('courses').style.display = 'none';
}

if (countryname != "")
{
	
}
	
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="getcountries1.asp";
url=url+"?country="+countryname;
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}


function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
}
}

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;
}





