// JavaScript Document
var xmlHttp
var xmlHttp2
var placeHolder
var placeHolder2
function ajaxCall(placeHolderV,ParamUrl)
{
	placeHolder=placeHolderV;
	  document.getElementById(placeHolder).innerHTML="<img border='0' src='http://"+top.location.host+"/pictures/furniture/ajax-loader.gif'>";
	  xmlHttp=GetXmlHttpObject()
	  if (xmlHttp==null)
     {
	  alert ("Your browser does not support AJAX!");
	  return;
	 }
	Callurl=ParamUrl+'/'+Math.random();
	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("GET",Callurl,true);
    xmlHttp.send(null);
	
}
	function ajaxCallSecond(placeHolderV,ParamUrl)
	{
		placeHolder2=placeHolderV;
		  document.getElementById(placeHolder2).innerHTML="<img border='0' src='http://"+top.location.host+"/pictures/furniture/ajax-loader.gif'>";
		  xmlHttp2=GetXmlHttpObject2()
		  if (xmlHttp2==null)
		 {
		  alert ("Your browser does not support AJAX!");
		  return;
		 }
		Callurl=ParamUrl+'/'+Math.random();
		xmlHttp2.onreadystatechange=stateChanged2;
		xmlHttp2.open("GET",Callurl,false);
		xmlHttp2.send(null);
		
	}
	
	
	

	function stateChanged() 
	{ 
		if (xmlHttp.readyState==4)
		{ 
		document.getElementById(placeHolder).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;
		}
		
		
		///second ajax function call
		
		function stateChanged2() 
	{ 
		if (xmlHttp2.readyState==4)
		{ 
		document.getElementById(placeHolder2).innerHTML=xmlHttp2.responseText;
		}
	}
   function GetXmlHttpObject2()
		{
		var xmlHttp2=null;
		try
		  {
		  // Firefox, Opera 8.0+, Safari
		  xmlHttp2=new XMLHttpRequest();
		  }
		catch (e)
		  {
		  // Internet Explorer
		  try
			{
			xmlHttp2=new ActiveXObject("Msxml2.XMLHTTP");
			}
		  catch (e)
			{
			xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP");
			}
		  }
		return xmlHttp2;
		}
