// 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;
	
}

	function popupMe(url) {
		
		thewin = "";
		thewin += 'pop.php?music=';
		thewin += url;

		window.open(thewin, 'thewin', 'left=100,top=20,width=300,height=100,toolbar=0,resizable=0,scrollbars=0,location=0');		
	
	}



