/* Revisions:
   Phred White 062408 - added affiliates mom and titan
   Phred White 070108 - added affiliates ltb forced option
   Phred White 091108 - added affiliates prospect
*/

/////////////////////////////////////////////////////////////APPLICATION OPTIONS/////////////////////////////////////////////////////////////
//FUNCTION FOR ONLINE APPLICATION, CHANGES APPLICATION OPTIONS

regType = parseURLForParam("type");

//alert('BEFORE regType = ' + regType);

if (!regType) {
	
	regType = "";
}

dollarSign = "$";

var savingsAlertAnswer;
savingsFormatted = "0";
showAlert = false;
showDiscountMessage = true;
var newSubRate;
var pkgSelected;
var mmgSelected;
var mmgwSelected;

var custName;
switch (regType) {
	case "elliemae":
		custName = "Ellie Mae";
		break;
	case "mti":
		custName = "MTI";
		break;
	case "mbb":
		custName = "Mike Baker and The Mortgage Business Builder";
		break;
	case "danacap":
		custName = "Dana Capital";
		break;
	case "ctx":
		custName = "CTX";
		break;
	case "mtgcoach":
		custName = "Mortgage Coach";
		break;
	case "gmac":
		custName = "GMAC";
		break;
	case "mgic":
		custName = "MGIC"
		break;
	case "allied":
		custName = "Allied Home Mortgage Corp."
		break;
	case "seminar":
		custName = "Seminar";
		break;
	case "special":
		custName = "Special";
		break;
	case "special2":
		custName = "Special";
		break;
	case "special3":
		custName = "Special";
		break;
	case "mmc":
		custName = "Mortgage Mastery Club";
		break;
	case "bw":
		custName = "Bradbury &amp; Williamson";
		break;	
	case "deanm":
		custName = "Dean Moyvrodis";
		break;
	case "mtgpress":
		custName = "The Mortgage Press";
		break;
	case "carteret":
		custName = "Carteret Mortgage";
		break;
	case "mttg":
		custName = "MortgageTree Training Group";
		break;
	case "mom":
		custName = "Mortgage Originator Magazine";
		break;
	case "titan":
		custName = "Titan Home Loans";
		break;
	case "myers":
		custName = "Myers";
		break;
	case "ltbft":
		custName = "Loan Toolbox";
		break;
	case "prospect":
		custName = "Prospect Mortgage";
		break;
	default:
		regType = "";
		break;
}

//alert('AFTER regType = ' + regType);

//ORIGINAL PRICE CODE
	//MMG Regular Prices
	var MMG_annual_reg = "899.00";
	var MMG_annualbonus_reg = "1318.00";
	var MMG_semiannual_reg = "499.00";	
	var MMG_semiannualbonus_reg = "918.00";
	var MMG_monthly_reg = "99.95";
	var MMG_monthlybonus_reg = "518.95";
	
	var annualAlertNum1Orig = "200.00";
	var annualAlertNum2Orig = "200.00";
	var semiannualAlertNum1Orig = "100.00";
	var semiannualAlertNum2Orig = "100.00";
	var monthlyAlertNum1Orig = "20.00";
	var monthlyAlertNum2Orig = "20.00";
	//
	var W_annual_reg = "720.00";
	var W_semiannual_reg = "404.70";
	var W_semiannualnofee_reg = "359.70";
	//MISC PRICES
	var newPrice;
	var includeBonus;

//SPECIAL SAVINGS ALERT CODE
function displayAlert(whichalert) {
	if (regType == null || regType == "" || regType == "special" || regType == "special2" || regType == "special3" || regType == "mttg" || regType == "mom" || regType == "titan") {
		if (whichalert == "specialsavings") {
			var savingsAlert = "";
			savingsAlert += "<br>";
			savingsAlert += "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"../_global/images/interface/spacer.gif\">";
			savingsAlert += "<tr>";
			savingsAlert += "<td bgcolor=\"#000000\"><img src=\"../_global/images/symbols/sym_upperleft_blk.gif\" width=\"4\" height=\"4\"></td>";
			savingsAlert += "<td bgcolor=\"#000000\">";
			savingsAlert += "<div align=\"right\"><img src=\"../_global/images/symbols/sym_upperright_blk.gif\" width=\"4\" height=\"4\"></div></td>";
			savingsAlert += "</tr>";
			savingsAlert += "</table>";
			savingsAlert += "<table width=\"100%\"  border=\"0\" cellpadding=\"5\" cellspacing=\"0\" bgcolor=\"#000000\">";
			savingsAlert += "<tr>";
			savingsAlert += "<td class=\"ContentBoldGold\">Special Savings Alert!\&nbsp\;\&nbsp\;";
			savingsAlert += "<span class=\"ContentWhiteBold\">Take advantage of special discounted rates on W Newsletter by adding a monthly (or semi-annual or annual) subscription to the Mortgage Market Guide.  This is a fantastic way to get acquainted with the powerful benefits of both products... and save money in the process!\&nbsp\;\&nbsp\;Would you like to take advantage of this offer?</span><br><br></td>";
			savingsAlert += "</tr>";
			savingsAlert += "</table>";
			savingsAlert += "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"../_global/images/interface/spacer.gif\">";
			savingsAlert += "<tr>";
			savingsAlert += "<td bgcolor=\"#000000\">\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;<a href=\"javascript:processAlert('mmgweekly','yes');\"><img src=\"../_global/images/buttons/btn_yes.gif\" width=\"44\" height=\"19\" border=\"0\"></a> <a href=\"javascript:processAlert('mmgweekly','no');\"><img src=\"../_global/images/buttons/btn_no.gif\" width=\"44\" height=\"19\" border=\"0\"></a></td>";
			savingsAlert += "<td bgcolor=\"#000000\" class='ContentWhite' align='right'><input type='checkbox' value='false' name='disableBox' onclick='disableSavingsMsg(this.value)\;'> Do not show this message again\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;</td>";
			savingsAlert += "</tr>";
			savingsAlert += "</table>";
			savingsAlert += "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"../_global/images/interface/spacer.gif\">";
			savingsAlert += "<tr>";
			savingsAlert += "<td bgcolor=\"#000000\"><img src=\"../_global/images/symbols/sym_lowerleft_blk.gif\" width=\"4\" height=\"4\"></td>";
			savingsAlert += "<td bgcolor=\"#000000\">";
			savingsAlert += "<div align=\"right\"><img src=\"../_global/images/symbols/sym_lowerright_blk.gif\" width=\"4\" height=\"4\"></div></td>";
			savingsAlert += "</tr>";
			savingsAlert += "</table>";
			savingsAlert += "<br>";
			document.getElementById('SavingsAlert').innerHTML = savingsAlert;
		}
	}
	if (regType == "elliemae" || regType == "mti" || regType == "mbb" || regType == "carteret" || regType == "danacap" || regType == "mtgcoach" || regType == "deanm" || regType == "gmac" || regType == "mgic" || regType == "allied" || regType == "seminar" || regType == "mmc" || regType=="bw" || regType == "mtgpress") {
		if (whichalert == "specialsavings") {
			var savingsAlert = "";
			savingsAlert += "<br>";
			savingsAlert += "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"../_global/images/interface/spacer.gif\">";
			savingsAlert += "<tr>";
			savingsAlert += "<td bgcolor=\"#000000\"><img src=\"../_global/images/symbols/sym_upperleft_blk.gif\" width=\"4\" height=\"4\"></td>";
			savingsAlert += "<td bgcolor=\"#000000\">";
			savingsAlert += "<div align=\"right\"><img src=\"../_global/images/symbols/sym_upperright_blk.gif\" width=\"4\" height=\"4\"></div></td>";
			savingsAlert += "</tr>";
			savingsAlert += "</table>";
			savingsAlert += "<table width=\"100%\"  border=\"0\" cellpadding=\"5\" cellspacing=\"0\" bgcolor=\"#000000\">";
			savingsAlert += "<tr>";
			savingsAlert += "<td class=\"ContentBoldGold\">" + custName +" Special Savings Alert!\&nbsp\;\&nbsp\;";
			savingsAlert += "<span class=\"ContentWhiteBold\">Take advantage of special discounted rates on W Newsletter by adding a monthly (or semi-annual or annual) subscription to the Mortgage Market Guide.  This is a fantastic way to get acquainted with the powerful benefits of both products... and save money in the process!\&nbsp\;\&nbsp\;Would you like to take advantage of this offer?</span><br><br></td>";
			savingsAlert += "</tr>";
			savingsAlert += "</table>";
			savingsAlert += "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"../_global/images/interface/spacer.gif\">";
			savingsAlert += "<tr>";
			savingsAlert += "<td bgcolor=\"#000000\">\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;<a href=\"javascript:processAlert('mmgweekly','yes');\"><img src=\"../_global/images/buttons/btn_yes.gif\" width=\"44\" height=\"19\" border=\"0\"></a> <a href=\"javascript:processAlert('mmgweekly','no');\"><img src=\"../_global/images/buttons/btn_no.gif\" width=\"44\" height=\"19\" border=\"0\"></a></td>";
			savingsAlert += "<td bgcolor=\"#000000\" class='ContentWhite' align='right'><input type='checkbox' value='false' name='disableBox' onclick='disableSavingsMsg(this.value)\;'> Do not show this message again\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;</td>";
			savingsAlert += "</tr>";
			savingsAlert += "</table>";
			savingsAlert += "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"../_global/images/interface/spacer.gif\">";
			savingsAlert += "<tr>";
			savingsAlert += "<td bgcolor=\"#000000\"><img src=\"../_global/images/symbols/sym_lowerleft_blk.gif\" width=\"4\" height=\"4\"></td>";
			savingsAlert += "<td bgcolor=\"#000000\">";
			savingsAlert += "<div align=\"right\"><img src=\"../_global/images/symbols/sym_lowerright_blk.gif\" width=\"4\" height=\"4\"></div></td>";
			savingsAlert += "</tr>";
			savingsAlert += "</table>";
			savingsAlert += "<br>";
			document.getElementById('SavingsAlert').innerHTML = savingsAlert;
		}
	}
	else {
		if (whichalert == "specialsavings") {
			var savingsAlert = "";
			savingsAlert += "<br>";
			savingsAlert += "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"../_global/images/interface/spacer.gif\">";
			savingsAlert += "<tr>";
			savingsAlert += "<td bgcolor=\"#000000\"><img src=\"../_global/images/symbols/sym_upperleft_blk.gif\" width=\"4\" height=\"4\"></td>";
			savingsAlert += "<td bgcolor=\"#000000\">";
			savingsAlert += "<div align=\"right\"><img src=\"../_global/images/symbols/sym_upperright_blk.gif\" width=\"4\" height=\"4\"></div></td>";
			savingsAlert += "</tr>";
			savingsAlert += "</table>";
			savingsAlert += "<table width=\"100%\"  border=\"0\" cellpadding=\"5\" cellspacing=\"0\" bgcolor=\"#000000\">";
			savingsAlert += "<tr>";
			savingsAlert += "<td class=\"ContentBoldGold\">Special Savings Alert!\&nbsp\;\&nbsp\;";
			savingsAlert += "<span class=\"ContentWhiteBold\">Take advantage of special discounted rates on W Newsletter by adding a monthly (or semi-annual or annual) subscription to the Mortgage Market Guide.  This is a fantastic way to get acquainted with the powerful benefits of both products... and save money in the process!\&nbsp\;\&nbsp\;Would you like to take advantage of this offer?</span><br><br></td>";
			savingsAlert += "</tr>";
			savingsAlert += "</table>";
			savingsAlert += "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"../_global/images/interface/spacer.gif\">";
			savingsAlert += "<tr>";
			savingsAlert += "<td bgcolor=\"#000000\">\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;<a href=\"javascript:processAlert('mmgweekly','yes');\"><img src=\"../_global/images/buttons/btn_yes.gif\" width=\"44\" height=\"19\" border=\"0\"></a> <a href=\"javascript:processAlert('mmgweekly','no');\"><img src=\"../_global/images/buttons/btn_no.gif\" width=\"44\" height=\"19\" border=\"0\"></a></td>";
			savingsAlert += "<td bgcolor=\"#000000\" class='ContentWhite' align='right'><input type='checkbox' value='false' name='disableBox' onclick='disableSavingsMsg(this.value)\;'> Do not show this message again\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;</td>";
			savingsAlert += "</tr>";
			savingsAlert += "</table>";
			savingsAlert += "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"../_global/images/interface/spacer.gif\">";
			savingsAlert += "<tr>";
			savingsAlert += "<td bgcolor=\"#000000\"><img src=\"../_global/images/symbols/sym_lowerleft_blk.gif\" width=\"4\" height=\"4\"></td>";
			savingsAlert += "<td bgcolor=\"#000000\">";
			savingsAlert += "<div align=\"right\"><img src=\"../_global/images/symbols/sym_lowerright_blk.gif\" width=\"4\" height=\"4\"></div></td>";
			savingsAlert += "</tr>";
			savingsAlert += "</table>";
			savingsAlert += "<br>";
			document.getElementById('SavingsAlert').innerHTML = savingsAlert;
		}
	}
}

