var emailFocus=true;
var passwordFocus=true;
function focusEmail() {
	if (emailFocus==true) {
		document.getElementById("topCustomerEmail").value="";
		emailFocus = false;
	}
}
function focusPassword() {
	document.getElementById("topPasswordStart").style.display = "none";
	document.getElementById("topPasswordReplace").style.display = "inline";
	document.getElementById("topPasswordReplace").focus();
}
function toggleMoreCopy(thisDiv) {		
	moreSpan = document.getElementById(thisDiv+"more");
	lessSpan = document.getElementById(thisDiv+"less");
	if (moreSpan.style.display != "none") {
		moreSpan.style.display = "none";
		lessSpan.style.display = "inline";
	} else {
		moreSpan.style.display = "inline";
		lessSpan.style.display = "none";
	}
}
function showTR(ID){
	document.getElementById(ID).style.display="";
	return false;
}
function limitChars (e, whichField, chars) {
	thisValue = document.getElementById(whichField).value;
	if(window.event){ // IE
		keynum = e.keyCode
	} else if (e.which){ // Netscape/Firefox/Opera					
		keynum = e.which
	}
	if (thisValue.length > chars) {
		if (keynum==8||keynum==99) { //forward and back delete buttons we will allow
			return true;
		} else {
			alert ("You can only enter up to " + chars + " characters in this field");
			return false;
		}
	} else {
		return true;
	}						
}