// JavaScript Document

// todo is a file created by myself to perform simple tasks such as confirm
// boxes, alert boxes and image rollovers / simple galleries.

// alert

function todoalert(msg) {
	
	alert(msg);
	
}

// confirm and url

function todoconfirm(message, url){

	var todo = confirm(message);
	
	if(todo) {
	
		window.location = (url);
	
	}

}

// rollover

function todorollover(nameid, img) {
	
	var nameid;
	var img;
	
	var theimg = document.getElementById(nameid);
	theimg.src=img;
	
}

// rollout

function todorollout(nameid, img) {
	
	var nameid;
	var img;
	
	var theimg = document.getElementById(nameid);
	theimg.src=img;
	
}
