﻿var xmlMovie = GetXmlHttpObj();
function getMovieStatus()
{

	var Url = "includes/check_movie_availability.php?heb="+document.getElementById('name_heb').value+"&eng="+document.getElementById('name_eng').value;
	xmlMovie.onreadystatechange = movieCheck;
	xmlMovie.open("GET",Url,true);
	xmlMovie.send(null);

}

function movieCheck()
{
	if(xmlMovie.readyState == 4)
	{
		
		document.getElementById('movie_availability').innerHTML = xmlMovie.responseText;
		
	}
}


function GetXmlHttpObj()
{
if (window.XMLHttpRequest)
  {
  return new XMLHttpRequest();
  }
if (window.ActiveXObject)
  {
  return new ActiveXObject("Microsoft.XMLHTTP");
  }
return null;
}
