
function CalcTime(obj,item)
				{
					//alert(obj.checked);
					//alert(item);
					var location = document.getElementById("Location").value;
					var price = document.getElementById("TxtcalcPrice").value;
					var time = document.getElementById("TxtcalcTime").value;
					var discount=FeiYang.SaleWeb.WOW.WorldOfWarcraft_ArenaPVP_Level.ArenaClassArmor_Season4.GetDiscount().value;
					
					var i = parseInt((parseInt(item)-1)/3);

					usdprice = [207.89,148.49,207.89,119.99,207.89,797.99];
					eurprice = [138.59,98.99,138.59,79.99,138.59,531.99];
					times = [7,5,7,4,7,28];
					if(obj.checked)
					{
						if(location == "US")
						{
							price = parseFloat(price) + parseFloat(usdprice[i]);
						}
						else
						{
							price = parseFloat(price) + parseFloat(eurprice[i]);
						}
						time = parseFloat(time) + parseFloat(times[i]);
					}
					else
					{
						if(location == "USD")
						{
							price = parseFloat(price) - parseFloat(usdprice[i]);
						}
						else
						{
							price = parseFloat(price) - parseFloat(eurprice[i]);
						}
						time = parseFloat(time) - parseFloat(times[i]);
					}
					
					document.getElementById("TxtcalcPrice").value = price.toFixed(2);
					document.getElementById("TxtcalcTime").value = time;
					
							if(parseInt(time)>=22)
							{
								document.getElementById("TxtRealPrice").value=(parseFloat(price)*0.95*parseFloat(discount)).toFixed(2);
							}
							if(parseInt(time)>=13 && parseInt(time)<=21)
							{
								document.getElementById("TxtRealPrice").value=(parseFloat(price)*0.97*parseFloat(discount)).toFixed(2);
							}
							if(parseInt(time)>=10 && parseInt(time)<=12)
							{
								document.getElementById("TxtRealPrice").value=(parseFloat(price)*0.98*parseFloat(discount)).toFixed(2);
							}
							if(parseInt(time)>=5 && parseInt(time)<=9)
							{
								document.getElementById("TxtRealPrice").value=(parseFloat(price)*0.99*parseFloat(discount)).toFixed(2);
							}
							if(parseInt(time)<=4 && parseInt(time)>0)
							{
								document.getElementById("TxtRealPrice").value=(parseFloat(price)*parseFloat(discount)).toFixed(2);
							}
							if(parseInt(time)==0)
							{
								document.getElementById("TxtRealPrice").value=0;
							}
					
					
					
				}


