
function confirmDelete(id){
	var url;
	url = 'delete.php?id=' + id;
	open_window(url, 400, 300);
};

function Add(){
	var url;
	url = 'form.php';
	open_window(url, 625, 575);
};

function editEvent(id){
	var url;
	url = 'form.php?id=' + id;
	open_window(url, 625, 500);
};

function Deleted(){
	window.opener.location.href = window.opener.location.href;
	self.close();
};

function uDeleted(){
	window.opener.location.href = "index.php";
	self.close();
};

function addanother(){
	window.self.location.href = "form.php";
};

function open_window(url,w,h) {
mywin = window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+w+',height='+h);
};
/*
function findLoc(id){
	var selector;
	selector = '#' + id;
	return $(selector);
};

function MoveUp(id){
	var curLoc;
	var prevLoc;
	var curContent;
	var possible;
	curLoc = findLoc(id);
	prevLoc = curLoc.prev();
	possible = prevLoc.parent().parent().is("." + 'pictable');
	if(possible == true){
		curContent = curLoc.html();
		curContent = '<tr id="' + id + '">' + curContent + '</tr>'
		curLoc.remove();
		prevLoc.before(curContent);
	} else {
		alert('At Top!');
	};
};

function MoveDown(id){
	var curLoc;
	var nextLoc;
	var curContent;
	var possible;
	curLoc = findLoc(id);
	nextLoc = curLoc.next();
	possible = nextLoc.parent().parent().is("." + 'pictable');
	if(possible == true){
		curContent = curLoc.html();
		curContent = '<tr id="' + id + '">' + curContent + '</tr>'
		curLoc.remove();
		nextLoc.after(curContent);
	} else {
		alert('At Bottom!');
	}	
};
*/

$(document).ready(function() {
	// Lets put some corners on some boxes!  Should probably figure out a better way to select these objects, maybe one global corner class?
	$(".calendar tr td[a]").css("background-color", "#9fd2a3");
});
