<!--//
/*        function checkIfEnter(e,area)	{

            if (document.all) {
                if(window.event.keyCode == 13){
                    if(area=="login"){
                        submitLoginForm();
                        return true;
                    }
                }
                return false;
            } else {
                if(e.keyCode == 13){
                    if(area=="login"){
                        submitLoginForm();
                        return true;
                    }
                }
                return false;
            }
            return false;
        }
*/
		function validateLoginForm() {

			var errors 	= 'Sorry, the following errors exist on the form:\n';
			var	err		= 0;

			if (!document.login_form.username.value) {
				err 	+= 1;
				errors 	+= ' - you must enter your username ';
			}

			if (!document.login_form.password.value) {
				err += 1;
				errors 	+= ' - you must enter your password ';
			}

			if (err > 0) {
				alert(errors);
			}

			return (err == 0);

		}

		function submitLoginForm() {

			if (validateLoginForm()) {
				document.login_form.submit();
				return true;
			}

			return false;
		}
//-->
