// JavaScript Document
function purchase(paymentMethod)
{
	document.getElementById("paymentMethod").value = paymentMethod;
	document.getElementById("perksForm").submit();
}

function activateOption(type)
{
	if(type == "card")
	{
		document.getElementById("rowSerial").style.display = "";
	}
	else if(type == "promo")
	{
		document.getElementById("rowSerial").style.display = "none";
	}
}

///var gateway = 'pp';
// JavaScript Document
function changeMerchant(method)
{
	document.getElementById("terms-"+gateway).className = "TermsHide";
	document.getElementById("prices-"+gateway).className = "SubscriptionPricesHide";
	
	gateway = method;
	
	document.getElementById("terms-"+method).className = "Terms";
	document.getElementById("prices-"+method).className = "SubscriptionPrices";
	
	document.getElementById("paymentmethod").value = method;
}



function selectPrice(method, price)
{
	var rows = document.getElementById("prices-"+method).getElementsByTagName('tr');
	for(i=0;i<rows.length;i++)
	{
		rows[i].className = "";
	}
	
	document.getElementById("row-"+method+"-"+price).className = "HighLightPrice";
}

