
function ajaxsubcat(v1,v2)
{
	//document.getElementById('itt').style.display='none';
	//alert(v2);
	//document.getElementById('search').style.display='none';
	var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
		
		
		if(xmlHttp.readyState==1)
     	{
			$('.ihaveholder').fadeOut('slow'); 
			document.getElementById(v1).innerHTML='<font color="black"><b>Genarating List Please Wait..</b></font>';
	  	}
		if(xmlHttp.readyState==4)
     	{ 
			if(xmlHttp.responseText=='no')
			{
				document.getElementById(v1).innerHTML='<select name="selscat"><option value="0">No Sub Category</option></select>';
			}else
			{
				document.getElementById(v1).innerHTML=xmlHttp.responseText;
				$('.ihaveholder').fadeIn('slow'); 
			}
		}
    }
  xmlHttp.open("POST","subcatlist.php?cid="+v2,true);
  
  xmlHttp.send(null);
}



function city(v1,v2)
{
	//alert(v2);
	//document.getElementById('search').style.display='none';
	//document.getElementById('city').style.display='';
	//alert(v2);
	var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
		
		
		if(xmlHttp.readyState==1)
     	{ 
		    $('#search').fadeOut('slow');
			document.getElementById(v1).innerHTML='<font color="black"><b>Genarating List Please Wait..</b></font>';
	  	}
		if(xmlHttp.readyState==4)
     	{ 
			if(xmlHttp.responseText=='no')
			{
				document.getElementById(v1).innerHTML='<select name="selscat"><option value="0">No Sub Category</option></select>';
			}else
			{
				document.getElementById(v1).innerHTML=xmlHttp.responseText;
			}
		}
    }
  xmlHttp.open("POST","city.php?cid="+v2,true);
  
  xmlHttp.send(null);
}



function type2(v1,v2)
{
	//alert("hello");
	//document.getElementById('search').style.display='none';
	//document.getElementById('city').style.display='';
	//alert(v2);
	var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
		
		
		if(xmlHttp.readyState==1)
     	{ 
		    $('#search').fadeOut('slow');
			document.getElementById(v1).innerHTML='<font color="black"><b>Genarating List Please Wait..</b></font>';
	  	}
		if(xmlHttp.readyState==4)
     	{ 
			if(xmlHttp.responseText=='no')
			{
				document.getElementById(v1).innerHTML='<select name="selscat"><option value="0">No Sub Category</option></select>';
			}else
			{
				document.getElementById(v1).innerHTML=xmlHttp.responseText;
			}
		}
    }
  xmlHttp.open("POST","type.php?cid="+v2,true);
  
  xmlHttp.send(null);
}



function ajaxsubcat1(v1,v2)
{
	//document.getElementById('tii').style.display='none';
	//alert(v2);
	var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
		
		
		if(xmlHttp.readyState==1)
     	{
			$('.iwantholder').fadeOut('slow'); 
			document.getElementById(v1).innerHTML='<font color="black"><b>Genarating List Please Wait..</b></font>';
	  	}
		if(xmlHttp.readyState==4)
     	{ 
			if(xmlHttp.responseText=='no')
			{
				document.getElementById(v1).innerHTML='<select name="selscat"><option value="0">No Sub Category</option></select>';
			}else
			{
				document.getElementById(v1).innerHTML=xmlHttp.responseText;
				$('.iwantholder').fadeIn('slow'); 
			}
		}
    }
  xmlHttp.open("POST","subcatlist1.php?cid="+v2,true);
  
  xmlHttp.send(null);
}



function city5(v1,v2)
{
	//alert(v2);
	//document.getElementById('search').style.display='none';
	//document.getElementById('city').style.display='';
	//alert(v2);
	var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
		
		
		if(xmlHttp.readyState==1)
     	{ 
		    $('#search1').fadeOut('slow');
			document.getElementById(v1).innerHTML='<font color="black"><b>Genarating List Please Wait..</b></font>';
	  	}
		if(xmlHttp.readyState==4)
     	{ 
			if(xmlHttp.responseText=='no')
			{
				document.getElementById(v1).innerHTML='<select name="selscat"><option value="0">No Sub Category</option></select>';
			}else
			{
				document.getElementById(v1).innerHTML=xmlHttp.responseText;
			}
		}
    }
  xmlHttp.open("POST","city1.php?cid="+v2,true);
  
  xmlHttp.send(null);
}



function type3(v1,v2)
{
	//alert("hello");
	//document.getElementById('search').style.display='none';
	//document.getElementById('city').style.display='';
	//alert(v2);
	var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
		
		
		if(xmlHttp.readyState==1)
     	{ 
		    $('#search1').fadeOut('slow');
			document.getElementById(v1).innerHTML='<font color="black"><b>Genarating List Please Wait..</b></font>';
	  	}
		if(xmlHttp.readyState==4)
     	{ 
			if(xmlHttp.responseText=='no')
			{
				document.getElementById(v1).innerHTML='<select name="selscat"><option value="0">No Sub Category</option></select>';
			}else
			{
				document.getElementById(v1).innerHTML=xmlHttp.responseText;
			}
		}
    }
  xmlHttp.open("POST","type3.php?cid="+v2,true);
  
  xmlHttp.send(null);
}



function subcat(v1,v2)
{
	//document.getElementById('itt').style.display='none';
	//alert(v1);
	//document.getElementById('search').style.display='none';
	var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
		
		
		if(xmlHttp.readyState==1)
     	{
			$('.ihaveholder').fadeOut('slow'); 
			document.getElementById(v1).innerHTML='<font color="black"><b>Genarating List Please Wait..</b></font>';
	  	}
		if(xmlHttp.readyState==4)
     	{ 
			if(xmlHttp.responseText=='no')
			{
				document.getElementById(v1).innerHTML='<select name="selscat"><option value="0">No Sub Category</option></select>';
			}else
			{
				document.getElementById(v1).innerHTML=xmlHttp.responseText;
				$('.ihaveholder').fadeIn('slow'); 
			}
		}
    }
  xmlHttp.open("POST","datelist.php?cid="+v2,true);
  
  xmlHttp.send(null);
}



function subcat1(v1,v2)
{
	//document.getElementById('itt').style.display='none';
	//alert(v1);
	//document.getElementById('search').style.display='none';
	var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
		
		
		if(xmlHttp.readyState==1)
     	{
			$('.iwantholder').fadeOut('slow'); 
			document.getElementById(v1).innerHTML='<font color="black"><b>Genarating List Please Wait..</b></font>';
	  	}
		if(xmlHttp.readyState==4)
     	{ 
			if(xmlHttp.responseText=='no')
			{
				document.getElementById(v1).innerHTML='<select name="selscat"><option value="0">No Sub Category</option></select>';
			}else
			{
				document.getElementById(v1).innerHTML=xmlHttp.responseText;
				$('.iwantholder').fadeIn('slow'); 
			}
		}
    }
  xmlHttp.open("POST","datelist1.php?cid="+v2,true);
  
  xmlHttp.send(null);
}