function displayAlertNumMsg(option) {
	if ((option == 'one' && document.registration.addalert[0].checked) || (option == 'two' && document.registration.addalert[1].checked)) {
	var MMGPackage;
	// Check to see which MMG option has been selected Annual, Semi-Annual, or Monthly
	if ((document.registration.mmg[0].checked) || (document.registration.mmg[1].checked)) {
		MMGPackage = "Annual";
		if (parseFloat(annualPriceDiscount) < parseFloat(annualPrice)) {
			if (option == "one") {
				newSubRate = parseFloat(annualPriceDiscount) + parseFloat(annualAlertNum1Orig);
			}
			if (option == "two") {
				newSubRate = parseFloat(annualPriceDiscount) + parseFloat(annualAlertNum1Orig) + parseFloat(annualAlertNum2Orig);
			}
		}
		if (parseFloat(annualPrice) >= parseFloat(annualPriceDiscount)) {
			if (option == "one") {
				newSubRate = parseFloat(annualPrice) + parseFloat(annualAlertNum1Orig);
			}
			if (option == "two") {
				newSubRate = parseFloat(annualPrice) + parseFloat(annualAlertNum1Orig) + parseFloat(annualAlertNum2Orig);
			}
		}
	}
	if ((document.registration.mmg[2].checked) || (document.registration.mmg[3].checked)) {
		MMGPackage = "Semi-Annual";
		if (parseFloat(semiAnnualPriceDiscount) < parseFloat(semiAnnualPrice)) {
			if (option == "one") {
				newSubRate = parseFloat(semiAnnualPriceDiscount) + parseFloat(semiannualAlertNum1Orig);
			}
			if (option == "two") {
				newSubRate = parseFloat(semiAnnualPriceDiscount) + parseFloat(semiannualAlertNum1Orig) + parseFloat(semiannualAlertNum2Orig);
			}
		}
		if (parseFloat(semiAnnualPrice) >= parseFloat(semiAnnualPriceDiscount)) {
			if (option == "one") {
				newSubRate = parseFloat(semiAnnualPrice) + parseFloat(semiannualAlertNum1Orig);
			}
			if (option == "two") {
				newSubRate = parseFloat(semiAnnualPrice) + parseFloat(semiannualAlertNum1Orig) + parseFloat(semiannualAlertNum2Orig);
			}
		}
	}
	if ((document.registration.mmg[4].checked) || (document.registration.mmg[5].checked)) {
		MMGPackage = "Monthly";
		if (parseFloat(monthlyPriceDiscount) < parseFloat(monthlyPrice)) {
			if (option == "one") {
				newSubRate = parseFloat(monthlyPriceDiscount) + parseFloat(monthlyAlertNum1Orig);
			}
			if (option == "two") {
				newSubRate = parseFloat(monthlyPriceDiscount) + parseFloat(monthlyAlertNum1Orig) + parseFloat(monthlyAlertNum2Orig);
			}
		}
		if (parseFloat(monthlyPrice) >= parseFloat(monthlyPriceDiscount)) { 
			if (option == "one") {
				newSubRate = parseFloat(monthlyPrice) + parseFloat(monthlyAlertNum1Orig);
			}
			if (option == "two") {
				newSubRate = parseFloat(monthlyPrice) + parseFloat(monthlyAlertNum1Orig) + parseFloat(monthlyAlertNum2Orig);
			}
		}
	}
	var newSubRate = newSubRate + "";
	newSubRate = CommaFormatted (newSubRate);
	var numAlert = "";
	numAlert += "<br>";
	numAlert += "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"../_global/images/interface/spacer.gif\">";
	numAlert += "<tr>";
	numAlert += "<td bgcolor=\"#000000\"><img src=\"../_global/images/symbols/sym_upperleft_blk.gif\" width=\"4\" height=\"4\"></td>";
	numAlert += "<td bgcolor=\"#000000\">";
	numAlert += "<div align=\"right\"><img src=\"../_global/images/symbols/sym_upperright_blk.gif\" width=\"4\" height=\"4\"></div></td>";
	numAlert += "</tr>";
	numAlert += "</table>";
	numAlert += "<table width=\"100%\"  border=\"0\" cellpadding=\"5\" cellspacing=\"0\" bgcolor=\"#000000\">";
	numAlert += "<tr>";
	if (option == "one") {
		numAlert += "<td class=\"ContentBoldGold\">You have selected to add one additional alert number.\&nbsp\;\&nbsp\;";
		numAlert += "<span class=\"ContentWhiteBold\">If you proceed, your new MMG " + MMGPackage + " subscription rate will be " + newSubRate + ".\&nbsp\;\&nbsp\;Do you want to add an alert number to your subscription?</span><br><br></td>";
		numAlert += "</tr>";
		numAlert += "</table>";
		numAlert += "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"../_global/images/interface/spacer.gif\">";
		numAlert += "<tr>";
		numAlert += "<td bgcolor=\"#000000\">\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;<a href=\"javascript:processAlert('alertnum1', 'yes');\"><img src=\"../_global/images/buttons/btn_yes.gif\" width=\"44\" height=\"19\" border=\"0\"></a> <a href=\"javascript:processAlert('alertnum1','no');\"><img src=\"../_global/images/buttons/btn_no.gif\" width=\"44\" height=\"19\" border=\"0\"></a></td>";
	}
	if (option == "two") {
		numAlert += "<td class=\"ContentBoldGold\">You have selected to add two additional alert numbers.\&nbsp\;\&nbsp\;";
		numAlert += "<span class=\"ContentWhiteBold\">If you proceed, your new MMG " + MMGPackage + " subscription rate will be " + newSubRate + ".\&nbsp\;\&nbsp\;Do you want to add an alert number to your subscription?</span><br><br></td>";
		numAlert += "</tr>";
		numAlert += "</table>";
		numAlert += "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"../_global/images/interface/spacer.gif\">";
		numAlert += "<tr>";
		numAlert += "<td bgcolor=\"#000000\">\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;<a href=\"javascript:processAlert('alertnum2', 'yes');\"><img src=\"../_global/images/buttons/btn_yes.gif\" width=\"44\" height=\"19\" border=\"0\"></a> <a href=\"javascript:processAlert('alertnum2','no');\"><img src=\"../_global/images/buttons/btn_no.gif\" width=\"44\" height=\"19\" border=\"0\"></a></td>";
	}
	numAlert += "</tr>";
	numAlert += "</table>";
	numAlert += "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"../_global/images/interface/spacer.gif\">";
	numAlert += "<tr>";
	numAlert += "<td bgcolor=\"#000000\"><img src=\"../_global/images/symbols/sym_lowerleft_blk.gif\" width=\"4\" height=\"4\"></td>";
	numAlert += "<td bgcolor=\"#000000\">";
	numAlert += "<div align=\"right\"><img src=\"../_global/images/symbols/sym_lowerright_blk.gif\" width=\"4\" height=\"4\"></div></td>";
	numAlert += "</tr>";
	numAlert += "</table>";
	numAlert += "<br>";
	document.getElementById('AlertNumAlert').innerHTML = numAlert;
	return;
	}
	else {
		document.getElementById('AlertNumAlert').innerHTML = "";
	}
}

function processAlert(whichalert,answer) {
	if (whichalert == "mmgweekly") {
		if (answer == "yes" && document.registration.addalert[0].checked) {
			document.registration.packageoption[2].checked = true;
			document.registration.mmg[4].checked = true;
			modifySubscriptionForm(document.registration.packageoption[2].value)
			answer = "";
			document.getElementById('SavingsAlert').innerHTML = "<br>";
		}
		if (answer == "yes") {
			document.getElementById('SavingsAlert').innerHTML = "<br>";
			document.registration.packageoption[2].checked = true;
			modifySubscriptionForm(document.registration.packageoption[2].value)
			document.registration.mmg[4].checked = true;
			updateMMGPrice(document.registration.mmg[4].value);
		}
		if (answer == "no") {
			disableAlertNumOption();
			document.getElementById('SavingsAlert').innerHTML = "<br>";
			resetMMGPackageMsg();
			enableMMGWeekly();
			genMMGWeeklyDiscountMsg();
			disableMMG();
			displayWeeklyMsg();
			disableSteps();
			modifyPrices('MMGWeekly');
			setPrices('MMGWeekly');
		}		
		savingsAlertAnswer = true;
	}
	if (whichalert == "alertnum1") {
		if (answer == "yes") {
			document.registration.addalert[0].checked = true;
			document.getElementById('AlertNumAlert').innerHTML = "";
			enableAddAlert_1_phone();
			enableAddAlert_2();
		}
		if (answer == "no") {
			document.registration.addalert[0].checked = false;
			document.getElementById('AlertNumAlert').innerHTML = "";
			addAlertNum('one');
		}
	}
	if (whichalert == "alertnum2") {
		if (answer == "yes") {
			document.registration.addalert[1].checked = true;
			enableAddAlert_2_phone();
			document.getElementById('AlertNumAlert').innerHTML = "";
		}
		if (answer == "no") {
			document.registration.addalert[1].checked = false;
			document.getElementById('AlertNumAlert').innerHTML = "";
			addAlertNum('two');
		}
	}
}

function disableSavingsMsg(boxStatus) {
	showAlert = boxStatus;
}

function parseURLForParam(fieldName) {
	var str = unescape(document.location.href);
	if ((str == null) || (str == "")) {
		return "";
	} else {
		if (str.indexOf(fieldName) == -1) {
			return "";
		}
		var startString = str.substr(str.indexOf(fieldName) + (fieldName.length + 1));
		var end = (startString.indexOf("&") != -1) ? (startString.indexOf("&")) : startString.length;
		var answer = startString.substr(0,end);
		return answer;
	}
}

function validatePricingOptions () {
	if (regType == "ctx") {
	document.getElementById('mmgwPkgOption').style.display = "none";
	document.getElementById('bothPkgOption').style.display = "none";
	document.getElementById('PkgOption_tbl1').style.display = "none";
	document.getElementById('PkgOption_tbl2').style.display = "none";
	document.getElementById('mmgwSection').style.display = "none";
	/*document.getElementById('mmgwPricingOptions1').style.display = "none";
	document.getElementById('mmgwPricingOptions2').style.display = "none";
	document.getElementById('mmgwPricingOptions3').style.display = "none";
	document.getElementById('mmgwPricingOptions4').style.display = "none";
	document.getElementById('mmgwPricingOptions5').style.display = "none";
	document.getElementById('mmgwTopCorners').style.display = "none";
	document.getElementById('mmgwBottomCorners').style.display = "none";
	*/
	}
	if (regType == "myers") {
	document.getElementById('mmgwPkgOption').style.display = "none";
	document.getElementById('bothPkgOption').style.display = "none";
	document.getElementById('PkgOption_tbl1').style.display = "none";
	document.getElementById('PkgOption_tbl2').style.display = "none";
	document.getElementById('mmgPriceOptSemi').style.display = "none";
	document.getElementById('mmgPriceOptMo').style.display = "none";
	document.getElementById('opt_annualBonus').style.display = "none";
	document.getElementById('ann_bonus_1').style.display = "none";
	document.getElementById('Price04').style.display = "none";
	document.getElementById('SandHMessage').style.display = "none";
	document.getElementById('mmgwSection').style.display = "none";

/*document.getElementById('mmgwPricingOptions1').style.display = "none";
	document.getElementById('mmgwPricingOptions2').style.display = "none";
	document.getElementById('mmgwPricingOptions3').style.display = "none";
	document.getElementById('mmgwPricingOptions4').style.display = "none";
	document.getElementById('mmgwPricingOptions5').style.display = "none";
	document.getElementById('mmgwTopCorners').style.display = "none";
	document.getElementById('mmgwBottomCorners').style.display = "none";
	*/
	}
	if (regType == "ltbft") {
	document.getElementById('mmgwPkgOption').style.display = "none";
	document.getElementById('bothPkgOption').style.display = "none";
	document.getElementById('PkgOption_tbl1').style.display = "none";
	document.getElementById('PkgOption_tbl2').style.display = "none";
	document.getElementById('mmgPriceOptSemi').style.display = "none";
	document.getElementById('mmgPriceOptMo').style.display = "none";
	document.getElementById('opt_annualBonus').style.display = "none";
	document.getElementById('ann_bonus_1').style.display = "none";
	document.getElementById('Price04').style.display = "none";
	document.getElementById('SandHMessage').style.display = "none";
	document.getElementById('mmgwSection').style.display = "none";

/*document.getElementById('mmgwPricingOptions1').style.display = "none";
	document.getElementById('mmgwPricingOptions2').style.display = "none";
	document.getElementById('mmgwPricingOptions3').style.display = "none";
	document.getElementById('mmgwPricingOptions4').style.display = "none";
	document.getElementById('mmgwPricingOptions5').style.display = "none";
	document.getElementById('mmgwTopCorners').style.display = "none";
	document.getElementById('mmgwBottomCorners').style.display = "none";
	*/
	}
	if (regType == "prospect") {
	document.getElementById('mmgwPkgOption').style.display = "none";
	document.getElementById('bothPkgOption').style.display = "none";
	document.getElementById('PkgOption_tbl1').style.display = "none";
	document.getElementById('PkgOption_tbl2').style.display = "none";
	document.getElementById('mmgPriceOptSemi').style.display = "none";
	document.getElementById('mmgPriceOptMo').style.display = "none";
	document.getElementById('opt_annualBonus').style.display = "none";
	document.getElementById('ann_bonus_1').style.display = "none";
	document.getElementById('Price04').style.display = "none";
	document.getElementById('SandHMessage').style.display = "none";
	document.getElementById('mmgwSection').style.display = "none";

/*document.getElementById('mmgwPricingOptions1').style.display = "none";
	document.getElementById('mmgwPricingOptions2').style.display = "none";
	document.getElementById('mmgwPricingOptions3').style.display = "none";
	document.getElementById('mmgwPricingOptions4').style.display = "none";
	document.getElementById('mmgwPricingOptions5').style.display = "none";
	document.getElementById('mmgwTopCorners').style.display = "none";
	document.getElementById('mmgwBottomCorners').style.display = "none";
	*/
	}
	// FREE BONUS -- Changes the structure of the package options section and adds FREE BONUS to MMG annual -- $20 S/H added at checkout
	if (regType == "seminar" || regType == "mmc" || regType == "bw" || regType == "carteret" || regType == "mtgpress" || regType == "deanm" || regType == "mtgcoach" || regType == "allied" || regType == "special2" || regType == "special3" || regType == "mttg" || regType == "ctx" || regType == "mbb" || regType == "elliemae" || regType == "mti") {
	document.all.td_annualBonus.width = "100%";
	document.all.td_annualBonus.className = "RegFreeBonus";
	document.all.ann_bonus_1.innerHTML = "<a class='ContentBoldGoldUnderline' href='http://www.mortgagemarketguide.com/membership/bonusoffers.html' target='_blank'>INCLUDES FREE BONUS</a> <span class='ContentWhiteBold'>\&nbsp\;($"+shippingHandlingFee+" S/H added at checkout)</span>";
	document.getElementById('mmg_ab').style.display = "none";
	document.all.td_Price04.width = "1";
	document.getElementById('Price04').style.display = "none";
	document.registration.mmg_a.value = "Annually_bonus";
	}
	// FREE BONUS -- Changes the structure of the package options section and adds FREE BONUS to MMG semi-annual -- $20 S/H added at checkout
	if (regType ==  "ctx") {
	document.all.td_semiAnnualBonus.width = "100%";
	document.all.td_semiAnnualBonus.className = "RegFreeBonus";
	document.all.semi_bonus_1.innerHTML = "<a class='ContentBoldGoldUnderline' href='http://www.mortgagemarketguide.com/membership/bonusoffers.html' target='_blank'>INCLUDES FREE BONUS</a> <span class='ContentWhiteBold'>\&nbsp\;($"+shippingHandlingFee+" S/H added at checkout)</span>";
	document.getElementById('mmg_sb').style.display = "none";
	document.all.td_Price05.width = "1";
	document.getElementById('Price05').style.display = "none";
	document.registration.mmg_s.value = "Semi-Annually_bonus";
	}
	if (regType == "ec") {
		document.getElementById('refBy').style.display = "none";
	}
	if (!regType) {
	var divider = document.getElementById('step1to2');
	divider.innerHTML = "<p><img src=\"../_global/images/tile/tile_interior_content.gif\" width=\"559\" height=\"1\" vspace=\"10\"></div>";
	}
}

