// JavaScript Document
var xmlHttp = false;
form="";
try 
{
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} 
catch (e) 
{
  try 
  {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  } 
  catch (e2) 
  {
    xmlHttp = false;
  }
}
if (!xmlHttp && typeof XMLHttpRequest != 'undefined') 
{
  xmlHttp = new XMLHttpRequest();
}
/*=======================================Quote start=============================*/
function call_ajax_quote_function() 
{
	//alert(id);
	URL=escape("stock.php");
	//alert(URL);
	xmlHttp.open("GET", URL, true);
	xmlHttp.onreadystatechange = returnquote;
	xmlHttp.send(null);
}

function returnquote() 
{
  if (xmlHttp.readyState == 4) 
  {
    var response = xmlHttp.responseText;
	if(response!='') 
	{
		//alert(response);
			document.getElementById("div_quote").innerHTML="";
			document.getElementById("div_quote").innerHTML=response;
			//document.getElementById('photos').appendChild(document.getElementById("photos"))
			

			
		return false;
	}
  }
}
/*======================Quote End==================*/
function call_ajax_video_function(PageID) 
{
	//alert(id);
	URL=escape("video-embed.php")+"?PageID="+PageID;
	//alert(URL);
	xmlHttp.open("GET", URL, true);
	xmlHttp.onreadystatechange = returnvideo;
	xmlHttp.send(null);
}

function returnvideo() 
{
  if (xmlHttp.readyState == 4) 
  {
    var response = xmlHttp.responseText;
	if(response!='') 
	{
		//alert(response);
			document.getElementById("div_video").innerHTML="";
			document.getElementById("div_video").innerHTML=response;
			//document.getElementById('photos').appendChild(document.getElementById("photos"))
			

			
		return false;
	}
  }
}

