function confirmwithdraw(compid,teamid) {
    if (confirm("Are you sure you want to withdraw from the competition?")) {
        window.location.href="index.php?m=competition&id="+compid+"&action=withdraw&teamid="+teamid;
    }
}