function setPageTitle () {
	switch (regType) {
		case "elliemae":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Exclusive Pricing for Ellie Mae Members";
			document.registration.type.value = "elliemae";
			document.title = "MORTGAGE MARKET GUiDE - Ellie Mae Exclusive Pricing";
			break;
		case "mti":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Exclusive Pricing for MTI";
			document.registration.type.value = "mti";
			document.title = "MORTGAGE MARKET GUiDE - MTI Exclusive Pricing";
			break;
		case "mbb":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Exclusive Pricing Courtesy of Mike Baker<br>and The Mortgage Business Builder";
			document.registration.type.value = "mbb";
			document.title = "MORTGAGE MARKET GUiDE - Mike Baker and The Mortgage Business Builder Exclusive Pricing";
			break;
		case "carteret":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Exclusive Pricing for Carteret Mortgage";
			document.registration.type.value = "carteret";
			document.title = "MORTGAGE MARKET GUiDE - Carteret Mortgage Exclusive Pricing";
			break;
		case "danacap":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Special Pricing for Dana Capital Group";
			document.registration.type.value = "danacap";
			document.title = "MORTGAGE MARKET GUiDE - Dana Capital Exclusive Pricing";
			break;
		case "mtgcoach":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Mortgage Coach Special Pricing";
			document.registration.type.value = "mtgcoach";
			document.title = "MORTGAGE MARKET GUiDE - Mortgage Coach Special Pricing";
			break;
		case "gmac":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "GMAC Special Pricing";
			document.registration.type.value = "gmac";
			document.title = "MORTGAGE MARKET GUiDE - GMAC Special Pricing";
			break;
		case "mgic":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "MGIC Special Pricing";
			document.registration.type.value = "mgic";
			document.title = "MORTGAGE MARKET GUiDE - MGIC Special Pricing";
			break;
		case "ctx":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "CTX Special Pricing";
			document.registration.type.value = "ctx";
			document.title = "MORTGAGE MARKET GUiDE - CTX Special Pricing";
			break;
		case "allied":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Allied Home Mortgage Corp. Special Pricing";
			document.registration.type.value = "allied";
			document.title = "MORTGAGE MARKET GUiDE - Allied Special Pricing";
			break;
		case "seminar":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Special Seminar Pricing";
			document.registration.type.value = "seminar";
			document.title = "MORTGAGE MARKET GUiDE - Special Seminar Pricing";
			break;
		case "special":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Special Pricing - Limited Time Offer";
			document.registration.type.value = "special";
			document.title = "MORTGAGE MARKET GUiDE - Special Pricing - Limited Time Offer";
			break;
		case "special2":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Special Pricing - Limited Time Offer";
			document.registration.type.value = "special2";
			document.title = "MORTGAGE MARKET GUiDE - Special Pricing - Limited Time Offer";
			break;
		case "special3":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Special Pricing on behalf of John Santorineos and MMG";
			document.registration.type.value = "special2";
			document.title = "MORTGAGE MARKET GUiDE - Special Pricing - Limited Time Offer";
			break;
		case "mmc":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Special Pricing for Mortgage Mastery Club Members";
			document.registration.type.value = "mmc";
			document.title = "MORTGAGE MARKET GUiDE - Mortgage Mastery Club Special Pricing";
			break;
		case "bw":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Special Pricing Courtesy of Bradbury &amp; Williamson";
			document.registration.type.value = "bw";
			document.title = "MORTGAGE MARKET GUiDE - Bradbury & Williamson Special Pricing";
			break;
		case "deanm":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Dean Moyvrodis Special Pricing";
			document.registration.type.value = "deanm";
			document.title = "MORTGAGE MARKET GUiDE - Dean Moyvrodis Special Pricing";
			break;
		case "mtgpress":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "The Mortgage Press Special Pricing";
			document.registration.type.value = "mtgpress";
			document.title = "MORTGAGE MARKET GUiDE - The Mortgage Press Special Pricing";
			break;
		case "mttg":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Special Offer From MoneyTree Training Group";
			document.registration.type.value = "mttg";
			document.title = "MORTGAGE MARKET GUiDE - MortgageTree Lending Group Special Pricing";
			break;
		case "mom":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Special Offer From Mortgage Originator Magazine";
			document.registration.type.value = "mom";
			document.title = "MORTGAGE MARKET GUiDE - Mortgage Originator Magazine Pricing";
			break;
		case "titan":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Special Offer From Tim Davis";
			document.registration.type.value = "titan";
			document.title = "MORTGAGE MARKET GUiDE - Titan Home Loans Special Pricing";
			break;
		case "myers":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Special Offer From Myers";
			document.registration.type.value = "myers";
			document.title = "MORTGAGE MARKET GUiDE - Myers Special Pricing";
			break;
		case "ltbft":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Special Offer From Loan Toolbox";
			document.registration.type.value = "ltbft";
			document.title = "MORTGAGE MARKET GUiDE - Loantool Box Special Pricing";
			break;
		case "prospect":
			document.getElementById('pageTitleRow').style.display = "inline";
			document.getElementById('pageTitle').innerHTML = "Special Offer From Prospect Mortgage";
			document.registration.type.value = "prospect";
			document.title = "MORTGAGE MARKET GUiDE - Prospect Mortgage Special Pricing";
			break;
		default:
			if (regType) { document.registration.type.value = regType; }
			else { document.registration.type.value = "mmg"; }
			break;
	}
}

switch (regType) {
	case "elliemae":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "899.00"; 				// MMG annual price
		var annualPriceBonus = "899.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "624.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "899.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "899.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "579.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "299.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "579.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "299.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
		
	case "mti":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "899.00"; 				// MMG annual price
		var annualPriceBonus = "899.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "624.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "899.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "899.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "579.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "299.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "579.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "299.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
	
	case "mbb":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "899.00"; 				// MMG annual price
		var annualPriceBonus = "899.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "624.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "899.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "899.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "579.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "299.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "579.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "299.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
		
	case "carteret":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "799.00"; 				// MMG annual price
		var annualPriceBonus = "799.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "624.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "799.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "799.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "479.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "299.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "579.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "299.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
	
	case "danacap":
		//SWITCHES
		showAlert = false;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "799.00"; 				// MMG annual price
		var annualPriceBonus = "1218.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "479.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "799.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "1218.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "479.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "199.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "479.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
			
	case "mtgcoach":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "899.00"; 				// MMG annual price
		var annualPriceBonus = "899.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "624.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "899.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "899.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "579.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "299.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "579.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
			
	case "gmac":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "699.00"; 				// MMG annual price
		var annualPriceBonus = "1118.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "624.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "699.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "1118.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "579.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "299.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "579.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
		
	case "mgic":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "859.00"; 				// MMG annual price
		var annualPriceBonus = "1278.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "479.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "898.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "89.95"; 				// MMG monthly price
		var monthlyPriceBonus = "508.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "624.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "859.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "1278.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "479.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "898.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "89.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "508.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "579.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "299.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "579.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
		
	case "ctx":
		//SWITCHES
		showAlert = false;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "599.00"; 				// MMG annual price
		var annualPriceBonus = "599.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "399.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "399.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "79.95"; 				// MMG monthly price
		var monthlyPriceBonus = "498.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "614.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "599.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "599.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "399.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "399.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "79.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "498.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "579.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "299.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "614.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
		
	case "allied":
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "849.00"; 				// MMG annual price
		var annualPriceBonus = "849.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "624.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "849.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "849.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "579.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "299.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "579.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
		
	case "seminar":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "899.00"; 				// MMG annual price
		var annualPriceBonus = "899.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "579.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "899.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "899.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "479.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "199.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "479.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
		
	case "special":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "899.00"; 				// MMG annual price
		var annualPriceBonus = "1318.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "579.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "899.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "1318.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "479.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "199.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "479.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
		
	case "special2":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "899.00"; 				// MMG annual price
		var annualPriceBonus = "899.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "579.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "899.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "899.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "479.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "199.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "479.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
	
		case "special3":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "899.00"; 				// MMG annual price
		var annualPriceBonus = "899.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "579.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "899.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "899.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "479.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "199.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "479.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;	
	
	case "mmc":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "899.00"; 				// MMG annual price
		var annualPriceBonus = "899.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "579.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "899.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "899.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "479.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "199.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "479.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
	
	case "bw":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "899.00"; 				// MMG annual price
		var annualPriceBonus = "899.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "579.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "899.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "899.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "479.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "199.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "479.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
	
	case "deanm":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "899.00"; 				// MMG annual price
		var annualPriceBonus = "899.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "624.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "899.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "899.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "579.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "299.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "579.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
	
	case "mttg":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "899.00"; 				// MMG annual price
		var annualPriceBonus = "899.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "579.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "899.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "899.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "479.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "199.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "479.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;
	
	case "mom":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "899.00"; 				// MMG annual price
		var annualPriceBonus = "1318.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "720.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "899.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "1318.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "579.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "299.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "675.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;	
	
	case "titan":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "899.00"; 				// MMG annual price
		var annualPriceBonus = "1318.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "720.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "899.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "1318.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "579.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "299.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "675.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;	
	
	case "myers":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "899.00"; 				// MMG annual price
		var annualPriceBonus = "1318.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "720.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "899.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "1318.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "579.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "299.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "675.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;	
	
	case "ltbft":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "699.00"; 				// MMG annual price
		var annualPriceBonus = "1318.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "720.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "699.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "1318.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "579.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "299.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "675.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;	
	
	case "prospect":
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "599.00"; 				// MMG annual price
		var annualPriceBonus = "1318.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "720.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "699.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "1318.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "579.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "299.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "675.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;	
	
	default:
		//SWITCHES
		showAlert = true;
		showDiscountMessage = true;
		
		//            --- REGULAR OR DISCOUNTED PRICES ---
		// IF THESE PRICES ARE DIFFERENT FROM ORIG PRICES, ORIG PRICE WILL BE
		// LINED-OUT AND PRICES SHOWN BELOW WILL BE DISPLAYED AND USED FOR TOTALS.
		//MMG
		var annualPrice = "899.00"; 				// MMG annual price
		var annualPriceBonus = "1318.00"; 			// MMG annual with bonus price
		var semiAnnualPrice = "499.00";				// MMG semi-annual price
		var semiAnnualPriceBonus = "918.00"; 		// MMG semi-annual with bonus price
		var monthlyPrice = "99.95"; 				// MMG monthly price
		var monthlyPriceBonus = "518.95"; 			// MMG monthly with bonus price
		//WEEKLY
		var bothAnnualPrice = "720.00"; 			// Weekly annual price in front of parentheses
		var bothMonthlyPrice = "404.70"; 			// Weekly monthly price in front of parentheses
		
		//               --- COMBO DISCOUNTED PRICES ---
		//  THESE PRICES IN EFFECT ONLY IF BOTH SELECTED.
		//  FOR MMG - PRICES SHOULD BE THE SAME AS ABOVE UNLESS A DISCOUNT IS BEING 
		//  GIVEN FOR PURCHASING IN COMBINATION WITH WEEKLY.  
		//  FOR WEEKLY - THIS CONTROLS THE COMBO PRICE.	
		// MMG
		var annualPriceDiscount = "899.00"; 		// MMG annual discounted price (if any)
		var annualPriceBonusDiscount = "1318.00"; 	// MMG annual with bonus discounted price (if any)
		var semiAnnualPriceDiscount = "499.00"; 	// MMG semi-annual discounted price (if any)
		var semiAnnualPriceBonusDiscount = "918.00";// MMG semi-annual with bonus discounted price (if any)
		var monthlyPriceDiscount = "99.95"; 		// MMG monthly discounted price (if any)
		var monthlyPriceBonusDiscount = "518.95"; 	// MMG monthly with bonus discounted price (if any)
		// WEEKLY
		var bothAnnualPriceDiscount = "579.00"; 	// Combo, Weekly annual price  
		var bothMonthlyPriceDiscount = "299.70"; 	// Combo, Weekly monthly price
		
		//MISC PRICES
		var bothAnnualPriceSavings = "675.00"; 		// Weekly annual base price (without set-up fee) for description in parentheses
		var bothMonthlyPriceSavings = "359.70"; 	// Weekly monthly base price (without set-up fee) for description in parentheses
		var bothSetUpFee = "45"; 					// set-up fee for Weekly
		var bothMonthlyPriceRenewalFee = "359.70"; 	// Renewal rate for Weekly monthly
		var bothMonthlyPriceRenewalFee2 = "359.70";
		var bothMonthlyPriceRenewalFee3 = "875.00";
		var bothMonthlyPriceRenewalFee4 = "84.95"; 	// Renewal fee for Weekly monthly with spanish add-on
		var bothMonthlyPriceRenewalFee5 = "84.95";
		var shippingHandlingFee = "20";
		break;	
}

