//Dari cek validasi asp kalo false
function fbaned(){
	ffunction = '';
	setTimeout("changePage()", 100);
}

//function flogout
function flogout(){
	var fconfirm = self.confirm('Are you sure, you want to end this session ?');
	
	if (fconfirm == true) {
		ffunction = 'flogout'
		setTimeout("changePage()", 100);
	}
}

function changePage() {
	if (self.parent.frames.length != 0) {
		if (ffunction == 'flogout') {
			self.parent.location.replace('../../../rajatikus-adm/default.asp?act=logout');
		} else {
			self.parent.location.replace('../default.asp');
		}
	}
}
