function showProfile() {
	
}

function unlockMemberForm() {
	$('spry').disabled = "";
	$('spny').disabled = "";
	$('kcrm').disabled = "";
	$('kcry').disabled = "";
	$('kcnm').disabled = "";
	$('kcny').disabled = "";
	$('kcrm').disabled = "";
	
	$('changeNow').disabled = "";
}

function canUpgrade() {
	stateCount = $F("stateCount");
	if(stateCount > 3 && ($("kcrm").checked || $("kcry").checked)) {
		alert("Regional members are allowed to select 3 states.  You have selected " + stateCount + " states.  Please select fewer states in 'Edit Profile' before continuing");
		return false;
	}
}

function confirmChange() {
	subType = "";
	newMemb = "";
	oldMemb = $F('oldMemb');
	stateCount = $F('stateCount');
	if($('spry').checked) {
		subType = "Standard Plus Regional - Yearly";
		newMemb = "reg";
	}
	if($('spny').checked) {
		subType = "Standard Plus Nationwide - Yearly";
		newMemb = "nat";
	}
	if($('kcrm').checked) {
		subType = "Key Club Regional - Monthly";
		newMemb = "reg";
	}
	if($('kcry').checked) {
		subType = "Key Club Regional - Yearly";
		newMemb = "reg";
	}
	if($('kcnm').checked) {
		subType = "Key Club Nationwide - Monthly";
		newMemb = "nat";
	}
	if($('kcny').checked) {
		subType = "Key Club Nationwide - Yearly";
		newMemb = "nat";
	}
	
	if(subType == "") {
		 alert("Please select a membership type.");
		 return false;
	}
	
	if((oldMemb == "nat" || oldMemb == "pre") && newMemb == "reg" && stateCount > 3) {
		stateCount = $F('stateCount');
		alert("Regional members are allowed to select 3 states.  You have selected " + stateCount + " states.  Please select fewer states in 'Edit Profile' before continuing");
		return false;
	} else {
		return confirm("Are you sure you want to change your membership to '" + subType + "'?");
	}
}

function showMembershipComparison() {
	window.open("membership-compare.php", "bridepro", "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=590,height=800");
}

function showMembComp() {
	window.open("../pro/membership-compare.php", "bridepro", "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=590,height=800");
}

function showProfile(type, level) {
	if(type == "main") {
		height = "200";
	} else {
		height = "700";
	}
	window.open("sample-profile.php?type=" + type + "&level=" + level, "bridepro", "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=" + height);
}

function showProfile2(type, level) {
	if(type == "main") {
		height = "200";
	} else {
		height = "700";
	}
	window.open("../pro/sample-profile.php?type=" + type + "&level=" + level, "bridepro", "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=" + height);
}