/**
 * class
 * {{{验证相关的js}}}
 * create by wangxb07 09-09-18
 * 用户权限验证类
 */

var Verification = Class.create( {
	initialize : function(popDiv, userId) {
		this.popDiv = popDiv;
		this.userId = userId;
	},

	isLogin : function(){
		if(this.userId == 0){
			this.popDiv.ajaxOpen('/home/loginAjax.php');
			return false;
		}else{
			return true;
		}
	}
} );
