
// pop join page out of frames
if (top.frames.length!=0)
        top.location=self.document.location;

// popup script
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// on country change, display / hide options
function countryonchange(country) {
	switch (country) {
		// US options: show CCBill Web900 and CCBill Online Check
		case "US":
			hideoption("euroasia");
			hideoption("globalcharge");
			hideoption("gxbill");
			showoption("achcheck");
			showoption("web900");
		break;
		// use GlobalCharge and 2000Charge for 
		// Australia, Belgium, Great Britain, India, and Italy
		case "AU":
		case "BE":
		case "GB":
		case "IN":
		case "IT":
			hideoption("achcheck");
			hideoption("web900");
			hideoption("gxbill");
			showoption("euroasia");
			showoption("globalcharge");
		break;
		// use GXBill and 2000Charge for all other countries
		default: 
			hideoption("achcheck");
			hideoption("globalcharge");
			hideoption("web900");
			showoption("euroasia");
			showoption("gxbill");
		break;
	}
}

// on price change, set custom3 value for specific access
function priceonchange(optionText,mobileDetect) {
	if (optionText == "1 Month Mobile/iPhone Access for $9.95") {
		document.getElementById('custom3').value = "access=mobi";
		if (mobileDetect == '0') 
			alert('This reduced price option provides full access to mobile content ONLY. If you wish to have access to hi-definition content on your computer, please select another option.');
	} else {
		document.getElementById('custom3').value = "";
	}
}

// hide option
function hideoption(EL) {
	if (document.getElementById(EL)) {
		document.getElementById(EL).style.display='none';
		document.getElementById(EL).style.visibility='hidden';
	}
}

// show option
function showoption(EL) {
	if (document.getElementById(EL)) {
		document.getElementById(EL).style.display='block';
		document.getElementById(EL).style.visibility='visible';
	}
}