function genPackageOptionMessages() {
	bothSavings_Annual = parseFloat(W_annual_reg) - parseFloat(bothAnnualPriceDiscount)
	if (regType == null || regType == "") {
		document.getElementById("PackageOptionMMGMsg").innerHTML = "<span class=\"ContentFeaturesBold\">\&nbsp\;\&nbsp\;Mortgage Market Guide</span>";
		document.getElementById("PackageOptionMMGWeeklyMsg").innerHTML = "<span class=\"ContentFeaturesBold\">\&nbsp\;\&nbsp\;W Newsletter </span>&nbsp;(current MMG subscribers <a href=\"http://www.mortgagemarketguide.com/membersonly/login/login.html\" class=\"FeaturesHyperlink\">click here</a> for discount pricing)";		
		document.getElementById("PackageOptionBothMsg").innerHTML = "<span class=\"ContentBold\">\&nbsp\;\&nbsp\;Both </span><span class=\"Content\">(</span><span class=\"ContentBoldGreen\">Save up to $"+bothSavings_Annual+"</span><span class=\"Content\"> when purchased in combination with the</span><span class=\"ContentBold\">\&nbsp\;\&nbsp\;Mortgage Market Guide</span><span class=\"Content\">)</span>";		
	}
	if (regType == "elliemae" || regType == "mti" || regType == "mbb" || regType == "carteret" || regType == "danacap" || regType == "mtgcoach" || regType == "deanm" || regType == "gmac" || regType == "mgic" || regType == "allied" || regType == "seminar" || regType == "mmc" || regType == "bw" || regType == "mtgpress" || regType == "special" || regType == "special2" || regType == "special3" || regType == "mttg" || regType == "mom" || regType == "titan") {
		document.getElementById("PackageOptionMMGMsg").innerHTML = "<span class=\"ContentFeaturesBold\">\&nbsp\;\&nbsp\;Mortgage Market Guide</span>";
		document.getElementById("PackageOptionMMGWeeklyMsg").innerHTML = "<span class=\"ContentFeaturesBold\">\&nbsp\;\&nbsp\;W Newsletter </span>&nbsp;(current MMG subscribers <a href=\"http://www.mortgagemarketguide.com/membersonly/login/login.html\" class=\"FeaturesHyperlink\">click here</a> for discount pricing)";	
		document.getElementById("PackageOptionBothMsg").innerHTML = "<span class=\"ContentBold\">\&nbsp\;\&nbsp\;Both </span>";
	}
	if (regType == "ctx") {
		document.getElementById("PackageOptionMMGMsg").innerHTML = "<span class=\"ContentFeaturesBold\">\&nbsp\;\&nbsp\;Mortgage Market Guide</span>";
	}
	if (regType == "myers") {
		document.getElementById("PackageOptionMMGMsg").innerHTML = "<span class=\"ContentFeaturesBold\">\&nbsp\;\&nbsp\;Mortgage Market Guide</span>";
	}
	if (regType == "ltbft") {
		document.getElementById("PackageOptionMMGMsg").innerHTML = "<span class=\"ContentFeaturesBold\">\&nbsp\;\&nbsp\;Mortgage Market Guide</span>";
	}
	if (regType == "prospect") {
		document.getElementById("PackageOptionMMGMsg").innerHTML = "<span class=\"ContentFeaturesBold\">\&nbsp\;\&nbsp\;Mortgage Market Guide</span>";
	}
	if (!regType) {
		document.getElementById("PackageOptionMMGMsg").innerHTML = "<span class=\"ContentFeaturesBold\">\&nbsp\;\&nbsp\;Mortgage Market Guide</span>";
		document.getElementById("PackageOptionMMGWeeklyMsg").innerHTML = "<span class=\"ContentFeaturesBold\">\&nbsp\;\&nbsp\;W Newsletter </span>&nbsp;(current MMG subscribers <a href=\"http://www.mortgagemarketguide.com/membersonly/login/login.html\" class=\"FeaturesHyperlink\">click here</a> for discount pricing)";		
		document.getElementById("PackageOptionBothMsg").innerHTML = "<span class=\"ContentBold\">\&nbsp\;\&nbsp\;Both </span><span class=\"Content\">(</span><span class=\"ContentBoldGreen\">Save up to $"+bothSavings_Annual+"</span><span class=\"Content\"> when purchased in combination with the</span><span class=\"ContentBold\"> Mortgage Market Guide</span><span class=\"Content\">)</span>";
	}	
}

function genMMGOptionMessages() {
	if (regType == null || regType == "") {
		document.getElementById("Price01").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + annualPrice+"</span>";
		document.getElementById("Price02").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPrice+"</span>";
		document.getElementById("Price03").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + monthlyPrice+"</span>";		
		document.getElementById("Price04").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + annualPriceBonus+"</span>";
		document.getElementById("Price05").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPriceBonus+"</span>";
		document.getElementById("Price06").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + monthlyPriceBonus+"</span>";
	}
	if (regType == "elliemae" || regType == "mti" || regType == "mbb" || regType == "carteret" || regType == "danacap" || regType == "mtgcoach" || regType == "deanm" || regType == "gmac" || regType == "mgic" || regType == "allied" || regType == "ctx" || regType == "seminar" || regType == "mmc" || regType == "bw" || regType == "mtgpress" || regType == "special" || regType == "special2" || regType == "special3" || regType == "mttg" || regType == "mom" || regType == "titan" || regType == "myers"|| regType == "ltbft"|| regType == "prospect") {
		if (parseFloat(annualPrice) >= parseFloat(MMG_annual_reg)) {
			document.getElementById("Price01").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + annualPrice+"</span>";
		}
		else {
			document.getElementById("Price01").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_annual_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + annualPrice+"</span>";
		}
		if (parseFloat(semiAnnualPrice) >= parseFloat(MMG_semiannual_reg)) {
			document.getElementById("Price02").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPrice+"</span>";
		}
		else {
			document.getElementById("Price02").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_semiannual_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPrice+"</span>";
		}
		if (parseFloat(monthlyPrice) >= parseFloat(MMG_monthly_reg)) {
			document.getElementById("Price03").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + monthlyPrice+"</span>";
		}
		else {
			document.getElementById("Price03").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_monthly_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + monthlyPrice+"</span>";
		}
		if (parseFloat(annualPriceBonus) >= parseFloat(MMG_annualbonus_reg)) {
			document.getElementById("Price04").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + annualPriceBonus+"</span>";
		}
		else {
			document.getElementById("Price04").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_annualbonus_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + annualPriceBonus+"</span>";
		}
		if (parseFloat(semiAnnualPriceBonus) >= parseFloat(MMG_semiannualbonus_reg)) {
			document.getElementById("Price05").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPriceBonus+"</span>";
		}
		else {
			document.getElementById("Price05").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_semiannualbonus_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPriceBonus+"</span>";
		}
		if (parseFloat(monthlyPriceBonus) >= parseFloat(MMG_monthlybonus_reg)) {
			document.getElementById("Price06").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + monthlyPriceBonus+"</span>";
		}
		else {
			document.getElementById("Price06").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_monthlybonus_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + monthlyPriceBonus+"</span>";
		}
	}
	if (!regType) {
		document.getElementById("Price01").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + annualPrice+"</span>";
		document.getElementById("Price02").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPrice+"</span>";
		document.getElementById("Price03").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + monthlyPrice+"</span>";		
		document.getElementById("Price04").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + annualPriceBonus+"</span>";
		document.getElementById("Price05").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPriceBonus+"</span>";
		document.getElementById("Price06").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + monthlyPriceBonus+"</span>";
	}
}
function genMMGWeeklyOptionMessages() { // set when page loads
	if (regType == null || regType == "") {
		document.getElementById("Price07").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign+bothAnnualPrice+"</span> ("+dollarSign+bothAnnualPriceSavings+" plus "+dollarSign+bothSetUpFee+" one-time set up fee.)";
		document.getElementById("Price08").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign+bothMonthlyPrice+"</span> ( First six months "+dollarSign+bothMonthlyPriceSavings+" plus "+dollarSign+bothSetUpFee+" one-time set up fee.) Renews at $359.70 per 6 months";		
	}
	if (regType == "elliemae" || regType == "mti" || regType == "mbb" || regType == "carteret" || regType == "danacap" || regType == "mtgcoach" || regType == "deanm" || regType == "gmac" || regType == "mgic" || regType == "allied") {
		if (parseFloat(bothAnnualPrice) < parseFloat(W_annual_reg)) {
			if ((parseFloat(bothAnnualPrice) == parseFloat(bothAnnualPriceDiscount)) && (parseFloat(bothAnnualPrice) == parseFloat(bothAnnualPriceSavings))) {
				var tempVar = parseFloat(W_annual_reg) - parseFloat(bothAnnualPrice);
				document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + W_annual_reg+"</span> <span class=\"ContentBoldGreen\">$"+bothAnnualPrice+" </span>(save $"+ tempVar +" off regular price, plus we waive the $"+bothSetUpFee+" set up fee)";
			}
			else {
				document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + W_annual_reg+"</span> <span class=\"ContentBoldGreen\">$"+bothAnnualPrice+" </span>($"+bothAnnualPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee)";
			}
		}
		else {
			document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldGreen\">$"+bothAnnualPrice+" </span>($"+bothAnnualPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee)";
		}
		if (parseFloat(bothMonthlyPrice) < parseFloat(W_semiannual_reg)) {
			document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + W_semiannual_reg+"</span> <span class=\"ContentBoldGreen\">$"+bothMonthlyPrice+" </span>(First six months $"+bothMonthlyPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee) Renews at $"+bothMonthlyPriceRenewalFee+" per 6 months";					
		}
		else {
			document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldGreen\">$"+bothMonthlyPrice+" </span>(First six months $"+W_semiannualnofee_reg+" plus $"+bothSetUpFee+" one-time set up fee) Renews at $"+bothMonthlyPriceRenewalFee+" per 6 months";
		}					
	}
	if (regType == "seminar" || regType == "mmc" || regType == "bw" || regType == "mtgpress" || regType == "special" || regType == "special2" || regType == "special3" || regType == "mttg" || regType == "mom" || regType == "titan") {
		var tempVar = parseFloat(W_annual_reg) - parseFloat(bothAnnualPrice);
		document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + W_annual_reg+"</span> <span class=\"ContentBoldGreen\">$"+bothAnnualPrice+" </span>(save $"+ tempVar +" off regular price, plus we waive the $"+bothSetUpFee+" set up fee)";
		document.getElementById("Price08").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign+bothMonthlyPrice+"</span> ( First six months "+dollarSign+bothMonthlyPriceSavings+" plus "+dollarSign+bothSetUpFee+" one-time set up fee.) Renews at $359.70 per 6 months";
	}
	if (!regType) {
		document.getElementById("Price07").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign+bothAnnualPrice+"</span> ("+dollarSign+bothAnnualPriceSavings+" plus "+dollarSign+bothSetUpFee+" one-time set up fee.)";
		document.getElementById("Price08").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign+bothMonthlyPrice+"</span> ( First six months "+dollarSign+bothMonthlyPriceSavings+" plus "+dollarSign+bothSetUpFee+" one-time set up fee.) Renews at $359.70 per 6 months";		
	}
}
function genMMGWeeklyDiscountMsg() {
	if ((document.registration.packageoption[2].checked == false) && (regType == null || regType == "" || regType == "elliemae" || regType == "mti" || regType == "mbb" || regType == "carteret" || regType == "danacap" || regType == "mtgcoach" || regType == "deanm" || regType == "gmac" || regType == "mgic" || regType == "seminar" || regType == "mmc" || regType == "bw" || regType == "mtgpress" || regType == "special" || regType == "special2" || regType == "special3" || regType == "mttg" || regType == "mom" || regType == "titan")) {
		document.getElementById("MMGWeeklyDiscountMsg").innerHTML = "<span class=\"ContentBoldRed\">DISCOUNTS APPLY WHEN PURCHASED WITH MMG</span>";
	}
	if (document.registration.packageoption[2].checked == false) {
		document.getElementById("MMGWeeklyDiscountMsg").innerHTML = "<span class=\"ContentBoldRed\">DISCOUNTS APPLY WHEN PURCHASED WITH MMG</span>";
	}
	else {
		document.getElementById("MMGWeeklyDiscountMsg").innerHTML = "";
	}	
}

function checkFormFields() {
	document.getElementById('TotalPrice1').innerHTML = document.registration.totalpriceformatted.value;
	document.getElementById('TotalPrice2').innerHTML = document.registration.totalpriceformatted.value;
	
	if (document.registration.packageoption[0].checked == true) { //MMG
		enableMMG();
		disableMMGWeekly();
	}	
	if (document.registration.packageoption[1].checked == true) { //W Newsletter
		if (savingsAlertAnswer != true) {
			displayAlert('specialsavings');
		}
		disableMMG();
		enableMMGWeekly();
		modifyPrices();
	}	
	if (document.registration.packageoption[2].checked == true) { //Both
		enableMMG();
		enableMMGWeekly();
		modifyPrices("MMG_MMGWeekly");
		modifyPrices();
	}	
}

var curPage = document.location.href;
curPage = curPage.substring(curPage.length, curPage.lastIndexOf("/") + 1);
if (curPage == "signup.html") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=elliemae") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=mti") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=carteret") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=danacap") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=mtgcoach") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=gmac") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=mgic") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=ctx") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=allied") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=seminar") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=special") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=special2") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=special3") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=mmc") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=bw") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=deanm") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=mtgpress") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=mttg") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=mom") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=titan") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=myers") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=ltbft") {
	setTimeout("checkFormFields()",2000);
}
if (curPage == "signup.html?type=prospect") {
	setTimeout("checkFormFields()",2000);
}
else {
	setTimeout("checkFormFields()",2000);
}

function checkPage() {
	if (curPage == "signup.html" || curPage == "signup.html?type=elliemae" || curPage == "signup.html?type=mti" || curPage == "signup.html?type=carteret" || curPage == "signup.html?type=danacap" || curPage == "signup.html?type=mtgcoach" || curPage == "signup.html?type=mgic" || curPage == "signup.html?type=gmac" || curPage == "signup.html?type=ctx" || curPage == "signup.html?type=allied" || curPage == "signup.html?type=seminar" || curPage == "signup.html?type=mmc" || curPage == "signup.html?type=bw" || curPage == "signup.html?type=special" || curPage == "signup.html?type=special2" || curPage == "signup.html?type=special3" || curPage == "signup.html?type=mttg" || curPage == "signup.html?type=mom" || curPage == "signup.html?type=titan" || curPage == "signup.html?type=myers" || curPage == "signup.html?type=ltbft"|| curPage == "signup.html?type=prospect") {
		return true;
	}
	else { window.location.href = "http://www.mortgagemarketguide.com/membership/signup.html";}
}

function CommaFormatted(amount) {
	var isDecimal = amount.indexOf(".");
	if (isDecimal == -1) {
		amount = amount + ".00";
	}
	var delimiter = ","; // replace comma if desired
	var a = amount.split('.',2)
	var d = a[1];
	var i = parseInt(a[0]);	
	if (isNaN(i)) {
		return '';
	}	
	var minus = '';
	if (i < 0) {
		minus = '-';
	}	
	i = Math.abs(i);
	var n = new String(i);
	var a = [];
	while (n.length > 3) {
		var nn = n.substr(n.length-3);
		a.unshift(nn);
		n = n.substr(0,n.length-3);
	}	
	if (n.length > 0) {
		a.unshift(n);
	}	
	n = a.join(delimiter);
	if (d.length == "1") {
		d = d + "0";
	}	
	if (d.length < 1) {
		amount = n;
	} else {
		amount = n + '.' + d;
	}
	amount = minus + amount;
	return "$" + amount;
}

