function getRowElement(element){	var mParentElement = element	while (mParentElement.tagName !== "TR"){		mParentElement = mParentElement.parentNode	}		return mParentElement	}function changeConfig(element, isDefault){		var mOptionCollection = document.getElementsByName(element.name)			for(i=0;i < mOptionCollection.length;i++){		var mOption = mOptionCollection[i]		var mRowElement = getRowElement(mOption)		mRowElement.style.backgroundColor = "white"	}			var mRowElement = getRowElement(element)		if (isDefault){		mRowElement.style.backgroundColor = "white"	}else{		mRowElement.style.backgroundColor = "#d2ebff"	}	}function getPlanPricePerMonth2(ServerPrice, PerMonth, DisPerMonth, PeriodType){	var mPlanPrice = 0	switch(PeriodType){		case 1:			mPlanPrice = ServerPrice + PerMonth + DisPerMonth			break		case 2:			//mPlanPrice = ServerPrice + ((PerMonth * 0.9)) + DisPerMonth			mPlanPrice = ServerPrice + ((PerMonth)) + DisPerMonth			break		case 3:			mPlanPrice = ServerPrice + ((PerMonth * 10) / 12) + DisPerMonth			break	}		if (mPlanPrice % parseInt(mPlanPrice)){		mPlanPrice = parseInt(mPlanPrice) + 1	}				return mPlanPrice}function getPlanPriceTotal2(ServerPrice, PerMonth, DisPerMonth, Discount , Month , PeriodType){	var mPlanPrice = 0	//alert(ServerPrice + " - " + PerMonth + " - " + DisPerMonth + " - Discount " + Discount + " " + Month + " - " + PeriodType)	switch(PeriodType){		case 1://					mPlanPrice = PerMonth  - Discount			break		case 2:			//mPlanPrice = (ServerPrice * 3) + ((PerMonth * 0.9) * 3) + (DisPerMonth * 3)			mPlanPrice = (ServerPrice * 3) + ((PerMonth) * 3) + (DisPerMonth * 3)			break		case 3://alert(ServerPrice + " -- " + PerMonth + " - " + DisPerMonth + " - " + Discount + " - " + Month + " - " + PeriodType)			mPlanPrice = PerMonth - (PerMonth* ( 1/ (100 / Discount)))			break	}	/*	if (mPlanPrice % parseInt(mPlanPrice)){		mPlanPrice = parseInt(mPlanPrice) + 1	}				*///mPlanPrice = (ServerPrice * PeriodType) + (PerMonth * PeriodType) + DisPerMonth//alert (mPlanPrice * Month)	return mPlanPrice * Month}function getPlanPriceDiscountRate2(ServerPrice, StartFeeDiscount , DsctPerMonth, PerMonth, DisPerMonth, TotalMonth , PeriodType){	var mPlanPriceTotal = 0	var mDiscountRate = 0	var mTotalAmt = 0	//	alert (StartFee2);//alert(ServerPrice + " -- " + DsctPerMonth + " -- " + PerMonth + " -- " + DisPerMonth + " -- " + TotalMonth + " " + PeriodType)	switch (PeriodType){		case 1:			mPlanPriceTotal = DsctPerMonth * TotalMonth            mTotalAmt = 0			break		case 2:			//mPlanPriceTotal = ((ServerPrice + PerMonth + DisPerMonth) * 3)            //mTotalAmt = ((ServerPrice - DsctPerMonth) * 3) + ((PerMonth * 0.9) * 3) + (DisPerMonth * 3)			break;		case 3:// alert(ServerPrice + " -- " + DsctPerMonth + " -- " + PerMonth + " -- " + DisPerMonth + " -- " + TotalMonth + " " + PeriodType)			mPlanPriceTotal =  PerMonth  * TotalMonth						            mTotalAmt =  ((mPlanPriceTotal / DsctPerMonth))            mTotalAmt = mPlanPriceTotal - (mPlanPriceTotal* ( 1/ (100 / DsctPerMonth)))//alert(1/ (100 / DsctPerMonth))			break;	} //           mPlanPriceTotal = ((ServerPrice + PerMonth + DisPerMonth) * PeriodType)  //          mTotalAmt = ((ServerPrice - DsctPerMonth) * PeriodType) + ((PerMonth) * PeriodType) + (DisPerMonth * PeriodType)//alert(mPlanPriceTotal + " " + mTotalAmt);	mDiscountRate = (mPlanPriceTotal - mTotalAmt) + StartFeeDiscount	return mDiscountRate}		