function changeLocation(countryID,override)
{
	var locationElement = document.getElementById("pctspan");
	var strLocationMessage = "";

	if (locationElement != null)
	{
		while (locationElement.childNodes.length > 0) { locationElement.removeChild(locationElement.childNodes[0]); }

		if (override==1) { countryID==0; }

		if (countryID==222) { strLocationMessage="Your postcode (eg YO19 or CV21 1NG)"; }
		else if (countryID==223) { strLocationMessage="Your zip code (eg 90210)"; }
		else if (countryID==38) { strLocationMessage="Your postal code (eg V0B 1M0)"; }
		else if (countryID==13) { strLocationMessage="Your postal code (eg 3000)"; }
		else { strLocationMessage="Your nearest town"; }

		var myLocationNode = locationElement.appendChild(document.createTextNode(strLocationMessage));
	}
}


function changeSource(optionNumber)
{
	var sourceElement = document.getElementById("sourcespan");
	var strSourceMessage = "";

	if (sourceElement != null)
	{
		while (sourceElement.childNodes.length > 0) { sourceElement.removeChild(sourceElement.childNodes[0]); }

		if (optionNumber==0) { strSourceMessage="Referring member's OUT account id"; }
		else if (optionNumber==1) { strSourceMessage="Friend's name"; }
		else if (optionNumber==2) { strSourceMessage="What the promo item is and where you found it"; }
		else if (optionNumber==3) { strSourceMessage="Venue in which you found the information"; }
		else if (optionNumber==4) { strSourceMessage="Title and publication date"; }
		else if (optionNumber==5) { strSourceMessage="Title and publication date"; }
		else if (optionNumber==6) { strSourceMessage="Title and publication date"; }
		else if (optionNumber==7) { strSourceMessage="Name of search engine"; }
		else if (optionNumber==8) { strSourceMessage="Website address of profile page"; }
		else if (optionNumber==9) { strSourceMessage="Website address of linking page"; }
		else if (optionNumber==10) { strSourceMessage="Previous OUT id"; }
		else { strSourceMessage="Name or other relevant information"; }

		var mySourceNode = sourceElement.appendChild(document.createTextNode(strSourceMessage));
	}
}


function waitForTermsApproved()
{
	if (document.getElementById("terms").checked==1) { document.getElementById("submit").disabled=''; }
	else { document.getElementById("submit").disabled='disabled'; }
}