function modifySubscriptionForm(option) {
	if (option == "MMG") { //Mortgage Market Guide
		enableMMG();
		disableMMGWeekly();
		genMMGWeeklyDiscountMsg();
		clearMsg();
		displayMMGMsg();
		enableSteps();
		modifyPrices(option);
		setPrices(option);
	}
	if (option == "MMGWeekly") { //W Newsletter
		if (showAlert == true) {
			displayAlert('specialsavings');
		}
		if (!document.registration.addalert[0].checked) {
			resetMMGPackageMsg();
			enableMMGWeekly();
			genMMGWeeklyDiscountMsg();
			disableMMG();
			displayWeeklyMsg();
			disableSteps();
			modifyPrices(option);
			setPrices(option);
		}
	}
	if (option == "MMG_MMGWeekly") { //Both
		if (!document.registration.addalert[0].checked) {
			enableMMG();
			enableMMGWeekly();
			genMMGWeeklyDiscountMsg();
			clearMsg();
			displayBothMsg();		
			enableSteps();
			modifyPrices(option);
			modifyBothPrices();
		}
		if (document.registration.addalert[0].checked) {
			enableMMGWeekly();
			genMMGWeeklyDiscountMsg();
			clearMsg();		
			enableSteps();
			modifyPrices(option);
			modifyAllPrices();
		}
	}
}

function addAlertNum(option) {
	if (option == "one" && document.getElementById("AlertNumAlert").innerHTML != "" && !document.registration.addalert[0].checked) {
		document.getElementById("AlertNumAlert").innerHTML = "";
	}
	if (document.registration.addalert[0].checked && !document.registration.addalert[1].checked) { //add 1 additional alert number
		displayAlertNumMsg(option);
		if (!option == 'two') {
			disableAddAlert_2();
		}
		disableAddAlert_2_phone()
		preSetPrices();
		modifyAllPrices();
		resetMMGPackageMsg();
		document.getElementById("PackageOptionMMGMsg").innerHTML += "&nbsp\;&nbsp\;&nbsp\;&nbsp\;&nbsp\;&nbsp\;<span class='ContentBoldRed'>YOU HAVE ADDED ONE EXTRA ALERT NUMBER</span>";
	}
	if (document.registration.addalert[0].checked && document.registration.addalert[1].checked) { //add 2 additional alert numbers
		displayAlertNumMsg(option);
		preSetPrices();
		modifyAllPrices();
		resetMMGPackageMsg();
		document.getElementById("PackageOptionMMGMsg").innerHTML += "&nbsp\;&nbsp\;&nbsp\;&nbsp\;&nbsp\;&nbsp\;<span class='ContentBoldRed'>YOU HAVE ADDED TWO EXTRA ALERT NUMBERS</span>";
	}
	if (!document.registration.addalert[0].checked) {
		preSetPrices();
		modifyBothPrices();
		resetAddAlertNums();
		resetMMGPackageMsg();
	}
}

function preSetPrices() {
	var option;
	for (i = 0; i < document.registration.packageoption.length; i++){
		if(document.registration.packageoption[i].checked) {
			option = document.registration.packageoption[i].value;
		}
	}
	setPrices(option);
}

function setPrices(option) {
	if (option == "MMG") {
		if (document.registration.mmg[0].checked) { //Annually
			updateMMGAnnualPrice();
			if (document.registration.addalert[0].checked && !document.registration.addalert[1].checked) {
				updateMMGAnnualPrice_addalert1();
			}
			if (document.registration.addalert[1].checked && document.registration.addalert[0].checked) {
				updateMMGAnnualPrice_addalert2();
			}
		}
		if (document.registration.mmg[2].checked) { //Semi-Annually
			updateMMGSemiAnnualPrice();
			if (document.registration.addalert[0].checked && !document.registration.addalert[1].checked) {
				updateMMGSemiAnnualPrice_addalert1();
			}
			if (document.registration.addalert[1].checked && document.registration.addalert[0].checked) {
				updateMMGSemiAnnualPrice_addalert2();
			}
		}
		if (document.registration.mmg[4].checked) { //Monthly
			updateMMGMonthlyPrice();
			if (document.registration.addalert[0].checked && !document.registration.addalert[1].checked) {
				updateMMGMonthlyPrice_addalert1();
			}
			if (document.registration.addalert[1].checked && document.registration.addalert[0].checked) {
				updateMMGMonthlyPrice_addalert2();
			}
		}
		if (document.registration.mmg[1].checked) { //Annual Bonus
			updateMMGAnnualBonusPrice();
			if (document.registration.addalert[0].checked && !document.registration.addalert[1].checked) {
				updateMMGAnnualBonusPrice_addalert1();
			}
			if (document.registration.addalert[1].checked && document.registration.addalert[0].checked) {
				updateMMGAnnualBonusPrice_addalert2();
			}
		}
		if (document.registration.mmg[3].checked) { //Semi-Annual Bonus
			updateMMGSemiAnnualBonusPrice();
			if (document.registration.addalert[0].checked && !document.registration.addalert[1].checked) {
				updateMMGSemiAnnualBonusPrice_addalert1();
			}
			if (document.registration.addalert[1].checked && document.registration.addalert[0].checked) {
				updateMMGSemiAnnualBonusPrice_addalert2();
			}
		}
		
		if (document.registration.mmg[5].checked) { //Monthly Bonus
			updateMMGMonthlyBonusPrice();
			if (document.registration.addalert[0].checked && !document.registration.addalert[1].checked) {
				updateMMGMonthlyBonusPrice_addalert1();
			}
			if (document.registration.addalert[1].checked && document.registration.addalert[0].checked) {
				updateMMGMonthlyBonusPrice_addalert2();
			}
		}		
	}
	if (option == "MMGWeekly") {
		if (document.registration.mmgweekly[0].checked) { //Annually
			updateBothAnnualPrice();	
		}
		if (document.registration.mmgweekly[1].checked) { //Monthly
			updateBothMonthlyPrice();
		}			
	}
}

function updateMMGPrice(option) {
	var alertSelected;
	var price;
	var rawPrice;
	alertSelected = getAlertNumSelected();
	alertStatus = getAlertNumStatus();
	if (alertStatus == 'disabled') {
		resetAddAlertNums();
	}
	if (option == "Annually" || option == "Annually-Seminar") {
		if (document.registration.packageoption[0].checked && alertSelected == 'none') {
			rawPrice = annualPrice;
		}
		if (document.registration.packageoption[0].checked && alertSelected == 'one') {
			rawPrice = parseFloat(annualPrice) + parseFloat(annualAlertNum1Orig);
			
		} 
		if (document.registration.packageoption[0].checked && alertSelected == 'two') {
			rawPrice = parseFloat(annualPrice) + parseFloat(annualAlertNum1Orig) + parseFloat(annualAlertNum2Orig);
			
		}
		if (document.registration.packageoption[2].checked) {
			rawPrice = annualPriceDiscount;
		}
		if (document.registration.packageoption[2].checked && alertSelected == 'one') {
			rawPrice = parseFloat(annualPriceDiscount) + parseFloat(annualAlertNum1Orig);
			
		} 
		if (document.registration.packageoption[2].checked && alertSelected == 'two') {
			rawPrice = parseFloat(annualPriceDiscount) + parseFloat(annualAlertNum1Orig) + parseFloat(annualAlertNum2Orig);
		}
		updateTotalPrice(rawPrice);		
	}
	if (option == "Annually_bonus") {
		if (document.registration.packageoption[0].checked && alertSelected == 'none') {
			rawPrice = annualPriceBonus;
		}
		if (document.registration.packageoption[0].checked && alertSelected == 'one') {
			rawPrice = parseFloat(annualPriceBonus) + parseFloat(annualAlertNum1Orig);
			
		} 
		if (document.registration.packageoption[0].checked && alertSelected == 'two') {
			rawPrice = parseFloat(annualPriceBonus) + parseFloat(annualAlertNum1Orig) + parseFloat(annualAlertNum2Orig);
			
		}
		if (document.registration.packageoption[2].checked) {
			rawPrice = annualPriceBonusDiscount;
		}
		if (document.registration.packageoption[2].checked && alertSelected == 'one') {
			rawPrice = parseFloat(annualPriceBonusDiscount) + parseFloat(annualAlertNum1Orig);
			
		} 
		if (document.registration.packageoption[2].checked && alertSelected == 'two') {
			rawPrice = parseFloat(annualPriceBonusDiscount) + parseFloat(annualAlertNum1Orig) + parseFloat(annualAlertNum2Orig);
		}
		updateTotalPrice(rawPrice);			
	}
	if (option == "Semi-Annually") {
		if (document.registration.packageoption[0].checked && alertSelected == 'none') {
			rawPrice = semiAnnualPrice;
		}
		if (document.registration.packageoption[0].checked && alertSelected == 'one') {
			rawPrice = parseFloat(semiAnnualPrice) + parseFloat(semiannualAlertNum1Orig);
			
		} 
		if (document.registration.packageoption[0].checked && alertSelected == 'two') {
			rawPrice = parseFloat(semiAnnualPrice) + parseFloat(semiannualAlertNum1Orig) + parseFloat(semiannualAlertNum2Orig);
			
		}
		if (document.registration.packageoption[2].checked) {
			rawPrice = semiAnnualPriceDiscount;
		}
		if (document.registration.packageoption[2].checked && alertSelected == 'one') {
			rawPrice = parseFloat(semiAnnualPriceDiscount) + parseFloat(semiannualAlertNum1Orig);
			
		} 
		if (document.registration.packageoption[2].checked && alertSelected == 'two') {
			rawPrice = parseFloat(semiAnnualPriceDiscount) + parseFloat(semiannualAlertNum1Orig) + parseFloat(semiannualAlertNum2Orig);
		}
		updateTotalPrice(rawPrice);			
	}
	if (option == "Semi-Annually_bonus") {
		if (document.registration.packageoption[0].checked && alertSelected == 'none') {
			rawPrice = semiAnnualPriceBonus;
		}
		if (document.registration.packageoption[0].checked && alertSelected == 'one') {
			rawPrice = parseFloat(semiAnnualPriceBonus) + parseFloat(semiannualAlertNum1Orig);
			
		} 
		if (document.registration.packageoption[0].checked && alertSelected == 'two') {
			rawPrice = parseFloat(semiAnnualPriceBonus) + parseFloat(semiannualAlertNum1Orig) + parseFloat(semiannualAlertNum2Orig);
			
		}
		if (document.registration.packageoption[2].checked) {
			rawPrice = semiAnnualPriceBonusDiscount;
		}
		if (document.registration.packageoption[2].checked && alertSelected == 'one') {
			rawPrice = parseFloat(semiAnnualPriceBonusDiscount) + parseFloat(semiannualAlertNum1Orig);
			
		} 
		if (document.registration.packageoption[2].checked && alertSelected == 'two') {
			rawPrice = parseFloat(semiAnnualPriceBonusDiscount) + parseFloat(semiannualAlertNum1Orig) + parseFloat(semiannualAlertNum2Orig);
		}
		updateTotalPrice(rawPrice);			
	}
	if (option == "Monthly") {
		if (document.registration.packageoption[0].checked && alertSelected == 'none') {
			rawPrice = monthlyPrice;
		}
		if (document.registration.packageoption[0].checked && alertSelected == 'one') {
			rawPrice = parseFloat(monthlyPrice) + parseFloat(monthlyAlertNum1Orig);
			
		} 
		if (document.registration.packageoption[0].checked && alertSelected == 'two') {
			rawPrice = parseFloat(monthlyPrice) + parseFloat(monthlyAlertNum1Orig) + parseFloat(monthlyAlertNum2Orig);
			
		}
		if (document.registration.packageoption[2].checked) {
			rawPrice = monthlyPriceDiscount;
		}
		if (document.registration.packageoption[2].checked && alertSelected == 'one') {
			rawPrice = parseFloat(monthlyPriceDiscount) + parseFloat(monthlyAlertNum1Orig);
			
		} 
		if (document.registration.packageoption[2].checked && alertSelected == 'two') {
			rawPrice = parseFloat(monthlyPriceDiscount) + parseFloat(monthlyAlertNum1Orig) + parseFloat(monthlyAlertNum2Orig);
		}
		updateTotalPrice(rawPrice);			
	}
	if (option == "Monthly_bonus") {
		if (document.registration.packageoption[0].checked && alertSelected == 'none') {
			rawPrice = monthlyPriceBonus;
		}
		if (document.registration.packageoption[0].checked && alertSelected == 'one') {
			rawPrice = parseFloat(monthlyPriceBonus) + parseFloat(monthlyAlertNum1Orig);
			
		} 
		if (document.registration.packageoption[0].checked && alertSelected == 'two') {
			rawPrice = parseFloat(monthlyPriceBonus) + parseFloat(monthlyAlertNum1Orig) + parseFloat(monthlyAlertNum2Orig);
			
		}
		if (document.registration.packageoption[2].checked) {
			rawPrice = monthlyPriceBonusDiscount;
		}
		if (document.registration.packageoption[2].checked && alertSelected == 'one') {
			rawPrice = parseFloat(monthlyPriceBonusDiscount) + parseFloat(monthlyAlertNum1Orig);
			
		} 
		if (document.registration.packageoption[2].checked && alertSelected == 'two') {
			rawPrice = parseFloat(monthlyPriceBonusDiscount) + parseFloat(monthlyAlertNum1Orig) + parseFloat(monthlyAlertNum2Orig);
		}
		updateTotalPrice(rawPrice);			
	}
		modifyBothPrices();
}

function updateMMGWeeklyPrice(option) {
	
	if (document.registration.mmgweekly[0].checked) { // Update Annual Price
		if (document.registration.packageoption[1].checked) {
			updateTotalPrice(bothAnnualPrice);
			modifyPrices("MMGWeekly");
		}
		if (document.registration.packageoption[2].checked) {
			updateTotalPrice(bothAnnualPriceDiscount);
			modifyPrices("MMG_MMGWeekly");
		}
	}
	if (document.registration.mmgweekly[1].checked) { // Update Monthly Price
		if (document.registration.packageoption[1].checked) {
			updateTotalPrice(bothMonthlyPrice);
			modifyPrices("MMGWeekly");
		}
		if (document.registration.packageoption[2].checked) {
			updateTotalPrice(bothMonthlyPriceDiscount);
			modifyPrices("MMG_MMGWeekly");
		}
	}	
	
	//ORIGINAL PRICING DISCOUNTS, BEFORE ADDING SPANISH
	
	if (option == "MMGWAnnually") {
		if (document.registration.packageoption[1].checked) {
			updateTotalPrice(bothAnnualPrice);
		}
		if (document.registration.packageoption[2].checked) {
			updateTotalPrice(bothAnnualPriceDiscount);
		}			
	}
	if (option == "MMGWMonthly") {
		if (document.registration.packageoption[1].checked) {
			updateTotalPrice(bothMonthlyPrice);
		}		
		if (document.registration.packageoption[2].checked) {
			updateTotalPrice(bothMonthlyPriceDiscount);
		}				
	}
	modifyBothPrices();
}

