function confirmAction(msg){
  if(confirm(msg))
    return true;
  else
    return false;
}

function redirect(url){
  window.location = url;
}

