/**
* Popup Login 
* popLogin.open(); 으로 팝업 로그인 페이지로 접근이 가능 합니다.
* 로그인 이후에는 페이지 리로드 입니다.
*/
function J_PopLogin() {
	this.extType = '?extType=reload';
	this.popName = 'popLogin';
	this.options = '';
	
	this.open = function() {
		this.url = arguments[0] + '/user/login!loginPop.do';
		this.setOption().reload();
		
		this.url += this.extType;
		this.win = window.open(this.url + "&protocol=" + window.location.protocol, this.popName, this.options);
		return;
	}
	
	this.openSSO = function() {
		var reffer = "" + location;
		reffer = reffer.replace(arguments[0],"");
		var backurl = encodeURIComponent(arguments[1] + reffer);
		document.location.href = 'http://www.samsungfunclub.ru/auth.php?backurl=' + backurl;
		/**
		this.setOption().reload();
		
		this.url += this.extType;
		this.win = window.open(this.url + "&protocol=" + window.location.protocol, this.popName, this.options);
		*/
		return;
	}
	
	this.moveThisWin = function() {
		this.url = arguments[0] + '/user/login!loginPop.do';
		document.location.href = this.url + this.extType;
	}
	this.reload = function() {
		this.extType = '?extType=reload';
		return this;
	}
	this.setOption = function() {
		this.options = 'width=362,height=210';
		return this;
	}
}

var popLogin = new J_PopLogin();