function modifyPrices(option) {
	// MMG selected ONLY and not a special page
	if (option == "MMG" && (regType == null || regType == "")) { 
		document.getElementById('Price01').innerHTML = "<span class=\"ContentBoldGreen\">$"+annualPrice+" </span>";
		document.getElementById('Price02').innerHTML = "<span class=\"ContentBoldGreen\">$"+semiAnnualPrice+" </span>";
		document.getElementById('Price03').innerHTML = "<span class=\"ContentBoldGreen\">$"+monthlyPrice+" </span>";
		document.getElementById('Price04').innerHTML = "<span class=\"ContentBoldGreen\">$"+annualPriceBonus+" </span>";
		document.getElementById('Price05').innerHTML = "<span class=\"ContentBoldGreen\">$"+semiAnnualPriceBonus+" </span>";
		document.getElementById('Price06').innerHTML = "<span class=\"ContentBoldGreen\">$"+monthlyPriceBonus+" </span>";
		document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldGreen\">$"+bothAnnualPrice+" </span>($"+bothAnnualPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee)";
		document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldGreen\">$"+bothMonthlyPrice+" </span>(First six months $"+bothMonthlyPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee) Renews at $"+bothMonthlyPriceRenewalFee+" per 6 months";				
	}
	// MMG slected ONLY and special pages
	if (option == "MMG" && (regType == "elliemae" || regType == "mti" || regType == "mbb" || regType == "carteret" || regType == "danacap" || regType == "mtgcoach" || regType == "deanm" || regType == "gmac" || regType == "mgic" || regType == "ctx" || regType == "allied" || regType == "myers" || regType == "ltbft" || regType == "prospect")) {
		if (parseFloat(annualPrice) >= parseFloat(MMG_annual_reg)) {
			document.getElementById("Price01").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + annualPrice+"</span>";
		}
		else {
			document.getElementById("Price01").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_annual_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + annualPrice+"</span>";
		}
		if (parseFloat(semiAnnualPrice) >= parseFloat(MMG_semiannual_reg)) {
			document.getElementById("Price02").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPrice+"</span>";
		}
		else {
			document.getElementById("Price02").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_semiannual_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPrice+"</span>";
		}
		if (parseFloat(monthlyPrice) >= parseFloat(MMG_monthly_reg)) {
			document.getElementById("Price03").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + monthlyPrice+"</span>";
		}
		else {
			document.getElementById("Price03").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_monthly_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + monthlyPrice+"</span>";
		}
		if (parseFloat(annualPriceBonus) >= parseFloat(MMG_annualbonus_reg)) {
			document.getElementById("Price04").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + annualPriceBonus+"</span>";
		}
		else {
			document.getElementById("Price04").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_annualbonus_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + annualPriceBonus+"</span>";
		}
		if (parseFloat(semiAnnualPriceBonus) >= parseFloat(MMG_semiannualbonus_reg)) {
			document.getElementById("Price05").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPriceBonus+"</span>";
		}
		else {
			document.getElementById("Price05").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_semiannualbonus_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPriceBonus+"</span>";
		}
		if (parseFloat(monthlyPriceBonus) >= parseFloat(MMG_monthlybonus_reg)) {
			document.getElementById("Price06").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + monthlyPriceBonus+"</span>";
		}
		else {
			document.getElementById("Price06").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_monthlybonus_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + monthlyPriceBonus+"</span>";
		}
		if (parseFloat(bothAnnualPrice) < parseFloat(W_annual_reg)) {
			document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + W_annual_reg+"</span> <span class=\"ContentBoldGreen\">$"+bothAnnualPrice+" </span>($"+bothAnnualPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee)";
		}
		else {
			document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldGreen\">$"+bothAnnualPrice+" </span>($"+bothAnnualPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee)";
		}
		if (parseFloat(bothMonthlyPrice) < parseFloat(W_semiannual_reg)) {
			document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + W_semiannual_reg+"</span> <span class=\"ContentBoldGreen\">$"+bothMonthlyPrice+" </span>(First six months $"+bothMonthlyPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee) Renews at $"+bothMonthlyPriceRenewalFee+" per 6 months";					
		}
		else {
			document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldGreen\">$"+bothMonthlyPrice+" </span>(First six months $"+W_semiannualnofee_reg+" plus $"+bothSetUpFee+" one-time set up fee) Renews at $"+bothMonthlyPriceRenewalFee+" per 6 months";
		}
	}
	// No Set-Up Fee for W Annual
	if (option == "MMG" && (regType == "seminar" || regType == "mmc" || regType == "bw" || regType == "mtgpress" || regType == "special" || regType == "special2" || regType == "special3" || regType == "mttg" || regType == "mom" || regType == "titan")) {
		var tempVar = parseFloat(W_annual_reg) - parseFloat(bothAnnualPrice);
		document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + W_annual_reg+"</span> <span class=\"ContentBoldGreen\">$"+bothAnnualPrice+" </span>(save $"+ tempVar +" off regular price, plus we waive the $"+bothSetUpFee+" set up fee)";
		document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldGreen\">$"+bothMonthlyPrice+" </span>(First six months $"+bothMonthlyPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee) Renews at $"+bothMonthlyPriceRenewalFee+" per 6 months";
	}
	if (option == "MMG" && !regType) { 
		document.getElementById('Price01').innerHTML = "<span class=\"ContentBoldGreen\">$"+annualPrice+" </span>";
		document.getElementById('Price02').innerHTML = "<span class=\"ContentBoldGreen\">$"+semiAnnualPrice+" </span>";
		document.getElementById('Price03').innerHTML = "<span class=\"ContentBoldGreen\">$"+monthlyPrice+" </span>";
		document.getElementById('Price04').innerHTML = "<span class=\"ContentBoldGreen\">$"+annualPriceBonus+" </span>";
		document.getElementById('Price05').innerHTML = "<span class=\"ContentBoldGreen\">$"+semiAnnualPriceBonus+" </span>";
		document.getElementById('Price06').innerHTML = "<span class=\"ContentBoldGreen\">$"+monthlyPriceBonus+" </span>";
		document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldGreen\">$"+bothAnnualPrice+" </span>($"+bothAnnualPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee)";
		document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldGreen\">$"+bothMonthlyPrice+" </span>(First six months $"+bothMonthlyPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee) Renews at $"+bothMonthlyPriceRenewalFee+" per 6 months";				
	}
	
	// W Newsletter selected ONLY and not a special page	
	if (option == "MMGWeekly" && (regType == null || regType == "" || regType == "mmg")) {
		document.getElementById('Price01').innerHTML = "<span class=\"ContentBoldGreen\">$"+annualPrice+" </span>";
		document.getElementById('Price02').innerHTML = "<span class=\"ContentBoldGreen\">$"+semiAnnualPrice+" </span>";
		document.getElementById('Price03').innerHTML = "<span class=\"ContentBoldGreen\">$"+monthlyPrice+" </span>";
		document.getElementById('Price04').innerHTML = "<span class=\"ContentBoldGreen\">$"+annualPriceBonus+" </span>";
		document.getElementById('Price05').innerHTML = "<span class=\"ContentBoldGreen\">$"+semiAnnualPriceBonus+" </span>";
		document.getElementById('Price06').innerHTML = "<span class=\"ContentBoldGreen\">$"+monthlyPriceBonus+" </span>";
		document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldGreen\">$"+bothAnnualPrice+" </span>($"+bothAnnualPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee)";
		document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldGreen\">$"+bothMonthlyPrice+" </span>(First six months $"+bothMonthlyPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee) Renews at $"+bothMonthlyPriceRenewalFee+" per 6 months";		
	}
	
	// W Newsletter selected ONLY and special pages
	if (option == "MMGWeekly" && (regType == "elliemae" || regType == "mti" || regType == "mbb" || regType == "carteret" || regType == "danacap" || regType == "mtgcoach" || regType == "deanm" || regType == "gmac" || regType == "mgic" || regType == "allied")) {
		if (parseFloat(annualPrice) >= parseFloat(MMG_annual_reg)) {
			document.getElementById("Price01").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + annualPrice+"</span>";
		}
		else {
			document.getElementById("Price01").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_annual_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + annualPrice+"</span>";
		}
		if (parseFloat(semiAnnualPrice) >= parseFloat(MMG_semiannual_reg)) {
			document.getElementById("Price02").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPrice+"</span>";
		}
		else {
			document.getElementById("Price02").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_semiannual_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPrice+"</span>";
		}
		if (parseFloat(monthlyPrice) >= parseFloat(MMG_monthly_reg)) {
			document.getElementById("Price03").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + monthlyPrice+"</span>";
		}
		else {
			document.getElementById("Price03").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_monthly_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + monthlyPrice+"</span>";
		}
		if (parseFloat(annualPriceBonus) >= parseFloat(MMG_annualbonus_reg)) {
			document.getElementById("Price04").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + annualPriceBonus+"</span>";
		}
		else {
			document.getElementById("Price04").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_annualbonus_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + annualPriceBonus+"</span>";
		}
		if (parseFloat(semiAnnualPriceBonus) >= parseFloat(MMG_semiannualbonus_reg)) {
			document.getElementById("Price05").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPriceBonus+"</span>";
		}
		else {
			document.getElementById("Price05").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_semiannualbonus_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPriceBonus+"</span>";
		}
		if (parseFloat(monthlyPriceBonus) >= parseFloat(MMG_monthlybonus_reg)) {
			document.getElementById("Price06").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + monthlyPriceBonus+"</span>";
		}
		else {
			document.getElementById("Price06").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_monthlybonus_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + monthlyPriceBonus+"</span>";
		}
		if (parseFloat(bothAnnualPrice) < parseFloat(W_annual_reg)) {
			document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + W_annual_reg+"</span> <span class=\"ContentBoldGreen\">$"+bothAnnualPrice+" </span>($"+bothAnnualPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee)";
		}
		else {
			document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldGreen\">$"+bothAnnualPrice+" </span>($"+bothAnnualPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee)";
		}
		if (parseFloat(bothMonthlyPrice) < parseFloat(W_semiannual_reg)) {
			document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + W_semiannual_reg+"</span> <span class=\"ContentBoldGreen\">$"+bothMonthlyPrice+" </span>(First six months $"+bothMonthlyPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee) Renews at $"+bothMonthlyPriceRenewalFee+" per 6 months";					
		}
		else {
			document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldGreen\">$"+bothMonthlyPrice+" </span>(First six months $"+W_semiannualnofee_reg+" plus $"+bothSetUpFee+" one-time set up fee) Renews at $"+bothMonthlyPriceRenewalFee+" per 6 months";
		}
	}
	// No Set-Up Fee for W Annual
	if (option == "MMGWeekly" && (regType == "seminar" || regType == "mmc" || regType == "bw" || regType == "mtgpress" || regType == "special" || regType == "special2" || regType == "special3" || regType == "mttg" || regType == "mom" || regType == "titan")) {
		var tempVar = parseFloat(W_annual_reg) - parseFloat(bothAnnualPrice);
		document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + W_annual_reg+"</span> <span class=\"ContentBoldGreen\">$"+bothAnnualPrice+" </span>(save $"+ tempVar +" off regular price, plus we waive the $"+bothSetUpFee+" set up fee)";
		document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldGreen\">$"+bothMonthlyPrice+" </span>(First six months $"+bothMonthlyPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee) Renews at $"+bothMonthlyPriceRenewalFee+" per 6 months";
	}
	if (option == "MMGWeekly" && !regType) {
		document.getElementById('Price01').innerHTML = "<span class=\"ContentBoldGreen\">$"+annualPrice+" </span>";
		document.getElementById('Price02').innerHTML = "<span class=\"ContentBoldGreen\">$"+semiAnnualPrice+" </span>";
		document.getElementById('Price03').innerHTML = "<span class=\"ContentBoldGreen\">$"+monthlyPrice+" </span>";
		document.getElementById('Price04').innerHTML = "<span class=\"ContentBoldGreen\">$"+annualPriceBonus+" </span>";
		document.getElementById('Price05').innerHTML = "<span class=\"ContentBoldGreen\">$"+semiAnnualPriceBonus+" </span>";
		document.getElementById('Price06').innerHTML = "<span class=\"ContentBoldGreen\">$"+monthlyPriceBonus+" </span>";
		document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldGreen\">$"+bothAnnualPrice+" </span>($"+bothAnnualPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee)";
		document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldGreen\">$"+bothMonthlyPrice+" </span>(First six months $"+bothMonthlyPriceSavings+" plus $"+bothSetUpFee+" one-time set up fee) Renews at $"+bothMonthlyPriceRenewalFee+" per 6 months";		
	}	
	
	// Both selected and not a special page
	if (option == "MMG_MMGWeekly" && (regType == null || regType == "" || regType == "mmg")) {
		document.getElementById('Price01').innerHTML = "<span class=\"ContentBoldGreen\">$"+annualPrice+" </span>";
		document.getElementById('Price02').innerHTML = "<span class=\"ContentBoldGreen\">$"+semiAnnualPrice+" </span>";
		document.getElementById('Price03').innerHTML = "<span class=\"ContentBoldGreen\">$"+monthlyPrice+" </span>";
		document.getElementById('Price04').innerHTML = "<span class=\"ContentBoldGreen\">$"+annualPriceBonus+" </span>";
		document.getElementById('Price05').innerHTML = "<span class=\"ContentBoldGreen\">$"+semiAnnualPriceBonus+" </span>";
		document.getElementById('Price06').innerHTML = "<span class=\"ContentBoldGreen\">$"+monthlyPriceBonus+" </span>";		
		document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldStrikeThrough\">$"+bothAnnualPrice+"</span> <span class=\"ContentBoldGreen\">$"+bothAnnualPriceDiscount+"</span> (and we waive the $"+bothSetUpFee+" set up fee.)";					
		var bothSavings = parseFloat(W_semiannualnofee_reg) - parseFloat(bothMonthlyPriceDiscount);
		document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldStrikeThrough\">$"+W_semiannual_reg+"</span> <span class=\"ContentBoldGreen\">$"+bothMonthlyPriceDiscount+" </span>(Save $"+bothSavings+" off first six months regular price of $"+W_semiannualnofee_reg+" and we waive the $"+bothSetUpFee+" setup fee) Renews at $"+bothMonthlyPriceRenewalFee2+" per 6 months";
		//document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldStrikeThrough\">$"+bothMonthlyPrice+"</span> <span class=\"ContentBoldGreen\">$"+bothMonthlyPriceDiscount+" </span>(First six months $"+bothMonthlyPriceSavings+" plus we'll waive the $"+bothSetUpFee+" one-time setup fee) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Renews at $"+bothMonthlyPriceRenewalFee2;
	}
	
	// Both selected and special pages
	if (option == "MMG_MMGWeekly" && (regType == "elliemae" || regType == "mti" || regType == "mbb" || regType == "carteret" || regType == "danacap" || regType == "mtgcoach" || regType == "deanm" || regType == "gmac" || regType =="mgic" || regType == "allied")) {
		if (parseFloat(annualPrice) >= parseFloat(MMG_annual_reg)) {
			document.getElementById("Price01").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + annualPrice+"</span>";
		}
		else {
			document.getElementById("Price01").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_annual_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + annualPrice+"</span>";
		}
		if (parseFloat(semiAnnualPrice) >= parseFloat(MMG_semiannual_reg)) {
			document.getElementById("Price02").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPrice+"</span>";
		}
		else {
			document.getElementById("Price02").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_semiannual_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPrice+"</span>";
		}
		if (parseFloat(monthlyPrice) >= parseFloat(MMG_monthly_reg)) {
			document.getElementById("Price03").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + monthlyPrice+"</span>";
		}
		else {
			document.getElementById("Price03").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_monthly_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + monthlyPrice+"</span>";
		}
		if (parseFloat(annualPriceBonus) >= parseFloat(MMG_annualbonus_reg)) {
			document.getElementById("Price04").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + annualPriceBonus+"</span>";
		}
		else {
			document.getElementById("Price04").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_annualbonus_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + annualPriceBonus+"</span>";
		}
		if (parseFloat(semiAnnualPriceBonus) >= parseFloat(MMG_semiannualbonus_reg)) {
			document.getElementById("Price05").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPriceBonus+"</span>";
		}
		else {
			document.getElementById("Price05").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_semiannualbonus_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + semiAnnualPriceBonus+"</span>";
		}
		if (parseFloat(monthlyPriceBonus) >= parseFloat(MMG_monthlybonus_reg)) {
			document.getElementById("Price06").innerHTML = "<span class=\"ContentBoldGreen\">"+dollarSign + monthlyPriceBonus+"</span>";
		}
		else {
			document.getElementById("Price06").innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + MMG_monthlybonus_reg+"</span> <span class=\"ContentBoldGreen\">"+dollarSign + monthlyPriceBonus+"</span>";
		}
		var bothSavings = parseFloat(W_semiannualnofee_reg) - parseFloat(bothMonthlyPriceDiscount);
		document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldStrikeThrough\">$"+W_annual_reg+"</span> <span class=\"ContentBoldGreen\">$"+bothAnnualPriceDiscount+"</span> ($"+bothAnnualPriceDiscount+" plus we'll waive the $"+bothSetUpFee+" one-time set up fee)";		
		document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldStrikeThrough\">$"+W_semiannual_reg+"</span> <span class=\"ContentBoldGreen\">$"+bothMonthlyPriceDiscount+" </span>(Save $"+bothSavings+" off first six months regular price of $"+W_semiannualnofee_reg+" and we waive the $"+bothSetUpFee+" setup fee) Renews at $"+bothMonthlyPriceRenewalFee2+" per 6 months";
		//document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldStrikeThrough\">$"+W_semiannual_reg+"</span> <span class=\"ContentBoldGreen\">$"+bothMonthlyPriceDiscount+" </span>(First six months $"+bothMonthlyPriceSavings+" plus we'll waive the $"+bothSetUpFee+" one-time setup fee) Renews at $"+bothMonthlyPriceRenewalFee2;		
	}
	// No Set-Up Fee for W Annual
	if (option == "MMG_MMGWeekly" && (regType == "seminar" || regType == "mmc" || regType == "bw" || regType == "mtgpress" || regType == "special" || regType == "special2" || regType == "special3" || regType == "mttg" || regType == "mom" || regType == "titan")) {
		var tempVar = parseFloat(W_annual_reg) - parseFloat(bothAnnualPriceDiscount);
		var bothSavings = parseFloat(W_semiannualnofee_reg) - parseFloat(bothMonthlyPriceDiscount);
		document.getElementById('Price07').innerHTML = "<span class=\"ContentBoldStrikethrough\">"+dollarSign + W_annual_reg+"</span> <span class=\"ContentBoldGreen\">$"+bothAnnualPriceDiscount+" </span>(save $"+ tempVar +" off regular price, plus we waive the $"+bothSetUpFee+" set up fee)";
		document.getElementById('Price08').innerHTML = "<span class=\"ContentBoldStrikeThrough\">$"+W_semiannual_reg+"</span> <span class=\"ContentBoldGreen\">$"+bothMonthlyPriceDiscount+" </span>(Save $"+bothSavings+" off first six months regular price of $"+W_semiannualnofee_reg+" and we waive the $"+bothSetUpFee+" setup fee) Renews at $"+bothMonthlyPriceRenewalFee2+" per 6 months";
	}
}

