function do_add_fixture()
{var data={fixturedate:$('#fixturedate').val(),teamid:$('#teamid').val(),competitionid:$('#competitionid').val(),opponent:$('#opponent').val(),opponentid:$('#opponentid').val(),venue:$('#venue').val()};$.post('/content/do-add-fixture.php',data,function(html){$.blockUI({message:html,css:{fontSize:'2em',fontWeight:'bold',border:'none',padding:'15px',backgroundColor:'#000','-webkit-border-radius':'10px','-moz-border-radius':'10px',opacity:'.5',color:'#fff'}});setTimeout(function(){$.unblockUI({onUnblock:function(){window.location.href="/managers/fixtures/";}});},2000);});}
function do_delete_fixture(fixtureid)
{var data={fixtureid:fixtureid}
$.post('/content/do-delete-fixture.php',data,function(html){$.blockUI({message:html,css:{fontSize:'2em',fontWeight:'bold',border:'none',padding:'15px',backgroundColor:'#000','-webkit-border-radius':'10px','-moz-border-radius':'10px',opacity:'.5',color:'#fff'}});setTimeout(function(){$.unblockUI({onUnblock:function(){window.location.href="/managers/results/";}});},2000);});}
function load_fixtures(teamid)
{var data={teamid:teamid};$.post('/content/load-fixtures.php',data,function(html){$('#target_fixtureid').html(html);$('#fixtureid')[0].focus();});}
function load_headline(fixtureid)
{var data={fixtureid:fixtureid};$.post('/content/load-headline.php',data,function(html){$('#target_headline').html(html);$('#headline')[0].focus();});}
function load_competitions(teamid)
{var data={teamid:teamid};$.post('/content/load-competitions.php',data,function(html){$('#target_competition').html(html);$('#competitionid')[0].focus();});}
function load_opponents(competitionid,teamid)
{var data={competitionid:competitionid,teamid:teamid};$.post('/content/load-opponents.php',data,function(html){$('#target_opponent').html(html);$('#opponent')[0].focus();});}
function load_days(yearno,monthno)
{var data={year:yearno,month:monthno};$.post('/content/load-days.php',data,function(html){$('#target_days').html(html);});}
function update_opponentid(teamname)
{$().ajaxError(function(request,settings){alert("request="+request.errorCode);});var data={teamname:teamname,competitionid:$('#competitionid').val()};$.post('/content/update-opponentid.php',data,function(html){$('#opponentid').val(html);});}
function do_delete_news(newsid)
{var data={newsid:newsid}
$.post('/content/do-delete-news.php',data,function(html){$.blockUI({message:html,css:{fontSize:'2em',fontWeight:'bold',border:'none',padding:'15px',backgroundColor:'#000','-webkit-border-radius':'10px','-moz-border-radius':'10px',opacity:'.5',color:'#fff'}});setTimeout(function(){$.unblockUI({onUnblock:function(){window.location.href="/managers/news/edit/";}});},2000);});}