		var LogInFormFocus = false;
		LogInButton = new Image; LogInButton.src = "/images/LogInButton.jpg";
		LogInButtonHovered = new Image; LogInButtonHovered.src = "/images/LogInButtonHovered.jpg";
		LogInButtonFocus = new Image; LogInButtonFocus.src = "/images/LogInButtonFocus.jpg";
		EmailButton = new Image; EmailButton.src = "/images/EmailButton.jpg";
		EmailButtonHovered = new Image; EmailButtonHovered.src = "/images/EmailButtonHovered.jpg";
		var copyrightMessage = ' Key is not supported on this site.\n\nAll material on this Web site, including all images and\ntext, is protected by international copyright law.';
		function AltDown(){
			if(event.altKey){alert("The Alt" + copyrightMessage);}
			if(event.ctrlKey){alert("The Ctrl" + copyrightMessage);}
			if(event.keyCode==13){
				if(LogInFormFocus){
					if(ValidateForm())document.login.submit();
				}
			}
		}
		function updateHeadingOut (pic) {
			pic.style.border='2px solid #004ed1';
			if (document.getElementById) {
				document.getElementById('headingPointer').style.left=-1000;
			}
		}
		var isnn,isie
		if(navigator.appName=='Microsoft Internet Explorer') { isie=true; } 
		if(navigator.appName=='Netscape') { isnn=true; } 
		function right(e) {
			if (isnn) {
				if (isnn && (e.which == 3 || e.which == 2 )) {
					alert("Sorry, you do not have permission to right click on this page."); 
					return false;
				}
				if (isnn && (e.which == 1)) {
					noMove();
					return true;
				}
			}
			if (isie && (event.button == 2 || event.button == 3)) {
				alert("Sorry, you do not have permission to right click on this page."); 
				return false;
			}
			if (isie && (event.button == 1)) { 
				noMove(); 
				return false;
			}
			return true;
		} 
		function noMove() { 
			return false;
		}
		if (document.layers) window.captureEvents(Event.MOUSEDOWN);
		if (document.layers) window.captureEvents(Event.MOUSEUP);
		if (document.layers) window.captureEvents(Event.MOUSEMOVE);
		document.onmousedown=right; 
		document.onmouseup=right;
		document.onmousemove=right;
		window.onresize=adjust;
		function blueButton() { 
			LogInFormFocus = true;
			imageSwap('LogInButton', 'LogInButtonFocus');
		} 
		function noBlueButton() { 
			LogInFormFocus = false;
			imageSwap('LogInButton', 'LogInButton');
		} 
		function pickLogInButton() { 
			if(LogInFormFocus) {
				imageSwap('LogInButton', 'LogInButtonFocus');
			} else {
				imageSwap('LogInButton', 'LogInButton');
			}
		} 
		function imageSwap(location, imageName) {
			document.images[location].src = eval(imageName + ".src");
		}
		function ValidateForm() {
			field = document.login.email;
			if ( isBlank(field, "Email Address") ) {
				document.login.email.focus();
				document.login.email.blur();
				document.login.email.select();
				return false;
			}
			if ( isShort(field, "Email Address", 8) ) {
				document.login.email.focus();
				document.login.email.blur();
				document.login.email.select();
				return false;
			}
			if (!ValidateEmail(document.login.email)){
				alert('There seems to ba a problem with the email address you\nentered. Please be sure to enter a valid email address.');
				document.login.email.focus();
				document.login.email.blur();
				document.login.email.select();
				return false;
			}
			field = document.login.password;
			if ( isBlank(field, "Password") ) {
				document.login.password.focus();
				document.login.password.blur();
				document.login.password.select();
				return false;
			}
			if ( isShort(field, "Password", 6) ) {
				document.login.password.focus();
				document.login.password.blur();
				document.login.password.select();
				return false;
			}
			return true;
		}
		function trimLeft(s) {
			var whitespaces = " \t\n\r";
			for(n = 0; n < s.length; n++) { if (whitespaces.indexOf(s.charAt(n)) == -1) return (n > 0) ? s.substring(n, s.length) : s; }
			return("");
		}
		function trimRight(s){
			var whitespaces = " \t\n\r";
			for(n = s.length - 1; n	> -1; n--) { if (whitespaces.indexOf(s.charAt(n)) == -1) return (n < (s.length - 1)) ? s.substring(0, n+1) : s; }
			return("");
		}
		function trim(s) {return ((s == null) ? "" : trimRight(trimLeft(s))); }
		function isBlank(field, strFieldName) {
			strTrimmed = trim(field.value);
			if (strTrimmed.length > 0 && field.value!=strFieldName) return false;
			alert("\"" + strFieldName + "\" is a required field. Please fill it out.");
			return true;
		}
		function isShort(field, strFieldName, size) {
			strTrimmed = trim(field.value);
			if (strTrimmed.length >= size && field.value!=strFieldName) return false;
			alert("\"" + strFieldName + "\" must be at least " + size + " character in length. Please try again.");
			return true;
		}
		function ValidateEmail(field) {
			Ctrl = field;
			var supported = 0;
			if (window.RegExp) {
				var tempStr = "a";
				var tempReg = new RegExp(tempStr);
				if (tempReg.test(tempStr)) supported = 1;
			}
			if (!supported) return (Ctrl.value.indexOf(".") > 2) && (Ctrl.value.indexOf("@") > 0);
			var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
			var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
			return (!r1.test(Ctrl.value) && r2.test(Ctrl.value));
		}
		function adjust() {
			var leftBorderDiv=document.getElementById('leftBorder');
			var rightBorderDiv=document.getElementById('rightBorder');
			if(document.body.clientWidth>=790){
				leftBorderDiv.style.width="3px"
				rightBorderDiv.style.width="7px"
			} else if(document.body.clientWidth>=788){
				leftBorderDiv.style.width="2px"
				rightBorderDiv.style.width="6px"
			} else if(document.body.clientWidth>=786){
				leftBorderDiv.style.width="1px"
				rightBorderDiv.style.width="5px"
			} else if(document.body.clientWidth>=784){
				leftBorderDiv.style.width="1px"
				rightBorderDiv.style.width="3px"
			} else if(document.body.clientWidth>=782){
				leftBorderDiv.style.width="1px"
				rightBorderDiv.style.width="1px"
			} else {
				 leftBorderDiv.style.width="0px";
				 rightBorderDiv.style.width="0px";
			}
		}
		function mover(ele){
			ele.style.border='2px dashed #004ed1';
			ele.style.cursor='pointer';
		}
		function mout(ele){
			ele.style.border='2px dashed #dadee9';
			ele.style.cursor='default';
		}
