function saveSettingsUpdateUI() {
	if (!document.forms[0].saveSettings.checked) {
		document.forms[0].autoLogin.checked = false;
		document.forms[0].autoLogin.disabled = true;
	} else {
		document.forms[0].autoLogin.disabled = false;
	}
	return true;
}



function checkReviewLength(sender) {
	var maxLength = 2200
	var charsAvailable = maxLength - sender.value.length;
	
	if (charsAvailable <= 0) {
		sender.value = sender.value.substring(0, maxLength);
		rolloverText('0');
	} else {
		rolloverText(charsAvailable);
		}
}
	
	

function checkRecommendationLength(sender) {
	var maxLength = 125
	var charsAvailable = maxLength - sender.value.length;
	
	if (charsAvailable <= 0) {
		sender.value = sender.value.substring(0, maxLength);
		rolloverText('0');
	} else {
		rolloverText(charsAvailable);
	}
}

	
function rolloverText(text) {
var id = 'nameRollover';
var theText = "";
if (document.getElementById) {
		x = document.getElementById(id);
		x.innerHTML = '';
		x.innerHTML = text;
} else if (document.all) {
		x = document.all[id];
		x.innerHTML = text;
} else if (document.layers) {
		x = document.layers[id];
		text2 = '<P CLASS="testclass">' + text + '</P>;';
		x.document.open();
		x.document.write(text2);
		x.document.close();
	}
}

function openPopupImageWindow(theURL) {
  window.open(theURL,'popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=400');
}



