



function haindhid()
					{						
						var memoinfo=document.getElementById("memoinfo");					
						memoinfo.style.display="none";						
					}

function addaccount(eurprice,time,location)
{

    var discount=FeiYang.SaleWeb.WOW.WorldOfWarcraft_Honor_Equipment.wow_wotlk_honor_cloaks_battlemaster_trinket.getdis().value;
   	var TxtcalcPrice=document.getElementById("TxtcalcPrice");
	var TxtDiscountPrice=document.getElementById("TxtDiscountPrice");
	var TxtDays=document.getElementById("TxtDays");

	var sale=document.getElementById("sale");
	
	if(TxtcalcPrice.value=="" && TxtDiscountPrice.value=="" && TxtDays.value=="")
	{
	TxtcalcPrice.value=parseFloat(eurprice).toFixed(2);
	TxtDiscountPrice.value=(parseFloat(eurprice)*parseFloat(discount)).toFixed(2);
	TxtDays.value=time;	
	sale.value=((1-parseFloat(discount))*100).toFixed(2);
	}
	else
	{	
	TxtcalcPrice.value=(parseFloat(TxtcalcPrice.value)+eurprice).toFixed(2);
	TxtDays.value=parseFloat(TxtDays.value)+time;
	TxtDiscountPrice.value=(parseFloat(TxtcalcPrice.value)*parseFloat(discount)).toFixed(2);

	
	
	if(TxtDiscountPrice.value==0)
	{
	sale.value=0;
	}
	else
	{
	sale.value=((1-parseFloat(TxtDiscountPrice.value)/parseFloat(TxtcalcPrice.value))*100).toFixed(2);
	}
	}
}


function subaccount(eurprice,time,location)
{



    var discount=FeiYang.SaleWeb.WOW.WorldOfWarcraft_Honor_Equipment.wow_wotlk_honor_cloaks_battlemaster_trinket.getdis().value;
	var TxtcalcPrice=document.getElementById("TxtcalcPrice");
	var TxtDiscountPrice=document.getElementById("TxtDiscountPrice");
	var TxtDays=document.getElementById("TxtDays");
	
	var sale=document.getElementById("sale");
	if(TxtcalcPrice.value=="" && TxtDiscountPrice.value=="" && TxtDays.value=="")
	{
	alert("error!");
	}
	else
	{	
	TxtcalcPrice.value=(parseFloat(TxtcalcPrice.value)-parseFloat(eurprice)).toFixed(2);
	TxtDays.value=parseFloat(TxtDays.value)-time;
	TxtDiscountPrice.value=(parseFloat(TxtcalcPrice.value)*parseFloat(discount)).toFixed(2);
	

	
	if(TxtDiscountPrice.value==0)
	{
	sale.value=0;
	}
	else
	{
	sale.value=((1-parseFloat(TxtDiscountPrice.value)/parseFloat(TxtcalcPrice.value))*100).toFixed(2);
	}
	}
	

}

function addmemoinfo(infocode)
{
var memoinfo=document.getElementById("memoinfo");
memoinfo.value=memoinfo.value+infocode;
}

function submemoinfo(infocode)
{
var memoinfo=document.getElementById("memoinfo");
memoinfo.value=memoinfo.value.replace(infocode,"");
}




function account1(eurprice,time,location)
{
	var CheckBox1=document.getElementById("CheckBox1");
	if(CheckBox1.checked == true)
	{
		/*var clacprice=document.getElementById("TxtcalcPrice").value;
		FeiYang.SaleWeb.WOW.WorldOfWarcraft_Honor_Equipment.Guardian_PvP_item_sets.account(eurprice,time,honor,clacprice);*/
	    addmemoinfo("1,");
	    addaccount(eurprice,time,location)
	}
	else
	{
	    submemoinfo("1,")
		subaccount(eurprice,time,location)	
	}	
	
}


function account2(eurprice,time,location)
{
	var CheckBox2=document.getElementById("Checkbox2");
	if(CheckBox2.checked == true)
	{	
	    addmemoinfo("2,");
	    addaccount(eurprice,time,location)
	}
	else
	{
	    submemoinfo("2,")
		subaccount(eurprice,time,location)	
	}	
	
}
function account3(eurprice,time,location)
{
	var CheckBox3=document.getElementById("Checkbox3");
	if(CheckBox3.checked == true)
	{	
		addmemoinfo("3,");
	    addaccount(eurprice,time,location)
	}
	else
	{
		 submemoinfo("3,")
		subaccount(eurprice,time,location)	
	}	
	
}
function account4(eurprice,time,location)
{
	var CheckBox4=document.getElementById("Checkbox4");
	if(CheckBox4.checked == true)
	{	
	addmemoinfo("4,");
	    addaccount(eurprice,time,location)
	}
	else
	{
	submemoinfo("4,")
		subaccount(eurprice,time,location)	
	}	
}
function account5(eurprice,time,location)
{
	var CheckBox5=document.getElementById("Checkbox5");
	if(CheckBox5.checked == true)
	{	
	addmemoinfo("5,");
	    addaccount(eurprice,time,location)
	}
	else
	{
	submemoinfo("5,")
		subaccount(eurprice,time,location)	
	}	
}
function account6(eurprice,time,location)
{
	var CheckBox6=document.getElementById("Checkbox6");
	if(CheckBox6.checked == true)
	{	
	addmemoinfo("6,");
	    addaccount(eurprice,time,location)
	}
	else
	{
	submemoinfo("6,")
		subaccount(eurprice,time,location)	
	}	
}
function account7(eurprice,time,location)
{
	var CheckBox7=document.getElementById("Checkbox7");
	if(CheckBox7.checked == true)
	{	
	addmemoinfo("7,");
	    addaccount(eurprice,time,location)
	}
	else
	{
	submemoinfo("7,")
		subaccount(eurprice,time,location)	
	}	
}
function account8(eurprice,time,location)
{
	var CheckBox8=document.getElementById("Checkbox8");
	if(CheckBox8.checked == true)
	{	
	addmemoinfo("8,");
	    addaccount(eurprice,time,location)
	}
	else
	{
	submemoinfo("8,")
		subaccount(eurprice,time,location)	
	}	
}

