// JavaScript Document

//FirstClick
function firttabclick() {	

		xmlHttp=GetXmlHttpObject();
		if (xmlHttp==null)
		  {
		  alert ("Your browser does not support AJAX!");
		  return;
		  } 
		var url="firsttab.asp";
		url=url+"?lang="+document.getElementById("lang").value;
		//url=url+"&sid="+Math.random();
		xmlHttp.onreadystatechange=ShowFirstTabContent;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}

function ShowFirstTabContent() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("pro_content").innerHTML=xmlHttp.responseText;
document.getElementById("firsttab").src = "images/tab/1tabon.png";
document.getElementById("secondtab").src = "images/tab/2taboff_nexttaboff.png";
document.getElementById("thirdtab").src = "images/tab/3taboff_nexttabnone.png";

}
}

//End First Click

//SecondClick
function secondtabclick() {	

		xmlHttp=GetXmlHttpObject();
		if (xmlHttp==null)
		  {
		  alert ("Your browser does not support AJAX!");
		  return;
		  } 
		var url="secondtab.asp";
		url=url+"?lang="+document.getElementById("lang").value;
		//url=url+"&sid="+Math.random();
		xmlHttp.onreadystatechange=ShowSecondTabContent;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}

function ShowSecondTabContent() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("pro_content").innerHTML=xmlHttp.responseText;
document.getElementById("firsttab").src = "images/tab/1taboff_2tabon.png";
document.getElementById("secondtab").src = "images/tab/2tabon_nexttaboff.png";
document.getElementById("thirdtab").src = "images/tab/3taboff_nexttabnone.png";}
}

//End Second Click

//ThirdClick
function thirdtabclick() {	

		xmlHttp=GetXmlHttpObject();
		if (xmlHttp==null)
		  {
		  alert ("Your browser does not support AJAX!");
		  return;
		  } 
		var url="thirdtab.asp";
		url=url+"?lang="+document.getElementById("lang").value;
		//url=url+"&sid="+Math.random();
		xmlHttp.onreadystatechange=ShowThirdTabContent;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}

function ShowThirdTabContent() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("pro_content").innerHTML=xmlHttp.responseText;
document.getElementById("firsttab").src = "images/tab/1taboff_2taboff.png";
document.getElementById("secondtab").src = "images/tab/2taboff_nexttabon.png";
document.getElementById("thirdtab").src = "images/tab/3tabon_nexttabnone.png";}
}

//End Third Click


//Products FirstClick
function ProductFirstTab() {	

		xmlHttp=GetXmlHttpObject();
		if (xmlHttp==null)
		  {
		  alert ("Your browser does not support AJAX!");
		  return;
		  } 
		var url="productfirsttab.asp";
		url=url+"?pro_id="+document.getElementById("pro_id").value;
		//url=url+"&sid="+Math.random();
		xmlHttp.onreadystatechange=Product_Information;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}

function Product_Information() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("pro_info").innerHTML=xmlHttp.responseText;
document.getElementById("pro_firstTab").src = "../../images/products/tabs/1tabon_2taboff.png";
document.getElementById("pro_secondTab").src = "../../images/products/tabs/2taboff_nexttaboff.png";
document.getElementById("pro_thirdTab").src = "../../images/products/tabs/3taboff_nexttabnone.png";

}
}

//End Products First Click

//Products Second Click
function ProductSecondTab() {	

		xmlHttp=GetXmlHttpObject();
		if (xmlHttp==null)
		  {
		  alert ("Your browser does not support AJAX!");
		  return;
		  } 
		var url="productsecondtab.asp";
		url=url+"?pro_id="+document.getElementById("pro_id").value;
		//url=url+"&sid="+Math.random();
		xmlHttp.onreadystatechange=Product_Information2;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}

function Product_Information2() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("pro_info").innerHTML=xmlHttp.responseText;
document.getElementById("pro_firstTab").src = "../../images/products/tabs/1taboff_2tabon.png";
document.getElementById("pro_secondTab").src = "../../images/products/tabs/2tabon_nexttaboff.png";
document.getElementById("pro_thirdTab").src = "../../images/products/tabs/3taboff_nexttabnone.png";

}
}

//End Products Second Click


//Products Third Click
function ProductThirdTab() {	

		xmlHttp=GetXmlHttpObject();
		if (xmlHttp==null)
		  {
		  alert ("Your browser does not support AJAX!");
		  return;
		  } 
		var url="productthirdtab.asp";
		url=url+"?pro_id="+document.getElementById("pro_id").value;
		//url=url+"&sid="+Math.random();
		xmlHttp.onreadystatechange=Product_Information3;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}

function Product_Information3() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("pro_info").innerHTML=xmlHttp.responseText;
document.getElementById("pro_firstTab").src = "../../images/products/tabs/1taboff_2taboff.png";
document.getElementById("pro_secondTab").src = "../../images/products/tabs/2taboff_nexttabon.png";
document.getElementById("pro_thirdTab").src = "../../images/products/tabs/3tabon_nexttabnone.png";

}
}

//End Products Third Click

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;
}