function calculateSavings(retail,savings) {
	var retail = parseInt(retail);
	var savings = parseInt(savings);
	return retail - savings;
}

function modifyBothPrices() {
	//Check all MMG options with W Newsletter Annual option		
	var alertSelected;
	alertSelected = getAlertNumSelected();
	if (alertSelected != 'none') {
		modifyAllPrices();
	} 
	if (document.registration.packageoption[2].checked && alertSelected == 'none') {
		//
		if (document.registration.mmg_a.checked && document.registration.mmgweekly[0].checked) { //Annually
			var rawPrice = parseFloat(annualPriceDiscount) + parseFloat(bothAnnualPriceDiscount);
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg_s.checked && document.registration.mmgweekly[0].checked) { //Semi-Annually
			var rawPrice = parseFloat(semiAnnualPriceDiscount) + parseFloat(bothAnnualPriceDiscount);
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg_m.checked && document.registration.mmgweekly[0].checked) { //Monthly
			var rawPrice = parseFloat(monthlyPriceDiscount) + parseFloat(bothAnnualPriceDiscount);
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg_ab.checked && document.registration.mmgweekly[0].checked) { //Annual Bonus
			var rawPrice = parseFloat(annualPriceBonusDiscount) + parseFloat(bothAnnualPriceDiscount);
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg_sb.checked && document.registration.mmgweekly[0].checked) { //Semi-Annual Bonus
			var rawPrice = parseFloat(semiAnnualPriceBonusDiscount) + parseFloat(bothAnnualPriceDiscount);
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg_mb.checked && document.registration.mmgweekly[0].checked) { //Monthly Bonus
			var rawPrice = parseFloat(monthlyPriceBonusDiscount) + parseFloat(bothAnnualPriceDiscount);
			var price = "$" + rawPrice;
		}
		//Check all MMG options with W Newsletter monthly option
		if (document.registration.mmg_a.checked && document.registration.mmgweekly[1].checked) { //Annually
			var rawPrice = parseFloat(annualPriceDiscount) + parseFloat(bothMonthlyPriceDiscount);
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg[2].checked && document.registration.mmgweekly[1].checked) { //Semi-Annually
			var rawPrice = parseFloat(semiAnnualPriceDiscount) + parseFloat(bothMonthlyPriceDiscount);
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg[4].checked && document.registration.mmgweekly[1].checked) { //Monthly
			var rawPrice = parseFloat(monthlyPriceDiscount) + parseFloat(bothMonthlyPriceDiscount);
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg[1].checked && document.registration.mmgweekly[1].checked) { //Annual Bonus
			var rawPrice = parseFloat(annualPriceBonusDiscount) + parseFloat(bothMonthlyPriceDiscount);
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg[3].checked && document.registration.mmgweekly[1].checked) { //Semi-Annual Bonus
			var rawPrice = parseFloat(semiAnnualPriceBonusDiscount) + parseFloat(bothMonthlyPriceDiscount);
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg[5].checked && document.registration.mmgweekly[1].checked) { //Monthly Bonus
			var rawPrice = parseFloat(monthlyPriceBonusDiscount) + parseFloat(bothMonthlyPriceDiscount);
			var price = "$" + rawPrice;
		}
	updateTotalPrice(rawPrice);
	}	
}

function modifyAllPrices() {
	//Check all MMG options with W Newsletter Annual and additional alert number(s)		
	if (document.registration.packageoption[2].checked && document.registration.addalert[0].checked) {
		//
		if (document.registration.mmg[0].checked && document.registration.mmgweekly[0].checked) { //MMG Annual + MMGW Annual
			if (document.registration.addalert[0].checked) {
				var rawPrice = parseFloat(annualPriceDiscount) + parseFloat(bothAnnualPriceDiscount) + parseFloat(annualAlertNum1Orig);
			}
			if (document.registration.addalert[1].checked) {
				var rawPrice = parseFloat(annualPriceDiscount) + parseFloat(bothAnnualPriceDiscount) + parseFloat(annualAlertNum1Orig) + parseFloat(annualAlertNum2Orig);
			}
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg[2].checked && document.registration.mmgweekly[0].checked) { //MMG Semi-Annual + MMGW Annual
			if (document.registration.addalert[0].checked) {
				var rawPrice = parseFloat(semiAnnualPriceDiscount) + parseFloat(bothAnnualPriceDiscount) + parseFloat(semiannualAlertNum1Orig);
			}
			if (document.registration.addalert[1].checked) {
				var rawPrice = parseFloat(semiAnnualPriceDiscount) + parseFloat(bothAnnualPriceDiscount) + parseFloat(semiannualAlertNum1Orig) + parseFloat(semiannualAlertNum2Orig);
			}
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg[4].checked && document.registration.mmgweekly[0].checked) { //MMG Monthly + MMGW Annual 
			if (document.registration.addalert[0].checked) {
				var rawPrice = parseFloat(monthlyPriceDiscount) + parseFloat(bothAnnualPriceDiscount) + parseFloat(monthlyAlertNum1Orig);
			}
			if (document.registration.addalert[1].checked) {
				var rawPrice = parseFloat(monthlyPriceDiscount) + parseFloat(bothAnnualPriceDiscount) + parseFloat(monthlyAlertNum1Orig) + parseFloat(monthlyAlertNum2Orig);
			}
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg[1].checked && document.registration.mmgweekly[0].checked) { //MMG Annual Bonus + MMGW Annual
			if (document.registration.addalert[0].checked) {
				var rawPrice = parseFloat(annualPriceBonusDiscount) + parseFloat(bothAnnualPriceDiscount) + parseFloat(annualAlertNum1Orig);
			}
			if (document.registration.addalert[1].checked) {
				var rawPrice = parseFloat(annualPriceBonusDiscount) + parseFloat(bothAnnualPriceDiscount) + parseFloat(annualAlertNum1Orig) + parseFloat(annualAlertNum2Orig);
			}
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg[3].checked && document.registration.mmgweekly[0].checked) { //MMG Semi-Annual Bonus + MMGW Annual
			if (document.registration.addalert[0].checked) {
				var rawPrice = parseFloat(semiAnnualPriceBonusDiscount) + parseFloat(bothAnnualPriceDiscount) + parseFloat(semiannualAlertNum1Orig);
			}
			if (document.registration.addalert[1].checked) {
				var rawPrice = parseFloat(semiAnnualPriceBonusDiscount) + parseFloat(bothAnnualPriceDiscount) + parseFloat(semiannualAlertNum1Orig) + parseFloat(semiannualAlertNum2Orig);
			}
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg[5].checked && document.registration.mmgweekly[0].checked) { //MMG Monthly Bonus + MMGW Annual
			if (document.registration.addalert[0].checked) {
				var rawPrice = parseFloat(monthlyPriceBonusDiscount) + parseFloat(bothAnnualPriceDiscount) + parseFloat(monthlyAlertNum1Orig);
			}
			if (document.registration.addalert[1].checked) {
				var rawPrice = parseFloat(monthlyPriceBonusDiscount) + parseFloat(bothAnnualPriceDiscount) + parseFloat(monthlyAlertNum1Orig) + parseFloat(monthlyAlertNum2Orig);
			}
			var price = "$" + rawPrice;
		}
		//Check all MMG options with W Newsletter 6-Month option
		if (document.registration.mmg[0].checked && document.registration.mmgweekly[1].checked) { //MMG Annually + MMGW 6-Month
			if (document.registration.addalert[0].checked) {
				var rawPrice = parseFloat(annualPriceDiscount) + parseFloat(bothMonthlyPriceDiscount) + parseFloat(annualAlertNum1Orig);
			}
			if (document.registration.addalert[1].checked) {
				var rawPrice = parseFloat(annualPriceDiscount) + parseFloat(bothMonthlyPriceDiscount) + parseFloat(annualAlertNum1Orig) + parseFloat(annualAlertNum2Orig);
			}
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg[2].checked && document.registration.mmgweekly[1].checked) { //MMG Semi-Annually + MMGW 6-Month
			if (document.registration.addalert[0].checked) {
				var rawPrice = parseFloat(semiAnnualPriceDiscount) + parseFloat(bothMonthlyPriceDiscount) + parseFloat(semiannualAlertNum1Orig);
			}
			if (document.registration.addalert[1].checked) {
				var rawPrice = parseFloat(semiAnnualPriceDiscount) + parseFloat(bothMonthlyPriceDiscount) + parseFloat(semiannualAlertNum1Orig) + parseFloat(semiannualAlertNum2Orig);
			}
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg[4].checked && document.registration.mmgweekly[1].checked) { //MMG Monthly + MMGW 6-Month
			if (document.registration.addalert[0].checked) {
				var rawPrice = parseFloat(monthlyPriceDiscount) + parseFloat(bothMonthlyPriceDiscount) + parseFloat(monthlyAlertNum1Orig);
			}
			if (document.registration.addalert[1].checked) {
				var rawPrice = parseFloat(monthlyPriceDiscount) + parseFloat(bothMonthlyPriceDiscount) + parseFloat(monthlyAlertNum1Orig) + parseFloat(monthlyAlertNum2Orig);
			}
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg[1].checked && document.registration.mmgweekly[1].checked) { //MMG Annual Bonus + MMGW 6-Month
			if (document.registration.addalert[0].checked) {
				var rawPrice = parseFloat(annualPriceBonusDiscount) + parseFloat(bothMonthlyPriceDiscount) + parseFloat(annualAlertNum1Orig);
			}
			if (document.registration.addalert[1].checked) {
				var rawPrice = parseFloat(annualPriceBonusDiscount) + parseFloat(bothMonthlyPriceDiscount) + parseFloat(annualAlertNum1Orig) + parseFloat(annualAlertNum2Orig);
			}
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg[3].checked && document.registration.mmgweekly[1].checked) { //MMG Semi-Annual Bonus + MMGW 6-Month
			if (document.registration.addalert[0].checked) {
				var rawPrice = parseFloat(semiAnnualPriceBonusDiscount) + parseFloat(bothMonthlyPriceDiscount) + parseFloat(semiannualAlertNum1Orig);
			}
			if (document.registration.addalert[1].checked) {
				var rawPrice = parseFloat(semiAnnualPriceBonusDiscount) + parseFloat(bothMonthlyPriceDiscount) + parseFloat(semiannualAlertNum1Orig) + parseFloat(semiAlertNum2Orig);
			}
			var price = "$" + rawPrice;
		}
		if (document.registration.mmg[5].checked && document.registration.mmgweekly[1].checked) { //MMG Monthly Bonus + MMGW 6-Month
			if (document.registration.addalert[0].checked) {
				var rawPrice = parseFloat(monthlyPriceBonusDiscount) + parseFloat(bothMonthlyPriceDiscount) + parseFloat(monthlyAlertNum1Orig);
			}
			if (document.registration.addalert[1].checked) {
				var rawPrice = parseFloat(monthlyPriceBonusDiscount) + parseFloat(bothMonthlyPriceDiscount) + parseFloat(monthlyAlertNum1Orig) + parseFloat(monthlyAlertNum2Orig);
			}
			var price = "$" + rawPrice;
		}
		updateTotalPrice(rawPrice);
	}
		
}

