// JavaScript Document
var wind = "";
function toonarchief()
{
	if (wind) {wind.close();}
	wind = window.open("admin/archief_dieren.php","","");
	wind.focus();
}
function toonlink(url)
{
	if (wind) {wind.close();}
	wind = window.open("http://www."+url,"","");
	wind.focus();
}
function voegtoekonijn()
{
	if (wind) {wind.close();}
	wind = window.open("admin/toevoegen_konijn.php","","width=700,height=600, resizable=yes, scrollbars=yes");
	wind.focus();
}
function wijzigkonijn(id)
{
	if (wind) {wind.close();}
	wind = window.open("admin/wijzigen_konijn.php?id="+id,"","width=700,height=700, resizable=yes, scrollbars=yes");
	wind.focus();
}
function deletekonijn(id)
{
	if (confirm("weet je zeker dat je dit konijn wilt verwijderen?"))
	{
		location.href="konijnen.php?id="+id+"&del=ja";
	}	
}
function voegtoecavia()
{
	if (wind) {wind.close();}
	wind = window.open("admin/toevoegen_cavia.php","","width=700,height=600, resizable=yes, scrollbars=yes");
	wind.focus();
}
function wijzigcavia(id)
{
	if (wind) {wind.close();}
	wind = window.open("admin/wijzigen_cavia.php?id="+id,"","width=700,height=700, resizable=yes, scrollbars=yes");
	wind.focus();
}
function deletecavia(id)
{
	if (confirm("weet je zeker dat je deze cavia wilt verwijderen?"))
	{
		location.href="cavia's.php?id="+id+"&del=ja";
	}	
}
function dag(datum)
{
	location.href="dagboek.php?datum="+datum;
}
function voegtoedagboek()
{
	if (wind) {wind.close();}
	wind = window.open("admin/toevoegen_dagboek.php","","width=750,height=600, resizable=yes, scrollbars=yes");
	wind.focus();		
}
function wijzigdagboek(id)
{
	if (wind) {wind.close();}
	wind = window.open("admin/wijzigen_dagboek.php?id="+id,"","width=700,height=700, resizable=yes, scrollbars=yes");
	wind.focus();
}
function verzorg_c(nr)
{
	location.href="cavia's.php?vzp="+nr;
}
function verzorg_k(nr)
{
	location.href="konijnen.php?vzp="+nr;
}

function voegtoeartikel()
{
	if (wind) {wind.close();}
	wind = window.open("admin/toevoegen_artikel.php","","width=700,height=600, resizable=yes, scrollbars=yes");
	wind.focus();
}
function voegtoesponsor()
{
	if (wind) {wind.close();}
	wind = window.open("admin/toevoegen_sponsor.php","","width=700,height=600, resizable=yes, scrollbars=yes");
	wind.focus();
}
function wijzigartikel(id)
{
	if (wind) {wind.close();}
	wind = window.open("admin/wijzigen_artikel.php?id="+id,"","width=700,height=700, resizable=yes, scrollbars=yes");
	wind.focus();
}
function wijzigsponsor(id)
{
	if (wind) {wind.close();}
	wind = window.open("admin/wijzigen_sponsor.php?id="+id,"","width=700,height=700, resizable=yes, scrollbars=yes");
	wind.focus();
}
function voegtoezonnetje()
{
	if (wind) {wind.close();}
	wind = window.open("admin/toevoegen_zonnetje.php","","width=700,height=600, resizable=yes, scrollbars=yes");
	wind.focus();
}
function wijzigzonnetje(id)
{
	if (wind) {wind.close();}
	wind = window.open("admin/wijzigen_zonnetje.php?id="+id,"","width=700,height=700, resizable=yes, scrollbars=yes");
	wind.focus();
}
function deleteartikel(id)
{
	if (confirm("weet je zeker dat je dit artikel wilt verwijderen?"))
	{
		location.href="winkeltje.php?id="+id+"&del=ja";
	}	
}
function deletesponsor(id)
{
	if (confirm("weet je zeker dat je deze sponsor wilt verwijderen?"))
	{
		location.href="sponsors.php?id="+id+"&del=ja";
	}	
}
function toon(id)
{
	if (wind) {wind.close();}
	wind = window.open("toonartikel.php?id="+id,"","width=550,height=700, resizable=yes, scrollbars=yes");
	wind.focus();
}
function toonsponsor(id)
{
	if (wind) {wind.close();}
	wind = window.open("toonsponsor.php?id="+id,"","width=550,height=700, resizable=yes, scrollbars=yes");
	wind.focus();
}
function popup(id)
{
	if (wind) {wind.close();}
	wind = window.open("toonzon.php?id="+id,"","width=550,height=700, resizable=yes, scrollbars=yes");
	wind.focus();
}
function archief()
{
	if (wind) {wind.close();}
	wind = window.open("archief.php","","width=750,height=750, resizable=yes, scrollbars=yes");
	wind.focus();
}
function shits()
{
	if (wind) {wind.close();}
	wind = window.open("admin/stats.php","","width=1000,height=700, resizable=yes, scrollbars=yes");
	wind.focus();	
}
