function addToBookShelf(Id,vId)
{
  Ajax.call('/index.php?form=eBookAction', 'a=BookShelf&nid=' + Id + '&vid='+ vId, BookShelfResponse, 'POST', 'JSON');
}
function BookShelfResponse(result)
{
  alert(result.message);
}
function addToBookVote(Id)
{
  Ajax.call('/index.php?form=eBookAction', 'a=BookVote&nid=' + Id , BookShelfResponse, 'POST', 'JSON');
}
function RemoveBook(Id)
{
  Ajax.call('/index.php?form=eBookAction', 'a=RemoveBook&nid=' + Id , RemoveResponse, 'POST', 'JSON');
}
function RemoveResponse(result)
{
  alert(result.message);
  if(result.error == 0){
	document.location.reload();
  }
}