// JavaScript Document
function adminViewImage(albumId) {
	if (albumId != '') {
		window.location.href = '/admin/list-images/album/' + albumId;
	} else {
		window.location.href = '/admin/list-images';
	}
}


function bbm_events_jumpMenu(targ,selObj,restore,tagetLocation){ //v3.0
var getSelObj
var getSelMonth
getSelObj = selObj.options[selObj.selectedIndex].value
getSelObj = getSelObj.split(',',2)
  eval(targ+".location='"+tagetLocation+"month/"+getSelObj[0]+"/year/"+getSelObj[1]+"'");
  if (restore) selObj.selectedIndex=0;
}

function bbm_eventCats_jumpMenu(targ,selObj,restore,tagetLocation){ //v3.0
var getSelObj
var getSelMonth
getSelObj = selObj.options[selObj.selectedIndex].value
getSelObj = getSelObj.split(',',3)
  if(getSelObj[0] != '0'){
  eval(targ+".location='"+tagetLocation+"category/"+getSelObj[0]+"/month/"+getSelObj[1]+"/year/"+getSelObj[2]+"'");
  }else{
  eval(targ+".location='"+tagetLocation+"month/"+getSelObj[1]+"/year/"+getSelObj[2]+"'");
  }
  if (restore) selObj.selectedIndex=0;
}

function rsaCMS_JumpMenuAdmin(targ,selObj,restore,tagetLocation){ //v3.0
var getSelObj
getSelObj = selObj.options[selObj.selectedIndex].value
  eval(targ+".location='"+tagetLocation+getSelObj+"'");
  if (restore) selObj.selectedIndex=0;
}

function rsaCMS_JumpMenuUser(targ,selObj,restore,tagetLocation){ //v3.0
var getSelObj
getSelObj = selObj.options[selObj.selectedIndex].value
  eval(targ+".location='"+tagetLocation+getSelObj+"/#anchor'");
  if (restore) selObj.selectedIndex=0;
}

