
var IsFurnaces;
var ChFurnaces;
var GlobalURL;

IsFurnaces=0;

function ExpandNav(url,tar)
  {
  

GlobalURL = url;


$("#"+tar).slideToggle("normal");


// setTimeout("ShowAjax(GlobalURL)",500);


}





function ShowAjax(url)
{

   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==4)
        {
document.getElementById("ProductsAjax").innerHTML=xmlHttp.responseText;

        }
      }
      

xmlHttp.open("POST",url+".php",true);
    
    xmlHttp.send(null);
    

      }
      
      
      
      
      function BryantProductsAjax(url)
{

   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==4)
        {
document.getElementById("ProductsAjax").innerHTML=xmlHttp.responseText;

        }
      }
      

xmlHttp.open("POST","products_show.php?prodid="+url,true);
    
    xmlHttp.send(null);
    

      }





      
      
      
      
   
   function AskExpertFormAjax()
{
   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==4)
        {
document.getElementById("ProductsAjax").innerHTML=xmlHttp.responseText;

        }
      }
      

    xmlHttp.open("POST","contact_expert.php?submit=yes&email=" + document.myForm.email.value + "&name=" + document.myForm.name.value + "&phone=" + document.myForm.phone.value + "&body=" + document.myForm.body.value,true);
    
    xmlHttp.send(null);
    

      } 
      
      
      
      
      function ApptFormAjax()
{
   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==4)
        {
document.getElementById("ProductsAjax").innerHTML=xmlHttp.responseText;

        }
      }
      

    xmlHttp.open("POST","contact_appt.php?submit=yes&email=" + document.myForm.email.value + "&name=" + document.myForm.name.value + "&phone=" + document.myForm.phone.value + "&address=" + document.myForm.address.value + "&city=" + document.myForm.city.value + "&state=" + document.myForm.state.value + "&zip=" + document.myForm.zip.value + "&request_type=" + document.myForm.request_type.value + "&body=" + document.myForm.body.value,true);
    
    xmlHttp.send(null);
    

      } 
      
      
           
      function FeedbackFormAjax()
{
   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==4)
        {
document.getElementById("ProductsAjax").innerHTML=xmlHttp.responseText;

        }
      }
      

    xmlHttp.open("POST","contact_feedback.php?submit=yes&name=" + document.myForm.name.value + "&address=" + document.myForm.address.value + "&city=" + document.myForm.city.value + "&state=" + document.myForm.state.value + "&zip=" + document.myForm.zip.value + "&rate_1=" + document.myForm.rate_1[i].value + "&rate_2=" + document.myForm.rate_2.value,true);
    
    xmlHttp.send(null);
    

      } 






   function open_window(url,specs) 
	{
		mywin = window.open(url,"win",specs);
		mywin.focus();
	}