﻿function calcTotal() {		var x = (window.document.joinUs.fDuesAmount == undefined) ? 0 : window.document.joinUs.fDuesAmount.value * 1;		if (window.document.joinUs.fOpsAmount != undefined) x += window.document.joinUs.fOpsAmount.value * 1;		if (window.document.joinUs.Cost != undefined) x += window.document.joinUs.Cost.value * 1;		if (window.document.joinUs.Tickets != undefined) x *= window.document.joinUs.Tickets.value * 1;		if (window.document.joinUs.fEdFundAmount != undefined) x += window.document.joinUs.fEdFundAmount.value * 1;		if (window.document.joinUs.fServiceFeeAmount != undefined) x += window.document.joinUs.fServiceFeeAmount.value * 1;		window.document.joinUs.chargetotal.value = x.toFixed(2);}function calcDues() {		var val = window.document.getElementById(window.document.joinUs.selectLeague.value);		window.document.joinUs.fDuesAmount.value = val.value ;		calcTotal() ;}function calcOpsAmount() {		var x = 0;		if (window.document.joinUs.fOps.value > 0) x = (window.document.joinUs.fOps.value * 1) ;		else if (window.document.joinUs.fOpsAmount.value > 0) x = (window.document.joinUs.fOpsAmount.value * 1) ;		window.document.joinUs.fOpsAmount.value = x.toFixed(2) ;		calcTotal();}function calcEdAmount() {		var x = 0;		if (window.document.joinUs.fEdFund.value > 0) x = (window.document.joinUs.fEdFund.value * 1) ;		else if (window.document.joinUs.fEdFundAmount.value > 0) x = (window.document.joinUs.fEdFundAmount.value * 1);		window.document.joinUs.fEdFundAmount.value = x.toFixed(2) ;		calcTotal();}function setCC() {		if (window.document.joinUs.payMethod.value == "BILL")		{		window.document.joinUs.fServiceFeeAmount.value = 0 ;		window.document.joinUs.action = "billMe.php";		}		else		{		window.document.joinUs.fServiceFeeAmount.value = 3;		window.document.joinUs.action = "https://www.linkpointcentral.com/lpc/servlet/lppay";		}		calcTotal();}