/* Function to automatically select a country if a state or province is chosen.
   @created 03/25/2004
   @author jfindlay
*/

function setCountry()
{
	strCountry = new String();
	// Split out the value of the State Province textbox based on the "|" character
	// Then we will assign the value that corresponds to the countryID to the Country dropdown
	if (this.frmUserProfileInput.selProvState.value != "0")
	{
		strCountry = this.frmUserProfileInput.selProvState.value.split("|");
		//alert (strCountry[2]);
		this.frmUserProfileInput.selCountry.selectedIndex = strCountry[2];
	}
	else
	{
		this.frmUserProfileInput.selCountry.selectedIndex = "";
	}
}
