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 location or postcode (eg York or YO19 or YO19 6ET)"; }
		else if (countryID==223) { strLocationMessage="Your zip code or location (eg 94102 or San Francisco)"; }
		else if (countryID==38) { strLocationMessage="Your postal code or location (eg T3C 1A1 or Calgary)"; }
		else if (countryID==13) { strLocationMessage="Your postal code or location (eg 3000 or Melbourne)"; }
		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=='') { document.getElementById("submit").disabled='disabled'; }
	else { document.getElementById("submit").disabled=''; }
}
