	/**
	 * login form validate
	 * @param void(0)
	 * @return void(0)
	 */
	function loginValidate() {
		var error	 = '';
		var email	 = jQuery("#email").val();
		var password = jQuery("#password").val();
		if (email == '') {
				error += 'Please enter email address or screen name.\n';
				jQuery('#email').focus();
		}
		/*
		if (email!=''){
			var re = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
			var emails = email.split(',');
			for (var i = 0; i < emails.length; i++) {
				if (!re.test(emails[i])) {
					error += 'Please specify valid email address.\n';
				}
			}
		}
		*/
		if (password == '') {
					error += 'Please enter password.\n';
					jQuery('#password').focus();
		}
		if (error != '') {
			alert(error);
			return false;
		} 
			/*
			var path	= jQuery("#rootPath").val();
			var email	= jQuery("#email").val();
			var password= jQuery("#password").val();
			jQuery.ajax({
				type: "POST",
				url: path+"/login/loginProcess.php",
				data: "pagePath=right&email="+email+"&password="+password,
				success: function(msg){
					jQuery("#rightBarCont").html(msg);
				}
			});
			*/
			return true;

	}

	/**
	 * focus email address field
	 * @param void(0)
	 * @return void(0)
	 */
	function getEmail() {
		var email = jQuery("#email").val();
		if(email == 'screen name or email here') {
			jQuery("#email").val('');
		}
	}

	function hide(id) {
		jQuery('#'+id).hide('fast');
		
	}

	function show(id) {
		jQuery('#'+id).show('fast');
	}

	function showDiv(id) {
		if (document.getElementById(id).style.display == 'block') {
			//jQuery('#'+id).hide('fast');
			document.getElementById(id).style.display = 'none';
		} else {
			//jQuery('#'+id).show('fast');
			document.getElementById(id).style.display = 'block';
		}
	}

	function rightBarContent() {
		var voots = jQuery("#rootPat").val();
		jQuery.ajax({
			type: "POST",
			url: voots+"/library/rightBar/rightBarContent.php",
			//data: "rec="+rightContBar,
			success: function(msg){
				jQuery("#rightBarCont").html(msg);
			}
		});
		return true;
	}