function isUSSelected(primaryIndex)
{
	if (!document.getElementById("idUSLocationRow")) return false
	if(primaryIndex == 39)
	{
		document.getElementById("idUSLocationRow").style.display = ""; // 'block' does not work as expected on table rows in firefox.
		document.getElementById("idGlobalLocationRow").style.display = "none";

		idRadiusLocation = document.getElementById("idRadiusLocation");
		idLocationChoices = document.getElementById("idLocationChoices");

		if (bRegisterEventsOnce == 1)
		{
			attachEventListener(idRadiusLocation, "keyup", keyupAutoComplete, false);
			attachEventListener(idLocationChoices, "keyup", keyupLocationChoices, false);
			attachEventListener(idRadiusLocation, "blur", blurAutoComplete, false);
			attachEventListener(idLocationChoices, "blur", blurLocationChoices, false);
			attachEventListener(idLocationChoices, "click", clickLocationChoices, false);
			bRegisterEventsOnce = 0;
		}
		//setTimeout ( 'objForm.sRadiusLocation.focus()', 1000 );
		
	} else {
		document.getElementById("idGlobalLocationRow").style.display = ""; // block does not work as expected on table rows in firefox.
		document.getElementById("idUSLocationRow").style.display = "none";
	}
}

$(function () {
	// password criteria intelligent display
	$("#jobViewNewUserMod #password, #myEfcRegisterForm #password").focus(function () {
		$("#jobViewNewUserMod div.gradientModuleContent").animate({ height: "31em" })
		$("#passwordCriteria").slideDown("fast", function () {
			// hack for ff3
			$(this).css("display","inline-block")
		})
	})
	// hide intelligently
	$("#myEfcRegisterForm *, #jobViewNewUserMod form *").filter("input,select").not("#password,#password2,#confirmPassword").focus(function () {
		$("#jobViewNewUserMod div.gradientModuleContent").animate({ height: "23em" })
		$("#passwordCriteria").slideUp("fast")
	})
})