function updateTotalPrice(price) {
	var convert = price + "";
	document.registration.totalprice.value = price;
	var priceFormatted = CommaFormatted(convert);
	document.registration.totalpriceformatted.value = priceFormatted;
	document.getElementById('TotalPrice1').innerHTML = document.registration.totalpriceformatted.value;
	document.getElementById('TotalPrice2').innerHTML = document.registration.totalpriceformatted.value;
}

//NON-DISCOUNTED PRICING

function updateMMGAnnualPrice() {
	updateTotalPrice(annualPrice);
}
function updateMMGAnnualPrice_addalert1() {
	newPrice = parseFloat(annualPrice) + parseFloat(annualAlertNum1Orig);
	updateTotalPrice(newPrice);
}
function updateMMGAnnualPrice_addalert2() {
	newPrice = parseFloat(annualPrice) + parseFloat(annualAlertNum1Orig) + parseFloat(annualAlertNum2Orig);
	updateTotalPrice(newPrice);
}
function updateMMGSemiAnnualPrice() {
	updateTotalPrice(semiAnnualPrice);
}
function updateMMGSemiAnnualPrice_addalert1() {
	newPrice = parseFloat(semiAnnualPrice) + parseFloat(semiannualAlertNum1Orig);
	updateTotalPrice(newPrice);
}
function updateMMGSemiAnnualPrice_addalert2() {
	newPrice = parseFloat(semiAnnualPrice) + parseFloat(semiannualAlertNum1Orig) + parseFloat(semiannualAlertNum2Orig);
	updateTotalPrice(newPrice);
}
function updateMMGMonthlyPrice() {
	updateTotalPrice(monthlyPrice);
}
function updateMMGMonthlyPrice_addalert1() {
	newPrice = parseFloat(monthlyPrice) + parseFloat(monthlyAlertNum1Orig);
	updateTotalPrice(newPrice);
}
function updateMMGMonthlyPrice_addalert2() {
	newPrice = parseFloat(monthlyPrice) + parseFloat(monthlyAlertNum1Orig) + parseFloat(monthlyAlertNum2Orig);
	updateTotalPrice(newPrice);
}
function updateMMGAnnualBonusPrice() {
	updateTotalPrice(annualPriceBonus);
}
function updateMMGAnnualBonusPrice_addalert1() {
	newPrice = parseFloat(annualPriceBonus) + parseFloat(annualAlertNum1Orig);
	updateTotalPrice(newPrice);
}
function updateMMGAnnualBonusPrice_addalert2() {
	newPrice = parseFloat(annualPriceBonus) + parseFloat(annualAlertNum1Orig) + parseFloat(annualAlertNum2Orig);
	updateTotalPrice(newPrice);
}
function updateMMGSemiAnnualBonusPrice() {
	updateTotalPrice(semiAnnualPriceBonus);
}
function updateMMGSemiAnnualBonusPrice_addalert1() {
	newPrice = parseFloat(semiAnnualPriceBonus) + parseFloat(semiannualAlertNum1Orig);
	updateTotalPrice(newPrice);
}
function updateMMGSemiAnnualBonusPrice_addalert2() {
	newPrice = parseFloat(semiAnnualPriceBonus) + parseFloat(semiannualAlertNum1Orig) + parseFloat(semiannualAlertNum2Orig);
	updateTotalPrice(newPrice);
}
function updateMMGMonthlyBonusPrice() {
	updateTotalPrice(monthlyPriceBonus);
}
function updateMMGMonthlyBonusPrice_addalert1() {
	newPrice = parseFloat(monthlyPriceBonus) + parseFloat(monthlyAlertNum1Orig);
	updateTotalPrice(newPrice);
}
function updateMMGMonthlyBonusPrice_addalert2() {
	newPrice = parseFloat(monthlyPriceBonus) + parseFloat(monthlyAlertNum1Orig) + parseFloat(monthlyAlertNum2Orig);
	updateTotalPrice(newPrice);
}
function updateBothAnnualPrice() {
	updateTotalPrice(bothAnnualPrice);
}
function updateBothAnnualPrice_addalert1() {
	newPrice = parseFloat(bothAnnualPrice) + parseFloat(annualAlertNum1Orig);
	updateTotalPrice(newPrice);
}
function updateBothAnnualPrice_addalert2() {
	newPrice = parseFloat(bothAnnualPrice) + parseFloat(annualAlertNum1Orig) + parseFloat(annualAlertNum2Orig);
	updateTotalPrice(newPrice);
}
function updateBothMonthlyPrice() {
	updateTotalPrice(bothMonthlyPrice);
}
function updateBothMonthlyPrice_addalert1() {
	newPrice = parseFloat(bothMonthlyPrice) + parseFloat(monthlyAlertNum1Orig);
	updateTotalPrice(newPrice);
}
function updateBothMonthlyPrice_addalert2() {
	newPrice = parseFloat(bothMonthlyPrice) + parseFloat(monthlyAlertNum1Orig) + parseFloat(annualAlertNum2Orig);
	updateTotalPrice(newPrice);
}

//DISCOUNT PRICING
function updateMMGAnnualPriceDiscount() {
	updateTotalPrice(annualPriceDiscount);
}
function updateMMGSemiAnnualPriceDiscount() {
	updateTotalPrice(semiAnnualPriceDiscount);
}
function updateMMGMonthlyPriceDiscount() {
	updateTotalPrice(monthlyPriceDiscount);
}
function updateMMGAnnualBonusPriceDiscount() {
	updateTotalPrice(annualPriceBonusDiscount);
}
function updateMMGSemiAnnualBonusPriceDiscount() {
	updateTotalPrice(semiAnnualPriceBonusDiscount);
}
function updateMMGMonthlyBonusPriceDiscount() {
	updateTotalPrice(monthlyPriceBonusDiscount);
}
function updateBothAnnualPriceDiscount() {
	updateTotalPrice(bothAnnualPriceDiscount);
}
function updateBothMonthlyPriceDiscount() {
	updateTotalPrice(bothMonthlyPriceDiscount);
}

function enableMMG() {
	for (i = 0; i < document.registration.mmg.length; i++){
		document.registration.mmg[i].disabled = false;
	}
	var alertStatus = getAlertNumStatus();
	if (alertStatus == 'disabled') {
		resetAddAlertNums();
	}	
}
function disableMMG() {
	for (i = 0; i < document.registration.mmg.length; i++){
		document.registration.mmg[i].disabled = true;
	}
	disableAlertNumOption();	
}
function enableMMGWeekly() {
	for (i = 0; i < document.registration.mmgweekly.length; i++){
		document.registration.mmgweekly[i].disabled = false;
	}	
}
function disableMMGWeekly() {
	for (i = 0; i < document.registration.mmgweekly.length; i++){
		document.registration.mmgweekly[i].disabled = true;
	}		
}

function disableSteps() {
	document.registration.cp_phone10.disabled = true;
	document.registration.cp_phone11.disabled = true;
	document.registration.cp_phone12.disabled = true;
	document.registration.cell_provider.disabled = true;
	document.registration.phone10.disabled = true;
	document.registration.phone11.disabled = true;	
	document.registration.phone12.disabled = true;
}

function enableSteps() {
	document.registration.cp_phone10.disabled = false;
	document.registration.cp_phone11.disabled = false;
	document.registration.cp_phone12.disabled = false;
	document.registration.cell_provider.disabled = false;
	document.registration.phone10.disabled = false;
	document.registration.phone11.disabled = false;	
	document.registration.phone12.disabled = false;
}

function enableAddAlert_1_phone() {
	document.registration.phone20.disabled = false;
	document.registration.phone21.disabled = false;	
	document.registration.phone22.disabled = false;
}

function clearAddAlert_1_phone() {
	document.registration.phone20.value = "";
	document.registration.phone21.value = "";	
	document.registration.phone22.value = "";
}


function enableAddAlert_2() {
	document.registration.addalert[1].disabled = false;
}

function disableAddAlert_2() {
	document.registration.addalert[1].disabled = true;
}

function enableAddAlert_2_phone() {
	document.registration.phone30.disabled = false;
	document.registration.phone31.disabled = false;	
	document.registration.phone32.disabled = false;
}

function disableAddAlert_2_phone() {
	document.registration.phone30.value = "";
	document.registration.phone31.value = "";	
	document.registration.phone32.value = "";
	document.registration.phone30.disabled = true;
	document.registration.phone31.disabled = true;	
	document.registration.phone32.disabled = true;
}

function resetAddAlertNums() {
	document.registration.addalert[0].disabled = false;
	document.registration.addalert[0].checked = false;
	document.registration.addalert[1].checked = false;
	document.registration.addalert[1].disabled = true;
	document.registration.phone10.disabled = false;
	document.registration.phone11.disabled = false;	
	document.registration.phone12.disabled = false;
	document.registration.phone20.value = "";
	document.registration.phone21.value = "";	
	document.registration.phone22.value = "";
	document.registration.phone20.disabled = true;
	document.registration.phone21.disabled = true;	
	document.registration.phone22.disabled = true;
	document.registration.phone30.value = "";
	document.registration.phone31.value = "";	
	document.registration.phone32.value = "";
	document.registration.phone30.disabled = true;
	document.registration.phone31.disabled = true;	
	document.registration.phone32.disabled = true;
}

function disableAlertNumOption() {
	document.registration.addalert[0].checked = false;
	document.registration.addalert[0].disabled = true;
	document.registration.addalert[1].checked = false;
	document.registration.addalert[1].disabled = true;
	document.registration.phone10.value = "";
	document.registration.phone11.value = "";	
	document.registration.phone12.value = "";
	document.registration.phone10.disabled = true;
	document.registration.phone11.disabled = true;	
	document.registration.phone12.disabled = true;
	document.registration.phone20.value = "";
	document.registration.phone21.value = "";	
	document.registration.phone22.value = "";
	document.registration.phone20.disabled = true;
	document.registration.phone21.disabled = true;	
	document.registration.phone22.disabled = true;
	document.registration.phone30.value = "";
	document.registration.phone31.value = "";	
	document.registration.phone32.value = "";
	document.registration.phone30.disabled = true;
	document.registration.phone31.disabled = true;	
	document.registration.phone32.disabled = true;
}

function resetMMGPackageMsg() {
	document.getElementById("PackageOptionMMGMsg").innerHTML = ""
	genPackageOptionMessages();
}

function displayWeeklyMsg() {
	document.getElementById('Step3Msg').innerHTML = '<span class="ContentBoldRed">Skip Step 3 and Proceed to Step 4.</span>';
	document.getElementById('Step5Msg').innerHTML = '<span class="ContentBoldRed">Skip Step 5 and Proceed to Step 6.</span>';
	// THIS WAS ADDED TO ACCOMMODATE USERNAME AND PASSWORD FOR WEEKLY SUBS TO ACCESS NEW MEMBER SECTION - WEEKLY SELECTED ONLY
	document.getElementById('unpwText').innerHTML = 'Your subscription includes access to the MMG Weekly Members Portal where you will be able to manage your newsletters and account information. <span class="ContentBold">Please provide the username and password you would like to use to access this area.</span>.';
}

function displayBothMsg() {
	// THIS WAS ADDED TO ACCOMMODATE USERNAME AND PASSWORD FOR WEEKLY SUBS TO ACCESS NEW MEMBER SECTION - BOTH SELECTED
	document.getElementById('unpwText').innerHTML = 'Your subscription includes access to the to the Members Only section of the Mortgage Market Guide website, as well as the MMG Weekly Members Portal where you will be able to manage your newsletters and account information. <span class="ContentBold">Please provide the username and password you would like to use to access these areas.</span>';
}

function displayMMGMsg() {
	// THIS WAS ADDED TO SET USERNAME PASSWORD TEXT BACK TO DEFAULT - MMG SELECTED ONLY
	document.getElementById('unpwText').innerHTML = 'Your subscription includes access to the Members Only section of the Mortgage Market Guide website. <span class="ContentBold">Please select a username and password to use during your subscription</span>.';
}

function clearMsg() {
	document.getElementById('Step3Msg').innerHTML = '';
	document.getElementById('Step5Msg').innerHTML = '';
}

function getAlertNumSelected() {
	if (document.registration.addalert[0].checked && !document.registration.addalert[1].checked) {
		return 'one';
	}
	if (document.registration.addalert[0].checked && document.registration.addalert[1].checked) {
		return 'two';
	}
	if (!document.registration.addalert[0].checked && !document.registration.addalert[1].checked) { 
		return 'none';
	}
	if (document.registration.addalert[0].disabled) {
		return 'disabled';
	}
}

function getAlertNumStatus() {
	if (document.registration.addalert[0].disabled) {
		return 'disabled';
	}
}

function getCheckStatus() {
	for (i = 0; i < document.registration.packageoption.length; i++){
		if (document.registration.packageoption[i].checked) {
			pkgSelected = document.registration.packageoption[i];
		}
	}
	for (i = 0; i < document.registration.mmg.length; i++){
		if (document.registration.mmg[i].checked) {
			mmgSelected = document.registration.mmg[i];
		}
	}
	for (i = 0; i < document.registration.mmgweekly.length; i++){
		if (document.registration.mmgweekly[i].checked) {
			mmgwSelected = document.registration.mmgweekly[i];
		}
	}
}

function checkAP1 (entry) {
	if (!entry) { document.registration.addalert[0].disabled = true; }
}
////////////////////////////////////////////////////////////END APPLICATION OPTIONS/////////////////////////////////////////////////////////